screenkey-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. Name: screenkey
  2. Version: 0.2
  3. Release: 3%{?_dist_release}
  4. Summary: A screen-cast tool to show your keys and based on key-mon project
  5. Group: Applications/System
  6. License: GPLv3+
  7. URL: https://launchpad.net/screenkey
  8. Source0: http://launchpad.net/screenkey/v%{version}/v%{version}/+download/screenkey-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  10. BuildArch: noarch
  11. BuildRequires: python-devel
  12. Requires: python, python-xlib
  13. # for glib.get_user_cache_dir()
  14. Requires: pygobject >= 2.18
  15. Distribution: Vine Linux
  16. Vendor: Project Vine
  17. Packager: iwaim
  18. %description
  19. A screen-cast tool to show your keys inspired by Screenflick and based on
  20. the key-mon project.
  21. %prep
  22. %setup -q
  23. %build
  24. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
  25. %install
  26. rm -rf $RPM_BUILD_ROOT
  27. mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
  28. find build/lib* -name '*.py' -exec sed -i "1{/^#!/d}" {} \; && \
  29. %{__python} setup.py install -O1 --skip-build --root %{buildroot}
  30. %clean
  31. rm -rf $RPM_BUILD_ROOT
  32. %files
  33. %defattr(-,root,root,-)
  34. %doc
  35. %{_bindir}/screenkey
  36. %{_prefix}/share/applications/screenkey.desktop
  37. #%{python_sitearch}/Screenkey
  38. #%{python_sitearch}/*egg-info
  39. %{python_sitelib}/Screenkey
  40. %{python_sitelib}/*egg-info
  41. %changelog
  42. * Wed Feb 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.2-3
  43. - rebuild with python-2.7.2
  44. * Wed Oct 27 2010 Shu KONNO <owa@bg.wakwak.com> 0.2-2
  45. - fixed python path (if x86_64)
  46. - added BuildArch: noarch
  47. * Wed Oct 20 2010 IWAI, Masaharu <iwai@alib.jp> 0.2-1
  48. - build for Vine Linux: based upstream spec file
  49. * Mon Jun 14 2010 Ivan Makfinsky <ivan.makfinsky@endosys.com> - 0.2-3
  50. - Rebase, this is dev code.
  51. * Fri Jun 11 2010 Ivan Makfinsky <ivan.makfinsky@endosys.com> - 0.1.1-7
  52. - Updated spec file with proper macros.
  53. * Thu Jun 10 2010 Ivan Makfinsky <ivan.makfinsky@endosys.com> - 0.1.1-6
  54. - Added fork method so that it properly backgrounds itself.
  55. * Wed Jun 09 2010 Ivan Makfinsky <ivan.makfinsky@endosys.com> - 0.1.1-5
  56. - Corrected build deps. Added python-devel. Corrected python-sitearch in files.
  57. * Tue Jun 08 2010 Ivan Makfinsky <ivan.makfinsky@endosys.com> - 0.1.1-1
  58. - Initial Build