pommed-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. Summary: Apple laptops hotkey event handler / LCD backlight adjuster
  2. Summary(ja): Apple 社製ノート PC 用ホットキー / バックライト調整プログラム
  3. Name: pommed
  4. License: GPLv2
  5. Group: System Environment/Daemons
  6. Version: 1.28
  7. Release: 1%{?_dist_release}
  8. Source0: %{name}-%{version}.tar.gz
  9. Source10: %{name}.init.vine
  10. Patch10: %{name}-1.26-rpmoptflags.patch
  11. URL: http://alioth.debian.org/projects/pommed/
  12. BuildRequires: alsa-lib-devel, audiofile-devel, pciutils-devel
  13. BuildRequires: dbus-devel, libconfuse-devel, zlib-devel
  14. BuildRequires: xorg-x11-devel
  15. Requires: eject
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. ExclusiveArch: %{ix86} x86_64 ppc ppc64
  18. %description
  19. pommed handles the hotkeys found on the Apple MacBook, MacBook Pro,
  20. PowerBook and iBook laptops and adjusts the LCD backlight, sound volume
  21. or ejects the CD / DVD drive accordingly.
  22. %description -l ja
  23. pommed は、Apple MacBook / MacBook Pro / PowerBook / iBook といった
  24. ノート PC のホットキーを扱うデーモンで、液晶のバックライト、音量、
  25. CD / DVD ドライブのイジェクトなどを行います。
  26. %package -n gpomme
  27. Summary: Graphical client for pommed
  28. Summary(ja): pommed の グラフィカルクライアント
  29. Group: User Interface/Desktops
  30. Requires: pommed = %{version}-%{release}
  31. Requires: dbus
  32. %description -n gpomme
  33. graphical client for pommed
  34. %description -n gpomme -l ja
  35. pommed のグラフィカルクライアント
  36. %package -n wmpomme
  37. Summary: WindowMaker dockapp client for pommed
  38. Summary(ja): pommed の WindowMaker dockapp クライアント
  39. Group: User Interface/Desktops
  40. Requires: pommed = %{version}-%{release}
  41. Requires: dbus
  42. %description -n wmpomme
  43. WindowMaker dockapp client for pommed
  44. %description -n wmpomme -l ja
  45. pommed の WindowMaker dockapp クライアント
  46. %prep
  47. %setup -q
  48. %patch10 -p1
  49. %build
  50. %ifarch ppc ppc64
  51. make OFLIB=1
  52. %else
  53. make
  54. %endif
  55. %install
  56. [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
  57. mkdir -p %{buildroot}%{_bindir}
  58. mkdir -p %{buildroot}%{_sbindir}
  59. mkdir -p %{buildroot}%{_sysconfdir}/init.d
  60. mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
  61. mkdir -p %{buildroot}%{_datadir}/applications
  62. mkdir -p %{buildroot}%{_datadir}/icons
  63. mkdir -p %{buildroot}%{_datadir}/pixmaps
  64. mkdir -p %{buildroot}%{_datadir}/pommed
  65. mkdir -p %{buildroot}%{_datadir}/gpomme
  66. mkdir -p %{buildroot}%{_localedir}
  67. mkdir -p %{buildroot}%{_mandir}/man1
  68. install -m 755 pommed/pommed %{buildroot}%{_sbindir}/
  69. install -m 755 %{SOURCE10} %{buildroot}%{_sysconfdir}/init.d/pommed
  70. install -m 644 pommed/data/* %{buildroot}%{_datadir}/pommed/
  71. %ifarch ppc ppc64
  72. install -m 644 pommed.conf.pmac %{buildroot}%{_sysconfdir}/pommed.conf
  73. %else
  74. install -m 644 pommed.conf.mactel %{buildroot}%{_sysconfdir}/pommed.conf
  75. %endif
  76. install -m 644 dbus-policy.conf \
  77. %{buildroot}%{_sysconfdir}/dbus-1/system.d/pommed.conf
  78. install -m 644 pommed.1 %{buildroot}%{_mandir}/man1/
  79. install -m 755 gpomme/gpomme %{buildroot}%{_bindir}
  80. install -m 644 gpomme/gpomme.1 %{buildroot}%{_mandir}/man1/
  81. install -m 644 gpomme/*.desktop %{buildroot}%{_datadir}/applications/
  82. install -m 644 icons/gpomme* %{buildroot}%{_datadir}/icons/
  83. install -m 644 icons/gpomme_32x32.xpm \
  84. %{buildroot}%{_datadir}/pixmaps/gpomme.xpm
  85. install -m 644 gpomme/gpomme.glade %{buildroot}%{_datadir}/gpomme/
  86. install -m 644 gpomme/gpomme.glade %{buildroot}%{_datadir}/gpomme/
  87. cp -a gpomme/themes %{buildroot}%{_datadir}/gpomme/
  88. for X in gpomme/po/*.mo ; do
  89. lang=`basename $X .mo`
  90. filename="gpomme.mo"
  91. install -d %{buildroot}%{_localedir}/${lang}/LC_MESSAGES
  92. install -m 644 $X %{buildroot}%{_localedir}/${lang}/LC_MESSAGES/$filename
  93. done
  94. install -m 755 wmpomme/wmpomme %{buildroot}%{_bindir}
  95. install -m 644 wmpomme/wmpomme.1 %{buildroot}%{_mandir}/man1/
  96. install -m 644 icons/gpomme_32x32.xpm \
  97. %{buildroot}%{_datadir}/icons/wmpomme.xpm
  98. %find_lang gpomme
  99. %clean
  100. [ "${buildroot}" != "/" ] && rm -rf ${buildroot}
  101. %post
  102. /sbin/chkconfig --add pommed
  103. %preun
  104. if [ $1 = 0 ] ; then
  105. service pommed stop > /dev/null 2>&1
  106. /sbin/chkconfig --del pommed
  107. fi
  108. %postun
  109. if [ "$1" -ge "1" ] ; then
  110. service pommed condrestart > /dev/null 2>&1
  111. fi
  112. %files
  113. %defattr(-,root,root)
  114. %doc AUTHORS COPYING ChangeLog INSTALL README TODO
  115. %config(noreplace) %{_sysconfdir}/pommed.conf
  116. %config(noreplace) %{_sysconfdir}/dbus-1/system.d/pommed.conf
  117. %{_sysconfdir}/init.d/pommed
  118. %{_sbindir}/pommed
  119. %{_mandir}/man1/pommed*
  120. %{_datadir}/pommed
  121. %files -n gpomme -f gpomme.lang
  122. %defattr(-,root,root)
  123. %{_bindir}/gpomme
  124. %{_datadir}/applications/*.desktop
  125. %{_datadir}/icons/gpomme*
  126. %{_datadir}/pixmaps/gpomme*
  127. %{_datadir}/gpomme
  128. %{_mandir}/man1/gpomme*
  129. %files -n wmpomme
  130. %defattr(-,root,root)
  131. %{_bindir}/wmpomme
  132. %{_datadir}/icons/wmpomme*
  133. %{_mandir}/man1/wmpomme*
  134. %changelog
  135. * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.28-1
  136. - new upstream release 1.28
  137. * Wed Jun 3 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.26-1
  138. - new upstream release 1.26
  139. * Thu Jul 24 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.21-1
  140. - updated to 1.21 release (equals to svn r503)
  141. * Mon Jun 30 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.20-1
  142. - updated to 1.20 release (equals to svn r498)
  143. * Mon May 26 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.18-1
  144. - initial build for Vine Linux
  145. - 1.19 prerelease (svn r473)
  146. - add Source10 for customized initscript
  147. (checks if the machine is either of MacBooks/PowerBooks/iBooks)