pbbuttonsd-vl.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. %define pprefver 0.4.3
  2. Summary: daemon to control the functions of hotkeys found on recent Macs
  3. Summary(ja): Mac のホットキーを利用可能にするデーモン
  4. Name: pbbuttonsd
  5. Version: 0.5.8
  6. Release: 0vl1
  7. Copyright: GPL
  8. Group: Utilities/System
  9. URL: http://www.cymes.de/members/joker/projects/pbbuttons/pbbuttons.html
  10. Source0: http://www.cymes.de/members/joker/projects/pbbuttons/tar/%{name}-%{version}.tar.gz
  11. Source1: http://www.cymes.de/members/joker/projects/pbbuttons/tar/powerprefs-%{pprefver}.tar.gz
  12. Source10: pbbuttonsd.init
  13. Patch100: powerprefs-0.4.2-pbb055.patch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Obsoletes: pbbuttons
  16. BuildRequires: SysVinit >= 2.85, gtk2-devel
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  20. %description
  21. PBButtons is a program which make the special hotkeys of an Apple iBook,
  22. PowerBook or TiBook (or recent PowerMacs' keyboards) working as expected.
  23. With this program the keys for the display brightness, the volume of
  24. speaker and headphone, the mute key and the eject key will do their jobs
  25. as expected.
  26. %description -l ja
  27. PBButtons は Apple iBook, PowerBook, TiBook (或いは最近の PowerMac) の
  28. キーボードの「ホットキー」を期待どおりに動作させるためのものです.
  29. このプログラムを使うと,ディスプレイ照度調節,スピーカーの音量調節,
  30. ミュート,CD-ROM のイジェクトといったホットキーを使用する事が出来ます.
  31. %prep
  32. %setup -q -a 1
  33. pushd powerprefs-%{pprefver}
  34. cp ../libpbbipc/*.h src/
  35. #%patch100 -p1
  36. popd
  37. %build
  38. %configure
  39. make
  40. pushd powerprefs-%{pprefver}
  41. %configure
  42. perl -pi -e 's/#define HAVE_OLDLIBPBB 1//g' config.h
  43. make LIBS="-L%{_builddir}/%{name}-%{version}/libpbbipc -lpbb"
  44. popd
  45. %install
  46. [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != / ] \
  47. && rm -rf ${RPM_BUILD_ROOT}
  48. mkdir -p ${RPM_BUILD_ROOT}/etc/power
  49. %makeinstall
  50. pushd powerprefs-%{pprefver}
  51. %makeinstall
  52. popd
  53. mkdir -p ${RPM_BUILD_ROOT}%{_initdir}
  54. install -m 755 %{SOURCE10} \
  55. ${RPM_BUILD_ROOT}%{_initdir}/pbbuttonsd
  56. # XXX Fix me
  57. rm -f ${RPM_BUILD_ROOT}/etc/pbbuttonsd.conf
  58. cp pbbuttonsd.conf ${RPM_BUILD_ROOT}/etc/pbbuttonsd.conf
  59. %find_lang %{name}
  60. %clean
  61. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  62. %post
  63. /sbin/chkconfig --add pbbuttonsd
  64. if [ -f /var/lock/subsys/pbbuttonsd ] ; then
  65. %{_initdir}/pbbuttonsd restart
  66. fi
  67. %preun
  68. if [ $1 = 0 ] ; then
  69. /sbin/chkconfig --del pbbuttonsd
  70. if [ -f /var/lock/subsys/pbbuttonsd ] ; then
  71. %{_initdir}/pbbuttonsd stop
  72. fi
  73. fi
  74. %triggerpostun -- pbbuttons
  75. /sbin/chkconfig --add pbbuttonsd
  76. %triggerpostun -- pbbuttonsd < 0.5.3-0vl1
  77. /sbin/chkconfig --add pbbuttonsd
  78. %files -f %{name}.lang
  79. %defattr(-, root, root)
  80. %doc ABOUT-NLS AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO
  81. %config %{_initdir}/pbbuttonsd
  82. %config %{_sysconfdir}/pbbuttonsd.conf
  83. %{_sysconfdir}/power/*
  84. %{_bindir}/*
  85. %{_datadir}/powerprefs/*
  86. %{_libdir}/*
  87. %{_includedir}/*
  88. %{_mandir}/*/*
  89. %changelog
  90. * Wed Feb 04 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.5.8-0vl1
  91. - updated to pbbuttonsd-0.5.8 and powerprefs-0.4.3
  92. * Wed Dec 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.6-1vl2
  93. - rebuild with kernel-2.4.23-0vl1
  94. * Mon Nov 17 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.6-0vl1
  95. - source update
  96. * Mon Nov 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.5-0vl1
  97. - source update
  98. - added BuildRequires section
  99. - added powerprefs
  100. * Mon Mar 24 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.5.3-0vl1
  101. - source update
  102. * Sun Mar 17 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2a-0vl3
  103. - modified init script to match 0.4.2a's pbbuttonsd retval
  104. (now non-error returns 0, as expected)
  105. * Fri Mar 15 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2a-0vl2
  106. - modified %preun, added %triggerpostun
  107. * Mon Mar 11 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2a-0vl1
  108. - updated to the upstream bugfix release
  109. * Fri Mar 08 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4.2-0vl1
  110. - updated to the new upstream release
  111. - now pbbuttonsd and gtkpbbuttons are in separated package (as expected)
  112. * Mon Mar 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.4-0vl1
  113. - updated in sync with the new upstream release
  114. - added init script
  115. * Mon Mar 04 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.3-0vl2
  116. - added xinit script
  117. * Tue Feb 26 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.3-0vl1
  118. - initial rpm package for Vine Linux