DeviceKit-disks-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. %define glib2_version 2.6.0
  2. %define dbus_version 1.2
  3. %define dbus_glib_version 0.82
  4. %define polkit_version 0.92
  5. %define parted_version 1.8.8
  6. %define udev_version 145
  7. %define mdadm_version 2.6.7
  8. %define device_mapper_version 1.02
  9. %define libatasmart_version 0.12
  10. %define sg3_utils_version 1.27
  11. Summary: Disk Management Service
  12. Summary(ja): ディスク管理サービス
  13. Name: DeviceKit-disks
  14. Version: 009
  15. Release: 1%{?_dist_release}
  16. License: GPLv2+
  17. Group: System Environment/Libraries
  18. URL: http://cgit.freedesktop.org/DeviceKit/DeviceKit-disks/
  19. Source0: %{name}-%{version}.tar.gz
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  21. BuildRequires: glib2-devel >= %{glib2_version}
  22. BuildRequires: dbus-devel >= %{dbus_version}
  23. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  24. BuildRequires: polkit-devel >= %{polkit_version}
  25. BuildRequires: parted-devel >= %{parted_version}
  26. BuildRequires: device-mapper-devel >= %{device_mapper_version}
  27. BuildRequires: intltool
  28. BuildRequires: libatasmart-devel >= %{libatasmart_version}
  29. BuildRequires: zlib-devel
  30. BuildRequires: libgudev1-devel >= %{udev_version}
  31. BuildRequires: libudev-devel >= %{udev_version}
  32. BuildRequires: sg3_utils-devel >= %{sg3_utils_version}
  33. Requires: dbus >= %{dbus_version}
  34. Requires: dbus-glib >= %{dbus_glib_version}
  35. Requires: glib2 >= %{glib2_version}
  36. Requires: polkit >= %{polkit_version}
  37. Requires: parted >= %{parted_version}
  38. Requires: udev >= %{udev_version}
  39. Requires: mdadm >= %{mdadm_version}
  40. Requires: libatasmart >= %{libatasmart_version}
  41. Requires: zlib
  42. # for mount, umount, mkswap
  43. Requires: util-linux-ng
  44. # for mkfs.ext3, mkfs.ext3, e2label
  45. Requires: e2fsprogs
  46. # for mkfs.xfs, xfs_admin
  47. Requires: xfsprogs
  48. # for mkfs.vfat
  49. Requires: dosfstools
  50. # for mlabel
  51. Requires: mtools
  52. # for mkntfs
  53. # no ntfsprogs on ppc, though
  54. %ifnarch ppc ppc64
  55. Requires: ntfsprogs
  56. %endif
  57. # for /proc/self/mountinfo, only available in 2.6.26 or higher
  58. Conflicts: kernel < 2.6.26
  59. %description
  60. DeviceKit-disks provides a daemon, D-Bus API and command line tools
  61. for managing disks and storage devices.
  62. %package devel
  63. Summary: D-Bus interface definitions for DeviceKit-disks
  64. Summary(ja): DeviceKit-disks 用の D-Bus インタフェース定義
  65. Group: Development/Libraries
  66. Requires: %{name} = %{version}-%{release}
  67. # stupid guidelines require this for ownership of /usr/share/gtk-doc
  68. Requires: gtk-doc
  69. %description devel
  70. D-Bus interface definitions for DeviceKit-disks.
  71. %prep
  72. %setup -q
  73. %build
  74. %configure --enable-gtk-doc
  75. make
  76. %install
  77. rm -rf $RPM_BUILD_ROOT
  78. make install DESTDIR=$RPM_BUILD_ROOT
  79. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  80. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  81. rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.la
  82. rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.a
  83. # TODO: should be fixed upstream
  84. chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/devkit-disks-bash-completion.sh
  85. %find_lang %{name}
  86. %clean
  87. rm -rf $RPM_BUILD_ROOT
  88. %files -f %{name}.lang
  89. %defattr(-,root,root,-)
  90. %doc README AUTHORS NEWS COPYING HACKING doc/TODO
  91. %{_sysconfdir}/dbus-1/system.d/*.conf
  92. %{_sysconfdir}/profile.d/*.sh
  93. /lib/udev/rules.d/*.rules
  94. /lib/udev/devkit-disks-part-id
  95. /lib/udev/devkit-disks-dm-export
  96. /lib/udev/devkit-disks-probe-ata-smart
  97. /sbin/umount.devkit
  98. %{_bindir}/*
  99. %{_libexecdir}/*
  100. %{_mandir}/man1/*
  101. %{_mandir}/man7/*
  102. %{_mandir}/man8/*
  103. %{_datadir}/pkgconfig/DeviceKit-disks.pc
  104. %{_datadir}/polkit-1/actions/*.policy
  105. %{_libdir}/polkit-1/extensions/*.so
  106. %{_datadir}/dbus-1/system-services/*.service
  107. %attr(0770,root,root) %dir %{_localstatedir}/run/DeviceKit-disks
  108. %attr(0770,root,root) %dir %{_localstatedir}/lib/DeviceKit-disks
  109. %files devel
  110. %defattr(-,root,root,-)
  111. %{_datadir}/dbus-1/interfaces/*.xml
  112. %dir %{_datadir}/gtk-doc/html/devkit-disks
  113. %{_datadir}/gtk-doc/html/devkit-disks/*
  114. %changelog
  115. * Wed Nov 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 009-1
  116. - new upstream release
  117. - drop obsolete patches
  118. * Mon Oct 19 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 007-1
  119. - initial build for Vine Linux
  120. * Tue Oct 13 2009 Matthias Clasen <mclasen@redhat.com> - 007-5%{?dist}
  121. - Give media players better icons
  122. * Mon Oct 05 2009 David Zeuthen <davidz@redhat.com> - 007-4%{?dist}
  123. - Rebuild
  124. * Mon Oct 05 2009 David Zeuthen <davidz@redhat.com> - 007-3%{?dist}
  125. - Rebuild
  126. * Mon Oct 05 2009 David Zeuthen <davidz@redhat.com> - 007-2%{?dist}
  127. - Actually inhibit the daemon (#527091)
  128. * Fri Sep 18 2009 David Zeuthen <davidz@redhat.com> - 007-1%{?dist}
  129. - Update to release 007
  130. * Mon Aug 17 2009 David Zeuthen <davidz@redhat.com> - 006-1%{?dist}
  131. - Update to release 006
  132. * Fri Aug 07 2009 David Zeuthen <davidz@redhat.com> - 005-5%{?dist}
  133. - Update for new libatasmart version
  134. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 005-4
  135. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  136. * Sun Jul 12 2009 Matthias Clasen <mclasen@redhat.com> - 005-3.f12
  137. - Rebuild
  138. * Fri Jun 19 2009 David Zeuthen <davidz@redhat.com> - 005-2%{?dist}
  139. - Fix BR
  140. * Fri Jun 19 2009 David Zeuthen <davidz@redhat.com> - 005-1%{?dist}
  141. - Update to release 005
  142. * Tue May 19 2009 David Zeuthen <davidz@redhat.com> - 004-3%{?dist}
  143. - Avoid checking whether device is ATA SMART capable if the device reports
  144. removable media (#494932)
  145. * Fri May 01 2009 David Zeuthen <davidz@redhat.com> - 004-2%{?dist}
  146. - Rebuild
  147. * Fri May 01 2009 David Zeuthen <davidz@redhat.com> - 004-1%{?dist}
  148. - Upstream release 004
  149. * Thu Apr 16 2009 David Zeuthen <davidz@redhat.com> - 004-0.10.20090415git%{?dist}
  150. - Properly detect vfat on whole disk devices (#495876)
  151. * Wed Apr 15 2009 David Zeuthen <davidz@redhat.com> - 004-0.9.20090415git%{?dist}
  152. - Rebuild
  153. * Wed Apr 15 2009 David Zeuthen <davidz@redhat.com> - 004-0.8.20090415git%{?dist}
  154. - New snapshot
  155. * Sun Apr 12 2009 David Zeuthen <davidz@redhat.com> - 004-0.7.20090412git%{?dist}
  156. - New snapshot
  157. * Thu Apr 09 2009 David Zeuthen <davidz@redhat.com> - 004-0.6.20090408git%{?dist}
  158. - use correct dmode for iso9660 mounts (#495018)
  159. * Wed Apr 08 2009 David Zeuthen <davidz@redhat.com> - 004-0.5.20090408git%{?dist}
  160. - New snapshot
  161. * Mon Apr 06 2009 David Zeuthen <davidz@redhat.com> - 004-0.4.20090406git%{?dist}
  162. - Rebuild
  163. * Mon Apr 06 2009 David Zeuthen <davidz@redhat.com> - 004-0.3.20090406git%{?dist}
  164. - BR libudev-devel
  165. * Mon Apr 06 2009 David Zeuthen <davidz@redhat.com> - 004-0.2.20090406git%{?dist}
  166. - New snapshot, this time with the right date
  167. * Mon Apr 06 2009 David Zeuthen <davidz@redhat.com> - 004-0.1.20080406git%{?dist}
  168. - New snapshot
  169. * Fri Mar 27 2009 Matthias Clasen <mclasen@redhat.com> - 003-9.f11
  170. - Don't require ntfsprogs on ppc, where it doesn't exist
  171. * Wed Mar 25 2009 Matthias Clasen <mclasen@redhat.com> - 003-8.f11
  172. - Add dependencies to for all the cmdline tools we use (#490670)
  173. * Thu Mar 19 2009 David Zeuthen <davidz@redhat.com> - 003-7%{?dist}
  174. - Make sure dm devices are marked as system-internal (#489397)
  175. * Tue Mar 10 2009 Matthias Clasen <mclasen@redhat.com> - 003-6%{?dist}
  176. - Fix the previous patch
  177. * Fri Mar 6 2009 Matthias Clasen <mclasen@redhat.com> - 003-5%{?dist}
  178. - Handle -- correctly in devkit-disks
  179. * Wed Mar 04 2009 David Zeuthen <davidz@redhat.com> - 003-3%{?dist}
  180. - Add --dump option to devkit-disks(1) to help with debugging
  181. - Allow authorized users to unmount /etc/fstab mounts
  182. * Tue Mar 03 2009 David Zeuthen <davidz@redhat.com> - 003-2%{?dist}
  183. - Identify mounts using dev_t, not device files (#488258)
  184. * Mon Mar 02 2009 David Zeuthen <davidz@redhat.com> - 003-1%{?dist}
  185. - Update to version 003
  186. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 002-3.git20080720
  187. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  188. * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 002-2.git20080720
  189. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  190. * Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 002-1.git20080720
  191. - Add dbus permissions patch
  192. * Fri Jul 20 2008 David Zeuthen <davidz@redhat.com> - 002-0.git20080720%{?dist}
  193. - Initial packaging