gnome-media-vl.spec 13 KB

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