gnome-disk-utility-vl.spec 9.1 KB

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