gnome-media-vl.spec 13 KB

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