gnome-media-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  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: 2%{?_dist_release}
  16. License: GPL
  17. Group: Applications/Multimedia
  18. Source: ftp://ftp.gnome.org/pub/GNOME/sources/gnome-media/2.30/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 Aug 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-2
  179. - add gnome-media-devel package
  180. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.0-1
  181. - new upstream release
  182. - remove BuildRequires: libglade2-deveL
  183. * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.28.5-1
  184. - new upstream release
  185. - add BuildRequires: gnome-doc-utils
  186. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.28.1-1
  187. - new upstream release
  188. * Tue Mar 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-3
  189. - fix %%post/%%pre/%%preun
  190. - gnome-volume-control is removed
  191. * Mon Mar 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.26.0-2
  192. - add BuildRequires: unique-devel
  193. * Sun Mar 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.26.0-1
  194. - new upstream release
  195. * Thu Sep 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0.1-1
  196. - new upstream release
  197. - drop gnome-cd
  198. - add gnome-sound-recorder
  199. * Sun Apr 6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-1vl5
  200. - new upstream release
  201. - dropped Patch1 (merged into upstream)
  202. * Mon Jan 14 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.20.1-0vl1
  203. - new upstream release
  204. - added Patch0 and 1 from Fedora
  205. * Wed Oct 17 2007 - Bastien Nocera <bnocera@redhat.com> - 2.20.1-3
  206. - Show the "Front" track by default (#335121)
  207. * Wed Oct 10 2007 - Bastien Nocera <bnocera@redhat.com> - 2.20.1-2
  208. - Install the schema for the mixer properly (#186791)
  209. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.18.0-0vl1
  210. - new upstream release
  211. * Sat Dec 23 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.14.2-0vl2
  212. - add Requires: gstreamer-plugins-base instead of libgstcdparanoia.so
  213. * Sun Jun 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.2-0vl1
  214. - new upstream release
  215. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.14.0-0vl1
  216. - new upstream release
  217. * Tue Mar 07 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.13.93-0vl1
  218. - new upstream release
  219. * Mon Sep 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12.0-0vl1
  220. - new upstream release
  221. * Wed May 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10.2-0vl2
  222. - added Requires: libgstcdparanoia.so
  223. * Sun May 8 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.10.2-0vl1
  224. - new upstream release
  225. - added BuildRequires: gstreamer-plugins-devel
  226. * Mon Apr 11 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.1-0vl1
  227. - new upstream release
  228. * Mon Mar 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10.0-0vl1
  229. - new upstream version
  230. * Thu Nov 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8.0-0vl1
  231. - new upstream release
  232. * Tue Dec 9 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.4.1.1-0vl1
  233. - new upstream release
  234. - s/Copyright/License/
  235. * Thu Sep 11 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-0vl1
  236. - new upstream release
  237. * Thu Sep 04 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.90-0vl1
  238. - new upstream release
  239. * Tue Jun 10 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.3-0vl1
  240. - new upstream release
  241. * Sat Feb 22 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.1.1-0vl1
  242. - new upstream release
  243. * Sat Jan 25 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0-0vl1
  244. - new upstream release
  245. * Fri Jan 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl2
  246. - rebuild with gstreamer-0.5.2
  247. * Sat Jan 18 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.5-0vl1
  248. - new upstream release
  249. - build for Vine Linux
  250. * Tue Aug 27 2002 Owen Taylor <otaylor@redhat.com>
  251. - Fix bug with changing device in preferences (#72465)
  252. - Make the operation of --unique per-device
  253. * Fri Aug 23 2002 Owen Taylor <otaylor@redhat.com>
  254. - Add --unique option to allow starting only one CD player
  255. per display. (#39208)
  256. * Wed Aug 21 2002 Havoc Pennington <hp@redhat.com>
  257. - remove gnome-reclevel.desktop that was another alias for vumeter #71916
  258. * Wed Aug 14 2002 Havoc Pennington <hp@redhat.com>
  259. - remove vumeter, #67140
  260. * Mon Jul 29 2002 Havoc Pennington <hp@redhat.com>
  261. - rebuild with new gail
  262. * Thu Jul 25 2002 Havoc Pennington <hp@redhat.com>
  263. - put translations in, makes it rebuild #69404
  264. * Sun Jun 16 2002 Havoc Pennington <hp@redhat.com>
  265. - 2.0.0
  266. - install capplet control center file, though I may
  267. take it out again since it sucks
  268. - use desktop-file-install
  269. - add omf to file list
  270. * Fri Jun 07 2002 Havoc Pennington <hp@redhat.com>
  271. - rebuild in different environment
  272. * Wed Jun 5 2002 Havoc Pennington <hp@redhat.com>
  273. - add post/postun ldconfig
  274. - rebuild with latest libs
  275. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  276. - rebuild in different environment
  277. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  278. - rebuild in different environment
  279. - buildrequire gail
  280. * Tue May 21 2002 Havoc Pennington <hp@redhat.com>
  281. - 1.547.0
  282. * Fri May 03 2002 Havoc Pennington <hp@redhat.com>
  283. - rebuild with new libs
  284. * Thu Apr 25 2002 Havoc Pennington <hp@redhat.com>
  285. - GNOME 2 version 1.520.2
  286. * Wed Aug 22 2001 Owen Taylor <otaylor@redhat.com>
  287. - Force regeneration of .po files (#52326)
  288. * Thu Jul 19 2001 Havoc Pennington <hp@redhat.com>
  289. - build requires gnome-libs-devel
  290. - fix rpmlint's utterly crack-smoking request that we not
  291. run /bin/sh in post/postun
  292. * Tue Jul 03 2001 Owen Taylor <otaylor@redhat.com>
  293. - Update to 1.2.3
  294. * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
  295. - Bump release + rebuild.
  296. * Wed May 9 2001 Owen Taylor <otaylor@redhat.com>
  297. - Version 1.2.2
  298. - Fix bogus scrollkeeper version in dependency
  299. * Fri Feb 23 2001 Trond Eivind Glomsr藷?<teg@redhat.com>
  300. - langify
  301. - move changelog to end of file
  302. - don't use and define "ver" at the top of the spec file
  303. * Tue Feb 07 2001 Than Ngo <than@redhat.com>
  304. - fixed non-standard dir perm (Bug #26264)
  305. * Wed Jan 31 2001 Elliot Lee <sopwith@redhat.com> 1.2.0-10
  306. - Fix bug #17713, grecord internals (Patch10)
  307. * Tue Jan 30 2001 Elliot Lee <sopwith@redhat.com> 1.2.0-9
  308. - Fix bug #21488, include cddb-submit-methods in file list
  309. * Thu Jan 18 2001 Akira TAGOH <tagoh@redhat.com>
  310. - Added Japanese patch.
  311. * Fri Aug 11 2000 Jonathan Blandford <jrb@redhat.com>
  312. - Update Epoch
  313. * Sat Aug 05 2000 Havoc Pennington <hp@redhat.com>
  314. - Find "sox", bug 15472, patch from Alan
  315. * Fri Aug 04 2000 Havoc Pennington <hp@redhat.com>
  316. - Add docs for gtcd, bug 14558
  317. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  318. - automatic rebuild
  319. * Sat Jul 8 2000 Havoc Pennington <hp@redhat.com>
  320. - Remove docdir
  321. * Thu Jun 15 2000 Havoc Pennington <hp@redhat.com>
  322. - 1.2.0
  323. - use %%makeinstall
  324. * Tue Sep 21 1999 Havoc Pennington <hp@redhat.com>
  325. - Fixed gtcd so it works without corba-gtcd
  326. - add DrMike's no-g_error() patch
  327. * Mon Sep 20 1999 Elliot Lee <sopwith@redhat.com>
  328. - Update to 1.0.40
  329. * Fri Sep 17 1999 Owen Taylor <otaylor@redhat.com>
  330. - Don't keep device open in gtcd
  331. * Thu Sep 9 1999 Owen Taylor <otaylor@redhat.com>
  332. - Fixed warnings with previous
  333. * Wed Sep 8 1999 Owen Taylor <otaylor@redhat.com>
  334. - added --play option to gtcd
  335. * Mon Aug 16 1999 Michael Fulbright <drmike@redhat.com>
  336. - version 1.0.9.1
  337. * Fri Mar 19 1999 Michael Fulbright <drmike@redhat.com>
  338. - strip binaries
  339. * Mon Feb 15 1999 Michael Fulbright <drmike@redhat.com>
  340. - version 0.99.8
  341. * Tue Jan 19 1999 Michael Fulbright <drmike@redhat.com>
  342. - fixed building on sparc and RH 5.2 - seems to get confused into thinking
  343. we have cd changer support when we don't
  344. * Wed Jan 06 1999 Michael Fulbright <drmike@redhat.com>
  345. - updated to 0.99.1
  346. * Wed Dec 16 1998 Michael Fulbright <drmike@redhat.com>
  347. - updated for GNOME freeze
  348. * Sat Nov 21 1998 Pablo Saratxaga <srtxg@chanae.alphanet.ch>
  349. - added spanish and french translations for rpm
  350. * Wed Sep 23 1998 Michael Fulbright <msf@redhat.com>
  351. - Updated to 0.30 release
  352. * Mon Mar 16 1998 Marc Ewing <marc@redhat.com>
  353. - Integrate into gnome-media CVS source tree