driconf-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. Summary: A configuration applet for the Direct Rendering Infrastructure
  2. Summary(ja): DRI を設定するためのアプレット
  3. Name: driconf
  4. Version: 0.9.1
  5. Release: 3%{?_dist_release}
  6. Group: User Interface/X
  7. License: GPLv2+
  8. URL: http://dri.freedesktop.org/wiki/DriConf
  9. Source0: http://people.freedesktop.org/~fxkuehl/driconf/driconf-%{version}.tar.gz
  10. Patch1: driconf-0.9.1-setup.patch
  11. Patch2: driconf-0.9.1-glxinfo-unicode.patch
  12. Patch3: driconf-0.9.1-update-toolbar-methods.patch
  13. Patch4: http://patch-tracking.debian.net/patch/misc/dl/driconf/0.9.1-2/driconf_simpleui.py
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  15. BuildArch: noarch
  16. BuildRequires: python-devel
  17. BuildRequires: desktop-file-utils
  18. Requires: pygtk2
  19. Requires: glx-utils
  20. %description
  21. DRIconf is a configuration applet for the Direct Rendering Infrastructure.
  22. It allows customizing performance and visual quality settings of OpenGL
  23. drivers on a per-driver, per-screen and/or per-application level.
  24. The settings are stored in system wide and per-user XML configuration files,
  25. which are parsed by the OpenGL drivers on startup.
  26. DRIConf is written in Python with the python-gtk toolkit bindings.
  27. %prep
  28. %setup -q
  29. %patch1 -p1
  30. %patch2 -p1
  31. %patch3 -p1
  32. %patch4 -p1
  33. %build
  34. %{__python} setup.py build
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --prefix=%{_prefix}
  38. %find_lang driconf
  39. cat << EOF > %{name}.desktop
  40. [Desktop Entry]
  41. Name=Driconf
  42. Comment=configuration applet for the Direct Rendering Infrastructure
  43. Exec=/usr/bin/driconf
  44. Icon=/usr/share/driconf/driconf-icon.png
  45. Terminal=false
  46. Type=Application
  47. Encoding=UTF-8
  48. Categories=Settings;
  49. EOF
  50. desktop-file-install --vendor "" \
  51. --dir $RPM_BUILD_ROOT/%{_datadir}/applications/ %{name}.desktop
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %files -f driconf.lang
  55. %defattr(-,root,root,-)
  56. %doc COPYING CHANGELOG README TODO
  57. %{_bindir}/driconf
  58. %{python_sitelib}/dri.py
  59. %{python_sitelib}/dri.pyc
  60. %{python_sitelib}/dri.pyo
  61. %{python_sitelib}/driconf.py
  62. %{python_sitelib}/driconf.pyc
  63. %{python_sitelib}/driconf.pyo
  64. %{python_sitelib}/driconf_commonui.py
  65. %{python_sitelib}/driconf_commonui.pyc
  66. %{python_sitelib}/driconf_commonui.pyo
  67. %{python_sitelib}/driconf_complexui.py
  68. %{python_sitelib}/driconf_complexui.pyc
  69. %{python_sitelib}/driconf_complexui.pyo
  70. %{python_sitelib}/driconf_simpleui.py
  71. %{python_sitelib}/driconf_simpleui.pyc
  72. %{python_sitelib}/driconf_simpleui.pyo
  73. %{python_sitelib}/driconf-0.9.1-py?.?.egg-info
  74. %dir %{_datadir}/driconf
  75. %{_datadir}/driconf/card.png
  76. %{_datadir}/driconf/drilogo.jpg
  77. %{_datadir}/driconf/screen.png
  78. %{_datadir}/driconf/screencard.png
  79. %{_datadir}/driconf/driconf-icon.png
  80. %{_datadir}/applications/*.desktop
  81. %changelog
  82. * Thu Feb 23 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.1-3
  83. - rebuilt
  84. * Fri Feb 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.1-2
  85. - rebuild with python-2.6
  86. * Sun Sep 14 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.9.1-1
  87. - initial build for Vine Linux
  88. * Sun Jun 8 2008 Kevin Fenzi <kevin@tummy.com> - 0.9.1-8
  89. - Improve unicode support (fixes bug #450083)
  90. * Tue Jan 15 2008 Kevin Fenzi <kevin@tummy.com> - 0.9.1-7
  91. - Add egginfo file.
  92. * Tue Aug 21 2007 Kevin Fenzi <kevin@tummy.com> - 0.9.1-6
  93. - Update license tag.
  94. * Wed Dec 20 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-5
  95. - Remove unneeded post/postun.
  96. * Tue Dec 19 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-4
  97. - Changed desktop catigory to Settings.
  98. * Mon Dec 18 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-3
  99. - Changed pygtk2-devel BuildRequires to python-devel
  100. - Added desktop file.
  101. * Sat Dec 16 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-2
  102. - Added Requires for pygtk2 and glx-utils
  103. * Sat Dec 16 2006 Kevin Fenzi <kevin@tummy.com> - 0.9.1-1
  104. - Inital fedora extras packaging
  105. * Fri Mar 31 2005 D. Hageman <dhageman@dracken.com> 0.9.0-1
  106. - Updated RPM spec file to handle new version
  107. * Mon Mar 14 2005 D. Hageman <dhageman@dracken.com> 0.2.3-1
  108. - Created the initial rpm spec file.