gnome-media-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462
  1. %define glib2_version 2.26.0
  2. %define pango_version 1.28.3
  3. %define gtk2_version 2.22.0
  4. %define gconf2_version 2.32.0
  5. %define pa_version 0.9.15
  6. %define canberra_version 0.25
  7. %define gstreamer_version 0.10.30
  8. %define unique_version 1.0.0
  9. %define desktop_file_utils_version 0.16
  10. %define gnome_doc_utils_version 0.3.2
  11. %define gettext_package gnome-media-2.0
  12. Summary: GNOME media programs.
  13. Name: gnome-media
  14. Version: 2.32.0
  15. Release: 1%{?_dist_release}
  16. License: GPL
  17. Group: Applications/Multimedia
  18. Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-media/2.32/gnome-media-%{version}.tar.bz2
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. Obsoletes: gnome
  21. URL: http://www.gnome.org
  22. Requires(post,postun): scrollkeeper >= 0.1.4
  23. Requires(post,pre,preun): GConf2 >= 2.14
  24. BuildRequires: intltool
  25. BuildRequires: glib2-devel >= %{glib2_version}
  26. BuildRequires: pango-devel >= %{pango_version}
  27. BuildRequires: gtk2-devel >= %{gtk2_version}
  28. BuildRequires: GConf2-devel >= %{gconf2_version}
  29. BuildRequires: pulseaudio-libs-devel >= %{pa_version}
  30. BuildRequires: libcanberra-devel >= %{canberra_version}
  31. BuildRequires: gstreamer-devel >= %{gstreamer_version}
  32. BuildRequires: gstreamer-plugins-base-devel >= %{gstreamer_version}
  33. BuildRequires: unique-devel >= %{unique_version}
  34. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  35. BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
  36. %description
  37. GNOME (GNU Network Object Model Environment) is a user-friendly set of
  38. GUI applications and desktop tools to be used in conjunction with a
  39. window manager for the X Window System. The gnome-media package will
  40. install media features like the GNOME CD player.
  41. Install gnome-media if you want to use GNOME's multimedia
  42. capabilities.
  43. %package devel
  44. Summary: Development tools for gnome-media applications.
  45. Summary(ja): gnome-media アプリケーションの開発用ファイル
  46. Group: Development/Libraries
  47. Requires: %{name} = %{version}-%{release}
  48. Requires: pkgconfig
  49. Requires: GConf2-devel
  50. Requires: gtk2-devel
  51. %description devel
  52. Header files and libraries for building a extension library for the gnome-media.
  53. %prep
  54. %setup -q
  55. %build
  56. /usr/bin/gst-inspect-0.10 --print-all > /dev/null
  57. %configure \
  58. --disable-schemas-install --disable-scrollkeeper
  59. make %{?_smp_mflags}
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. %makeinstall
  63. ## show in all
  64. desktop-file-install --vendor "" --delete-original \
  65. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  66. $RPM_BUILD_ROOT%{_datadir}/applications/gstreamer-properties.desktop
  67. desktop-file-install --vendor gnome --delete-original \
  68. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  69. $RPM_BUILD_ROOT%{_datadir}/applications/gnome-sound-recorder.desktop
  70. rm -f $RPM_BUILD_ROOT%{_datadir}/applications/vumeter.desktop
  71. rm -f $RPM_BUILD_ROOT%{_datadir}/applications/reclevel.desktop
  72. rm -f $RPM_BUILD_ROOT%{_bindir}/vumeter
  73. rm -rf $RPM_BUILD_ROOT%{_libdir}/lib*.*a
  74. rm -rf $RPM_BUILD_ROOT/var/scrollkeeper
  75. rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
  76. %find_lang %{gettext_package} --all-name --with-gnome
  77. # save space by linking identical images in translated docs
  78. for helpdir in $RPM_BUILD_ROOT%{_datadir}/gnome/help/*; do
  79. for f in $helpdir/C/figures/*.png; do
  80. b="$(basename $f)"
  81. for d in $helpdir/*; do
  82. if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
  83. g="$d/figures/$b"
  84. if [ -f "$g" ]; then
  85. if cmp -s $f $g; then
  86. rm "$g"; ln -s "../../C/figures/$b" "$g"
  87. fi
  88. fi
  89. fi
  90. done
  91. done
  92. done
  93. %clean
  94. rm -rf $RPM_BUILD_ROOT
  95. %post
  96. scrollkeeper-update > /dev/null 2>&1 || :
  97. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  98. gconftool-2 --makefile-install-rule \
  99. %{_sysconfdir}/gconf/schemas/gnome-audio-profiles.schemas \
  100. %{_sysconfdir}/gconf/schemas/gnome-sound-recorder.schemas \
  101. > /dev/null || :
  102. /sbin/ldconfig
  103. touch --no-create %{_datadir}/icons/hicolor
  104. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  105. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  106. fi
  107. %pre
  108. if [ "$1" -gt 1 ]; then
  109. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  110. if [ -f %{_sysconfdir}/gconf/schemas/gnome-cd.schemas ] ; then
  111. gconftool-2 --makefile-uninstall-rule \
  112. %{_sysconfdir}/gconf/schemas/gnome-cd.schemas \
  113. %{_sysconfdir}/gconf/schemas/CDDB-Slave2.schemas \
  114. > /dev/null || :
  115. fi
  116. if [ -f %{_sysconfdir}/gconf/schemas/gnome-sound-recorder.schemas ] ; then
  117. gconftool-2 --makefile-uninstall-rule \
  118. %{_sysconfdir}/gconf/schemas/gnome-sound-recorder.schemas \
  119. > /dev/null || :
  120. fi
  121. if [ -f %{_sysconfdir}/gconf/schemas/gnome-volume-control.schemas ] ; then
  122. gconftool-2 --makefile-uninstall-rule \
  123. %{_sysconfdir}/gconf/schemas/gnome-volume-control.schemas \
  124. > /dev/null || :
  125. fi
  126. gconftool-2 --makefile-uninstall-rule \
  127. %{_sysconfdir}/gconf/schemas/gnome-audio-profiles.schemas \
  128. > /dev/null || :
  129. fi
  130. %preun
  131. if [ "$1" -eq 0 ]; then
  132. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  133. if [ -f %{_sysconfdir}/gconf/schemas/gnome-cd.schemas ] ; then
  134. gconftool-2 --makefile-uninstall-rule \
  135. %{_sysconfdir}/gconf/schemas/gnome-cd.schemas \
  136. %{_sysconfdir}/gconf/schemas/CDDB-Slave2.schemas \
  137. > /dev/null || :
  138. fi
  139. if [ -f %{_sysconfdir}/gconf/schemas/gnome-sound-recorder.schemas ] ; then
  140. gconftool-2 --makefile-uninstall-rule \
  141. %{_sysconfdir}/gconf/schemas/gnome-sound-recorder.schemas \
  142. > /dev/null || :
  143. fi
  144. if [ -f %{_sysconfdir}/gconf/schemas/gnome-volume-control.schemas ] ; then
  145. gconftool-2 --makefile-uninstall-rule \
  146. %{_sysconfdir}/gconf/schemas/gnome-volume-control.schemas \
  147. > /dev/null || :
  148. fi
  149. gconftool-2 --makefile-uninstall-rule \
  150. %{_sysconfdir}/gconf/schemas/gnome-audio-profiles.schemas \
  151. > /dev/null || :
  152. fi
  153. %postun
  154. scrollkeeper-update -q || :
  155. /sbin/ldconfig
  156. touch --no-create %{_datadir}/icons/hicolor
  157. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  158. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  159. fi
  160. %files -f %{gettext_package}.lang
  161. %defattr(-, root, root)
  162. %doc AUTHORS COPYING* NEWS README
  163. %{_sysconfdir}/gconf/schemas/*.schemas
  164. %{_sysconfdir}/xdg/autostart/gnome-volume-control-applet.desktop
  165. %{_datadir}/applications/*
  166. %{_datadir}/gnome-media
  167. %{_datadir}/gnome-sound-recorder
  168. %{_datadir}/gstreamer-properties
  169. %{_datadir}/icons/hicolor/*/apps/*
  170. %{_datadir}/sounds/gnome/default/alerts/*
  171. %{_libdir}/*.so.*
  172. %{_bindir}/*
  173. %files devel
  174. %{_includedir}/*
  175. %{_libdir}/*.so
  176. %{_libdir}/pkgconfig/*
  177. %changelog
  178. * Sun Oct 03 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  179. - new upstream release
  180. - remove BuildRequires: libgnomeui-devel
  181. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-3
  182. - rebuild with rpm-4.8.1 for pkg-config file
  183. * Sun Aug 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-2
  184. - add gnome-media-devel package
  185. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  186. - new upstream release
  187. - remove BuildRequires: libglade2-deveL
  188. * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.5-1
  189. - new upstream release
  190. - add BuildRequires: gnome-doc-utils
  191. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.1-1
  192. - new upstream release
  193. * Tue Mar 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-3
  194. - fix %%post/%%pre/%%preun
  195. - gnome-volume-control is removed
  196. * Mon Mar 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.26.0-2
  197. - add BuildRequires: unique-devel
  198. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  199. - new upstream release
  200. * Thu Sep 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0.1-1
  201. - new upstream release
  202. - drop gnome-cd
  203. - add gnome-sound-recorder
  204. * Sun Apr 6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  205. - new upstream release
  206. - dropped Patch1 (merged into upstream)
  207. * Mon Jan 14 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.1-0vl1
  208. - new upstream release
  209. - added Patch0 and 1 from Fedora
  210. * Wed Oct 17 2007 - Bastien Nocera <bnocera@redhat.com> - 2.20.1-3
  211. - Show the "Front" track by default (#335121)
  212. * Wed Oct 10 2007 - Bastien Nocera <bnocera@redhat.com> - 2.20.1-2
  213. - Install the schema for the mixer properly (#186791)
  214. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.0-0vl1
  215. - new upstream release
  216. * Sat Dec 23 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.14.2-0vl2
  217. - add Requires: gstreamer-plugins-base instead of libgstcdparanoia.so
  218. * Sun Jun 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.2-0vl1
  219. - new upstream release
  220. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  221. - new upstream release
  222. * Tue Mar 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.93-0vl1
  223. - new upstream release
  224. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  225. - new upstream release
  226. * Wed May 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10.2-0vl2
  227. - added Requires: libgstcdparanoia.so
  228. * Sun May 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10.2-0vl1
  229. - new upstream release
  230. - added BuildRequires: gstreamer-plugins-devel
  231. * Mon Apr 11 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.1-0vl1
  232. - new upstream release
  233. * Mon Mar 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.0-0vl1
  234. - new upstream version
  235. * Thu Nov 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.0-0vl1
  236. - new upstream release
  237. * Tue Dec 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1.1-0vl1
  238. - new upstream release
  239. - s/Copyright/License/
  240. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  241. - new upstream release
  242. * Thu Sep 04 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.90-0vl1
  243. - new upstream release
  244. * Tue Jun 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.3-0vl1
  245. - new upstream release
  246. * Sat Feb 22 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.1.1-0vl1
  247. - new upstream release
  248. * Sat Jan 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  249. - new upstream release
  250. * Fri Jan 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl2
  251. - rebuild with gstreamer-0.5.2
  252. * Sat Jan 18 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl1
  253. - new upstream release
  254. - build for Vine Linux
  255. * Tue Aug 27 2002 Owen Taylor <otaylor@redhat.com>
  256. - Fix bug with changing device in preferences (#72465)
  257. - Make the operation of --unique per-device
  258. * Fri Aug 23 2002 Owen Taylor <otaylor@redhat.com>
  259. - Add --unique option to allow starting only one CD player
  260. per display. (#39208)
  261. * Wed Aug 21 2002 Havoc Pennington <hp@redhat.com>
  262. - remove gnome-reclevel.desktop that was another alias for vumeter #71916
  263. * Wed Aug 14 2002 Havoc Pennington <hp@redhat.com>
  264. - remove vumeter, #67140
  265. * Mon Jul 29 2002 Havoc Pennington <hp@redhat.com>
  266. - rebuild with new gail
  267. * Thu Jul 25 2002 Havoc Pennington <hp@redhat.com>
  268. - put translations in, makes it rebuild #69404
  269. * Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
  270. - 2.0.0
  271. - install capplet control center file, though I may
  272. take it out again since it sucks
  273. - use desktop-file-install
  274. - add omf to file list
  275. * Fri Jun 07 2002 Havoc Pennington <hp@redhat.com>
  276. - rebuild in different environment
  277. * Wed Jun 5 2002 Havoc Pennington <hp@redhat.com>
  278. - add post/postun ldconfig
  279. - rebuild with latest libs
  280. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  281. - rebuild in different environment
  282. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  283. - rebuild in different environment
  284. - buildrequire gail
  285. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  286. - 1.547.0
  287. * Fri May 03 2002 Havoc Pennington <hp@redhat.com>
  288. - rebuild with new libs
  289. * Thu Apr 25 2002 Havoc Pennington <hp@redhat.com>
  290. - GNOME 2 version 1.520.2
  291. * Wed Aug 22 2001 Owen Taylor <otaylor@redhat.com>
  292. - Force regeneration of .po files (#52326)
  293. * Thu Jul 19 2001 Havoc Pennington <hp@redhat.com>
  294. - build requires gnome-libs-devel
  295. - fix rpmlint's utterly crack-smoking request that we not
  296. run /bin/sh in post/postun
  297. * Tue Jul 03 2001 Owen Taylor <otaylor@redhat.com>
  298. - Update to 1.2.3
  299. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  300. - Bump release + rebuild.
  301. * Wed May 9 2001 Owen Taylor <otaylor@redhat.com>
  302. - Version 1.2.2
  303. - Fix bogus scrollkeeper version in dependency
  304. * Fri Feb 23 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
  305. - langify
  306. - move changelog to end of file
  307. - don't use and define "ver" at the top of the spec file
  308. * Tue Feb 07 2001 Than Ngo <than@redhat.com>
  309. - fixed non-standard dir perm (Bug #26264)
  310. * Wed Jan 31 2001 Elliot Lee <sopwith@redhat.com> 1.2.0-10
  311. - Fix bug #17713, grecord internals (Patch10)
  312. * Tue Jan 30 2001 Elliot Lee <sopwith@redhat.com> 1.2.0-9
  313. - Fix bug #21488, include cddb-submit-methods in file list
  314. * Thu Jan 18 2001 Akira TAGOH <tagoh@redhat.com>
  315. - Added Japanese patch.
  316. * Fri Aug 11 2000 Jonathan Blandford <jrb@redhat.com>
  317. - Update Epoch
  318. * Sat Aug 05 2000 Havoc Pennington <hp@redhat.com>
  319. - Find "sox", bug 15472, patch from Alan
  320. * Fri Aug 04 2000 Havoc Pennington <hp@redhat.com>
  321. - Add docs for gtcd, bug 14558
  322. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  323. - automatic rebuild
  324. * Sat Jul 8 2000 Havoc Pennington <hp@redhat.com>
  325. - Remove docdir
  326. * Thu Jun 15 2000 Havoc Pennington <hp@redhat.com>
  327. - 1.2.0
  328. - use %%makeinstall
  329. * Tue Sep 21 1999 Havoc Pennington <hp@redhat.com>
  330. - Fixed gtcd so it works without corba-gtcd
  331. - add DrMike's no-g_error() patch
  332. * Mon Sep 20 1999 Elliot Lee <sopwith@redhat.com>
  333. - Update to 1.0.40
  334. * Fri Sep 17 1999 Owen Taylor <otaylor@redhat.com>
  335. - Don't keep device open in gtcd
  336. * Thu Sep 9 1999 Owen Taylor <otaylor@redhat.com>
  337. - Fixed warnings with previous
  338. * Wed Sep 8 1999 Owen Taylor <otaylor@redhat.com>
  339. - added --play option to gtcd
  340. * Mon Aug 16 1999 Michael Fulbright <drmike@redhat.com>
  341. - version 1.0.9.1
  342. * Fri Mar 19 1999 Michael Fulbright <drmike@redhat.com>
  343. - strip binaries
  344. * Mon Feb 15 1999 Michael Fulbright <drmike@redhat.com>
  345. - version 0.99.8
  346. * Tue Jan 19 1999 Michael Fulbright <drmike@redhat.com>
  347. - fixed building on sparc and RH 5.2 - seems to get confused into thinking
  348. we have cd changer support when we don't
  349. * Wed Jan 06 1999 Michael Fulbright <drmike@redhat.com>
  350. - updated to 0.99.1
  351. * Wed Dec 16 1998 Michael Fulbright <drmike@redhat.com>
  352. - updated for GNOME freeze
  353. * Sat Nov 21 1998 Pablo Saratxaga <srtxg@chanae.alphanet.ch>
  354. - added spanish and french translations for rpm
  355. * Wed Sep 23 1998 Michael Fulbright <msf@redhat.com>
  356. - Updated to 0.30 release
  357. * Mon Mar 16 1998 Marc Ewing <marc@redhat.com>
  358. - Integrate into gnome-media CVS source tree