gnome-disk-utility-vl.spec 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309
  1. %define dbus_version 1.4.0
  2. %define dbus_glib_version 0.88
  3. %define glib2_version 2.26.0
  4. %define gtk2_version 2.22.0
  5. %define gnome_doc_utils_version 0.3.2
  6. %define libgnome_keyring_version 2.32
  7. %define udisks_version 1.0.1
  8. %define unique_version 1.0.4
  9. %define libnotify_version 0.4.5
  10. %define nautilus_version 2.32
  11. %define libatasmart_version 0.14
  12. %define avahi_version 0.6.30
  13. Summary: Disk management application
  14. Summary(ja): ディスク管理アプリケーション
  15. Name: gnome-disk-utility
  16. Version: 3.0.2
  17. Release: 1%{?_dist_release}
  18. License: LGPLv2+
  19. Group: System Environment/Libraries
  20. URL: http://git.gnome.org/cgit/gnome-disk-utility
  21. Source0: %{name}-%{version}.tar.xz
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  23. BuildRequires: dbus-devel >= %{dbus_version}
  24. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  25. BuildRequires: dbus-glib >= %{dbus_glib_version}
  26. BuildRequires: glib2-devel >= %{glib2_version}
  27. BuildRequires: gtk3-devel >= %{gtk3_version}
  28. BuildRequires: gnome-doc-utils >= %{gnome_doc_utils_version}
  29. BuildRequires: gettext
  30. BuildRequires: desktop-file-utils
  31. BuildRequires: libgnome-keyring-devel >= %{libgnome_keyring_version}
  32. BuildRequires: udisks-devel >= %{udisks_version}
  33. BuildRequires: unique3-devel >= %{unique3_version}
  34. BuildRequires: libnotify-devel >= %{libnotify_version}
  35. BuildRequires: nautilus-devel >= %{nautilus_version}
  36. BuildRequires: libatasmart-devel >= %{libatasmart_version}
  37. BuildRequires: avahi-ui-devel >= %{avahi_version}
  38. BuildRequires: intltool
  39. Requires(post): scrollkeeper
  40. Requires(postun): scrollkeeper
  41. Requires: %{name}-libs = %{version}-%{release}
  42. Obsoletes: gnome-disk-utility-format
  43. Obsoletes: nautilus-gdu
  44. Vendor: Project Vine
  45. Distribution: Vine Linux
  46. Packager: Takemikaduchi
  47. %description
  48. This package contains the Palimpsest disk management application.
  49. Palimpsest supports partitioning, file system creation, encryption,
  50. RAID, SMART monitoring, etc.
  51. %package libs
  52. Summary: Shared libraries used by Palimpsest
  53. Summary(ja): Shared libraries used by Palimpsest
  54. Group: Development/Libraries
  55. Requires: udisks
  56. Requires(post): /sbin/ldconfig
  57. Requires(postun): /sbin/ldconfig
  58. %description libs
  59. This package contains libraries that are used by the Palimpsest
  60. disk management application. The libraries in this package do not
  61. contain UI-related code.
  62. %package ui-libs
  63. Summary: Shared libraries used by Palimpsest
  64. Summary(ja): Shared libraries used by Palimpsest
  65. Group: Development/Libraries
  66. Requires: %{name}-libs = %{version}-%{release}
  67. Requires(post): /sbin/ldconfig
  68. Requires(postun): /sbin/ldconfig
  69. %description ui-libs
  70. This package contains libraries that are used by the Palimpsest
  71. disk management application. The libraries in this package contain
  72. disk-related widgets for use in GTK+ applications.
  73. %package devel
  74. Summary: Development files for gnome-disk-utility-libs
  75. Summary(ja): Development files for gnome-disk-utility-libs
  76. Group: Development/Libraries
  77. Requires: %{name}-libs = %{version}-%{release}
  78. Requires: glib2-devel
  79. Requires: pkgconfig
  80. %description devel
  81. This package contains header files and libraries needed to
  82. develop applications with gnome-disk-utility-libs.
  83. %package ui-devel
  84. Summary: Development files for gnome-disk-utility-ui-libs
  85. Summary(ja): Development files for gnome-disk-utility-ui-libs
  86. Group: Development/Libraries
  87. Requires: %{name}-ui-libs = %{version}-%{release}
  88. Requires: %{name}-devel = %{version}-%{release}
  89. Requires: gtk2-devel
  90. Requires: pkgconfig
  91. %description ui-devel
  92. This package contains header files and libraries needed to
  93. develop applications with gnome-disk-utility-ui-libs.
  94. %prep
  95. %setup -q
  96. %build
  97. %configure
  98. make
  99. %install
  100. rm -rf $RPM_BUILD_ROOT
  101. make install DESTDIR=$RPM_BUILD_ROOT
  102. # TODO: upstream doesn't ship a HACKING file yet
  103. echo " " > HACKING
  104. perl -pi -e 's/OnlyShowIn=GNOME;Unity;/OnlyShowIn=GNOME;/' $RPM_BUILD_ROOT%{_datadir}/applications/palimpsest.desktop
  105. perl -pi -e 's/OnlyShowIn=GNOME;Unity;/OnlyShowIn=GNOME;/' $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/gdu-notification-daemon.desktop
  106. desktop-file-install --delete-original \
  107. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  108. $RPM_BUILD_ROOT%{_datadir}/applications/palimpsest.desktop
  109. desktop-file-install --delete-original \
  110. --dir $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart \
  111. $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/gdu-notification-daemon.desktop
  112. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  113. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  114. rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.la
  115. rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-3.0/*.a
  116. %find_lang %{name}
  117. %clean
  118. rm -rf $RPM_BUILD_ROOT
  119. %post
  120. scrollkeeper-update
  121. update-desktop-database %{_datadir}/applications &> /dev/null
  122. %postun
  123. scrollkeeper-update
  124. update-desktop-database %{_datadir}/applications &> /dev/null
  125. %post libs
  126. touch --no-create %{_datadir}/icons/hicolor
  127. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  128. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  129. fi
  130. /sbin/ldconfig
  131. %postun libs
  132. touch --no-create %{_datadir}/icons/hicolor
  133. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  134. gtk-update-icon-cache -q %{_datadir}/icons/hicolor
  135. fi
  136. /sbin/ldconfig
  137. %post ui-libs -p /sbin/ldconfig
  138. %postun ui-libs -p /sbin/ldconfig
  139. %files
  140. %defattr(-,root,root,-)
  141. %{_libexecdir}/gdu-notification-daemon
  142. %{_sysconfdir}/xdg/autostart/gdu-notification-daemon.desktop
  143. %{_libdir}/nautilus/extensions-3.0/*.so
  144. %{_libexecdir}/gdu-format-tool
  145. %{_bindir}/palimpsest
  146. %{_datadir}/applications/palimpsest.desktop
  147. %dir %{_datadir}/gnome/help/palimpsest
  148. %{_datadir}/gnome/help/palimpsest/*
  149. %dir %{_datadir}/omf/palimpsest
  150. %{_datadir}/omf/palimpsest/*
  151. %files libs -f %{name}.lang
  152. %defattr(-,root,root,-)
  153. %doc README AUTHORS NEWS COPYING HACKING doc/TODO
  154. %{_libdir}/libgdu.so.*
  155. # Yes, it's a bit weird to include icons in the non-UI package but the
  156. # library returns references to these icons
  157. %{_datadir}/icons/hicolor/*/apps/*.png
  158. %{_datadir}/icons/hicolor/scalable/apps/*.svg
  159. %files ui-libs
  160. %defattr(-,root,root,-)
  161. %{_libdir}/libgdu-gtk.so.*
  162. %files devel
  163. %defattr(-,root,root,-)
  164. %{_libdir}/libgdu.so
  165. %{_libdir}/pkgconfig/gdu.pc
  166. %dir %{_includedir}/gnome-disk-utility
  167. %dir %{_includedir}/gnome-disk-utility/gdu
  168. %{_includedir}/gnome-disk-utility/gdu/*
  169. %files ui-devel
  170. %defattr(-,root,root,-)
  171. %{_libdir}/libgdu-gtk.so
  172. %{_libdir}/pkgconfig/gdu-gtk.pc
  173. %dir %{_includedir}/gnome-disk-utility/gdu-gtk
  174. %{_includedir}/gnome-disk-utility/gdu-gtk/*
  175. %changelog
  176. * Tue Aug 16 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  177. - new upstream release
  178. - change BuildRequires: gtk3-devel instead of gtk2-devel
  179. - change BuildRequires: unique3-devel instead of unique-devel
  180. * Tue Oct 05 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.32.0-1
  181. - new upstream release
  182. - fix %files
  183. * Thu Apr 08 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.30.1-1
  184. - new upstream release
  185. - change BuildRequires: DeviceKit-disks-devel -> udisks-devel
  186. - change Requires: DeviceKit-disks -> udisks
  187. - add BuildRequires: avahi-ui-devel
  188. * Wed Nov 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.28.1-1
  189. - initial build for Vine Linux
  190. * Mon Nov 2 2009 David Zeuthen <davidz@redhat.com> - 2.28.1-1%{?dist}
  191. - Update to 2.28.1
  192. * Tue Oct 13 2009 Tomas Bzatek <tbzatek@redhat.com> - 2.28.0-5%{?dist}
  193. - Fix nautilus crashes by proper object referencing
  194. * Mon Oct 5 2009 Matthias Clasen <mclasen@redhat.com> - 2.28.0-4%{?dist}
  195. - Incorporate fixes for translation issues from the stable upstream branch
  196. * Fri Sep 18 2009 David Zeuthen <davidz@redhat.com> - 2.28.0-2%{?dist}
  197. - BR libatasmart-devel
  198. * Fri Sep 18 2009 David Zeuthen <davidz@redhat.com> - 2.28.0-1%{?dist}
  199. - Update to upstream release 2.28.0
  200. - Compared to previous releases, this release should whine less about SMART
  201. * Mon Aug 17 2009 David Zeuthen <davidz@redhat.com> - 0.5-3%{?dist}
  202. - Drop upstreamed patch
  203. * Mon Aug 17 2009 David Zeuthen <davidz@redhat.com> - 0.5-2%{?dist}
  204. - Rebuild
  205. * Mon Aug 17 2009 David Zeuthen <davidz@redhat.com> - 0.5-1%{?dist}
  206. - Update to release 0.5
  207. * Mon Jul 27 2009 Matthias Clasen <mclasen@redhat.com> - 0.4-3%{?dist}
  208. - Drop PolicyKit from .pc files, too
  209. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-2
  210. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  211. * Fri Jun 19 2009 David Zeuthen <davidz@redhat.com> - 0.4-1%{?dist}
  212. - Update to release 0.4
  213. * Fri May 01 2009 David Zeuthen <davidz@redhat.com> - 0.3-1%{?dist}
  214. - Upstream release 0.3
  215. * Wed Apr 15 2009 David Zeuthen <davidz@redhat.com> - 0.3-0.5.20090415git%{?dist}
  216. - New snapshot
  217. * Sun Apr 12 2009 David Zeuthen <davidz@redhat.com> - 0.3-0.4.20090412git%{?dist}
  218. - New snapshot
  219. * Fri Apr 10 2009 Matthias Clasen <mclasen@redhat.com> - 0.3-0.3.20090406git%{?dist}
  220. - Don't own directories that belong to hicolor-icon-theme
  221. * Wed Apr 08 2009 David Zeuthen <davidz@redhat.com> - 0.3-0.2.20090406git%{?dist}
  222. - Fix bug in detecting when a PolicyKit error is returned (#494787)
  223. * Mon Apr 06 2009 David Zeuthen <davidz@redhat.com> - 0.3-0.1.20090406git%{?dist}
  224. - New snapshot
  225. * Wed Mar 04 2009 David Zeuthen <davidz@redhat.com> - 0.2-2%{?dist}
  226. - Don't crash when changing the LUKS passphrase on a device
  227. * Mon Mar 02 2009 David Zeuthen <davidz@redhat.com> - 0.2-1%{?dist}
  228. - Update to version 0.2
  229. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-0.git20080720.2.1
  230. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  231. * Tue Jan 27 2009 Matthias Clasen <mclasen@redhat.com> 0.1-0.git20080720.2%{?dist}
  232. - Rebuild for pkgconfig provides
  233. * Sun Nov 23 2008 Matthias Clasen <mclasen@redhat.com> 0.1-0.git20080720.1%{?dist}
  234. - Improve %%summary and %%description
  235. * Fri Jul 20 2008 David Zeuthen <davidz@redhat.com> - 0.1-0.git20080720%{?dist}
  236. - Initial Packaging