gnome-volume-manager-vl.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. Summary: The GNOME Volume Manager
  2. Summary(ja): GNOME ボリュームマネージャ
  3. Name: gnome-volume-manager
  4. Version: 2.24.1
  5. Release: 1%{?_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 Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.24.1-1
  106. - new upstream release
  107. - add BuildRequires: libSM-devel
  108. - drop Patch10
  109. * Fri Sep 26 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.24.0-1
  110. - new upstream release
  111. * Thu Jul 03 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.22.5-1vl5
  112. - new upstream release
  113. * Sun Apr 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.1-1vl5
  114. - new upstream release
  115. - added %%pre and %%preun section
  116. * Sun Jan 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.22.0-0vl1
  117. - new upstream release
  118. * Sat Apr 28 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.17.0-0vl1
  119. - new upstream release
  120. * Sat Oct 21 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.15-0vl3
  121. - update Patch0 to add "--unique" to gnome-cd option (<BTS:294>)
  122. * Wed Oct 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.15-0vl2
  123. - update Patch10 to fix audio cd settings. (<BTS:236>)
  124. * Sat Mar 11 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.15-0vl1
  125. - new upstream release
  126. * Fri Mar 10 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.14-0vl2
  127. - add Patch10 to change default settings for Vine Linux
  128. * Mon Mar 06 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.14-0vl1
  129. - new upstream release
  130. * Thu Oct 06 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.2-0vl1
  131. - new upstream release
  132. * Wed Jul 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2-0vl2
  133. - Obosletes murasaki-usb-mount
  134. * Mon Jul 11 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2-0vl1
  135. - new upstream release
  136. * Thu Mar 24 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-0vl1
  137. - initial build for Vine Linux based on FC package.
  138. - new upstream release
  139. - drop all fc patches
  140. * Mon Mar 07 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.3-3
  141. - Fixed up hal-api patch
  142. * Fri Feb 25 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.3-2
  143. - Reenable BuildPrereq for hal-devel
  144. * Wed Feb 23 2005 John (J5) Palmieri <johnp@redhat.com> - 1.1.3-1
  145. - Update to upstream version
  146. - add patch to update to the new hal-0.5.0 API
  147. - took out locking patch as it was added upstream
  148. - took out policy-after-explicit-mount-only patch as it was added
  149. upstream
  150. - removed %{_datadir}/control-center-2.0/capplets/* glob
  151. - added %{_datadir}/applications/gnome-volume-properties.desktop
  152. * Mon Oct 18 2004 John (J5) Palmieri <johnp@redhat.com> - 1.1.0-5
  153. - Merged the photo-defaults patch with a new rh-defaults patch
  154. - Shut off autorun by default as it is a security concern and we
  155. currently don't have any use for it
  156. - Added policy-after-explicit-mount-only patch which fixes problems
  157. such as a user mounting a removable drive from the command line
  158. and a Nautilus window pops up, and two Nautilus windows popping
  159. up in browser mode when a device is mounted through Nautilus.
  160. * Fri Oct 08 2004 John (J5) Palmieri <johnp@redhat.com> - 1.1.0-4
  161. - exclude building on s390 and s390x
  162. * Wed Oct 06 2004 John (J5) Palmieri <johnp@redhat.com> - 1.1.0-3
  163. - Added gnome-cdda-handler and associated schema to cause the
  164. cdda url handler to use the values in g-v-m's gconf key for
  165. audio cd's. This causes the g-v-m selected application for
  166. audio cd's to launch when double clicking on an audio cd icon
  167. in Nautilus.
  168. * Thu Sep 30 2004 John (J5) Palmieri <johnp@redhat.com>
  169. - Added patch to add the dbus-glib-lowlevel.h header
  170. * Mon Sep 20 2004 David Zeuthen <davidz@redhat.com>
  171. - Update to upstream version 1.1.0
  172. - Fix requirement for gnome-cd to be the gnome-media package
  173. * Mon Sep 20 2004 David Zeuthen <davidz@redhat.com>
  174. - Add locking patch
  175. * Fri Sep 17 2004 John (J5) Palmieri <johnp@redhat.com>
  176. - Update to upstream 1.0.2
  177. - Readd patches I took out by accident
  178. - Add a requirement for gthumb and gnome-cd
  179. * Mon Sep 13 2004 John (J5) Palmieri <johnp@redhat.com>
  180. - Update to upstream 1.0
  181. * Fri Sep 03 2004 John (J5) Palmieri <johnp@redhat.com>
  182. - gthumb-import now checks to see if there is a DCIM directory
  183. and open up to that directory if so
  184. * Wed Sep 01 2004 Davidz Zeuthen <davidz@redhat.com>
  185. - Fix a few issues to keep up with hal
  186. * Tue Aug 31 2004 John (J5) Palmieri <johnp@redhat.com>
  187. - Update to upstream release 0.9.10
  188. - Add gthumb-import wrapper to import photos correctly
  189. - Add patch to set gthumb-import as the default photo importer
  190. - Add patch to put desktop file in the X-Red-Hat-Base Catagory
  191. - Fixes RH Bug 130866
  192. * Fri Aug 20 2004 John (J5) Palmieri <johnp@redhat.com>
  193. - Added Provides: magicdev to fix conflict
  194. * Tue Aug 17 2004 David Zeuthen <davidz@redhat.com>
  195. - Update to upstream release 0.9.9
  196. - Apply mount-unmount patch
  197. * Mon Jul 26 2004 Ray Strode <rstrode@redhat.com>
  198. - Add magicdev compatibility wrapper script and obsolete magicdev.
  199. * Thu May 27 2004 John (J5) Palmieri <johnp@redhat.com>
  200. - Upstream CVS
  201. * Wed May 05 2004 John (J5) Palmieri <johnp@redhat.com>
  202. - Made sure GConf Schemas are installed
  203. * Tue Apr 20 2004 John (J5) Palmieri <johnp@redhat.com>
  204. - initial packaging of 0.9.2