gnome-volume-manager-vl.spec 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. Summary: The GNOME Volume Manager
  2. Summary(ja): GNOME ボリュームマネージャ
  3. Name: gnome-volume-manager
  4. Version: 2.24.1
  5. Release: 2%{?_dist_release}
  6. License: GPL
  7. Group: Applications/System
  8. Source0: gnome-volume-manager-%{version}.tar.bz2
  9. Source1: magicdev-wrapper
  10. Source2: gthumb-import
  11. Source3: gnome-cdda-handler
  12. Source4: cdda-url-handler.schemas
  13. Patch2: gnome-volume-manager-2.17.0-add-console-user-check.patch
  14. Patch3: gnome-volume-manager-2.15.0-check-screensaver.patch
  15. # vine default
  16. Patch10: gnome-volume-manager-1.5.14-vine.patch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildRequires: libgnomeui-devel, libglade2-devel
  19. BuildRequires: hal-devel >= 0.5
  20. BuildRequires: dbus-devel >= 0.60
  21. BuildRequires: dbus-glib-devel >= 0.60
  22. BuildRequires: libnotify-devel
  23. BuildRequires: desktop-file-utils
  24. BuildRequires: libSM-devel
  25. Requires: gnome-mime-data
  26. Requires: control-center >= 2.0
  27. Requires: dbus >= 0.60
  28. Requires: hal
  29. Requires: gthumb
  30. Requires: gnome-media
  31. Requires(post,pre,preun): GConf2
  32. Obsoletes: magicdev
  33. Provides: magicdev
  34. Obsoletes: murasaki-usb-mount
  35. %description
  36. The GNOME Volume Manager monitors volume-related events and responds with
  37. user-specified policy. The GNOME Volume Manager can automount hot-plugged
  38. drives, automount inserted removable media, autorun programs, automatically
  39. play audio CDs and video DVDs, and automatically import photos from a digital
  40. camera. The GNOME Volume Manager does this entirely in user-space and without
  41. polling.
  42. The GNOME Voume Manager sits at the top end of a larger picture that aims to
  43. integrate the Linux system from the kernel on up through the desktop and its
  44. applications.
  45. %prep
  46. %setup -q
  47. %patch2 -p1 -b .add-console-user-check
  48. #patch3 -p0 -b .screensaver
  49. #%patch10 -p1 -b .vine
  50. %build
  51. %configure
  52. make %{?_smp_mflags}
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
  56. %makeinstall
  57. unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
  58. desktop-file-install --delete-original --vendor=gnome \
  59. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  60. --add-category=HardwareSettings \
  61. $RPM_BUILD_ROOT%{_datadir}/applications/gnome-volume-properties.desktop
  62. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart
  63. install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/magicdev
  64. install -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/gthumb-import
  65. install -d $RPM_BUILD_ROOT%{_libexecdir}/
  66. install -m 755 %{SOURCE3} $RPM_BUILD_ROOT%{_libexecdir}/gnome-cdda-handler
  67. install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/cdda-url-handler.schemas
  68. %find_lang %name
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %post
  72. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  73. SCHEMAS="gnome-volume-manager.schemas cdda-url-handler.schemas"
  74. for S in $SCHEMAS; do
  75. gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
  76. done
  77. %pre
  78. if [ "$1" -gt 1 ]; then
  79. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  80. SCHEMAS="gnome-volume-manager.schemas cdda-url-handler.schemas"
  81. for S in $SCHEMAS; do
  82. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
  83. done
  84. fi
  85. %preun
  86. if [ "$1" -eq 0 ]; then
  87. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  88. SCHEMAS="gnome-volume-manager.schemas cdda-url-handler.schemas"
  89. for S in $SCHEMAS; do
  90. gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
  91. done
  92. fi
  93. %files -f %{name}.lang
  94. %defattr(-,root,root)
  95. %doc AUTHORS ChangeLog COPYING INSTALL NEWS README TODO
  96. %{_bindir}/*
  97. %{_datadir}/applications/gnome-volume-properties.desktop
  98. %{_datadir}/gnome-volume-manager
  99. #{_datadir}/gnome/autostart/gnome-volume-manager.desktop
  100. %{_sysconfdir}/gconf/schemas/*.schemas
  101. %{_sysconfdir}/xdg/autostart/gnome-volume-manager.desktop
  102. %{_libexecdir}/gnome-cdda-handler
  103. %{_libexecdir}/gnome-volume-manager
  104. %changelog
  105. * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2.24.1-2
  106. - rebuilt with rpm-4.8.1-3
  107. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.1-1
  108. - new upstream release
  109. - add BuildRequires: libSM-devel
  110. - drop Patch10
  111. * Fri Sep 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  112. - new upstream release
  113. * Thu Jul 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22.5-1vl5
  114. - new upstream release
  115. * Sun Apr 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1-1vl5
  116. - new upstream release
  117. - added %%pre and %%preun section
  118. * Sun Jan 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-0vl1
  119. - new upstream release
  120. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.17.0-0vl1
  121. - new upstream release
  122. * Sat Oct 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.15-0vl3
  123. - update Patch0 to add "--unique" to gnome-cd option (<BTS:294>)
  124. * Wed Oct 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.15-0vl2
  125. - update Patch10 to fix audio cd settings. (<BTS:236>)
  126. * Sat Mar 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.15-0vl1
  127. - new upstream release
  128. * Fri Mar 10 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.14-0vl2
  129. - add Patch10 to change default settings for Vine Linux
  130. * Mon Mar 06 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.14-0vl1
  131. - new upstream release
  132. * Thu Oct 06 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.2-0vl1
  133. - new upstream release
  134. * Wed Jul 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2-0vl2
  135. - Obosletes murasaki-usb-mount
  136. * Mon Jul 11 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2-0vl1
  137. - new upstream release
  138. * Thu Mar 24 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
  139. - initial build for Vine Linux based on FC package.
  140. - new upstream release
  141. - drop all fc patches
  142. * Mon Mar 07 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.3-3
  143. - Fixed up hal-api patch
  144. * Fri Feb 25 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.3-2
  145. - Reenable BuildPrereq for hal-devel
  146. * Wed Feb 23 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.3-1
  147. - Update to upstream version
  148. - add patch to update to the new hal-0.5.0 API
  149. - took out locking patch as it was added upstream
  150. - took out policy-after-explicit-mount-only patch as it was added
  151. upstream
  152. - removed %{_datadir}/control-center-2.0/capplets/* glob
  153. - added %{_datadir}/applications/gnome-volume-properties.desktop
  154. * Mon Oct 18 2004 John (J5) Palmieri <johnp@redhat.com> - 1.1.0-5
  155. - Merged the photo-defaults patch with a new rh-defaults patch
  156. - Shut off autorun by default as it is a security concern and we
  157. currently don't have any use for it
  158. - Added policy-after-explicit-mount-only patch which fixes problems
  159. such as a user mounting a removable drive from the command line
  160. and a Nautilus window pops up, and two Nautilus windows popping
  161. up in browser mode when a device is mounted through Nautilus.
  162. * Fri Oct 08 2004 John (J5) Palmieri <johnp@redhat.com> - 1.1.0-4
  163. - exclude building on s390 and s390x
  164. * Wed Oct 06 2004 John (J5) Palmieri <johnp@redhat.com> - 1.1.0-3
  165. - Added gnome-cdda-handler and associated schema to cause the
  166. cdda url handler to use the values in g-v-m's gconf key for
  167. audio cd's. This causes the g-v-m selected application for
  168. audio cd's to launch when double clicking on an audio cd icon
  169. in Nautilus.
  170. * Thu Sep 30 2004 John (J5) Palmieri <johnp@redhat.com>
  171. - Added patch to add the dbus-glib-lowlevel.h header
  172. * Mon Sep 20 2004 David Zeuthen <davidz@redhat.com>
  173. - Update to upstream version 1.1.0
  174. - Fix requirement for gnome-cd to be the gnome-media package
  175. * Mon Sep 20 2004 David Zeuthen <davidz@redhat.com>
  176. - Add locking patch
  177. * Fri Sep 17 2004 John (J5) Palmieri <johnp@redhat.com>
  178. - Update to upstream 1.0.2
  179. - Readd patches I took out by accident
  180. - Add a requirement for gthumb and gnome-cd
  181. * Mon Sep 13 2004 John (J5) Palmieri <johnp@redhat.com>
  182. - Update to upstream 1.0
  183. * Fri Sep 03 2004 John (J5) Palmieri <johnp@redhat.com>
  184. - gthumb-import now checks to see if there is a DCIM directory
  185. and open up to that directory if so
  186. * Wed Sep 01 2004 Davidz Zeuthen <davidz@redhat.com>
  187. - Fix a few issues to keep up with hal
  188. * Tue Aug 31 2004 John (J5) Palmieri <johnp@redhat.com>
  189. - Update to upstream release 0.9.10
  190. - Add gthumb-import wrapper to import photos correctly
  191. - Add patch to set gthumb-import as the default photo importer
  192. - Add patch to put desktop file in the X-Red-Hat-Base Catagory
  193. - Fixes RH Bug 130866
  194. * Fri Aug 20 2004 John (J5) Palmieri <johnp@redhat.com>
  195. - Added Provides: magicdev to fix conflict
  196. * Tue Aug 17 2004 David Zeuthen <davidz@redhat.com>
  197. - Update to upstream release 0.9.9
  198. - Apply mount-unmount patch
  199. * Mon Jul 26 2004 Ray Strode <rstrode@redhat.com>
  200. - Add magicdev compatibility wrapper script and obsolete magicdev.
  201. * Thu May 27 2004 John (J5) Palmieri <johnp@redhat.com>
  202. - Upstream CVS
  203. * Wed May 05 2004 John (J5) Palmieri <johnp@redhat.com>
  204. - Made sure GConf Schemas are installed
  205. * Tue Apr 20 2004 John (J5) Palmieri <johnp@redhat.com>
  206. - initial packaging of 0.9.2