udisks2-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. %define glib2_version 2.32.0
  2. %define dbus_version 1.4.20
  3. %define dbus_glib_version 0.98
  4. %define polkit_version 0.104
  5. %define parted_version 2.3
  6. %define udev_version 175
  7. %define mdadm_version 2.6.7
  8. %define device_mapper_version 1.02
  9. %define libatasmart_version 0.17
  10. %define sg3_utils_version 1.27
  11. %define smp_utils_version 0.94
  12. %define lvm2_version 2.02.78
  13. Summary: Storage Management Service
  14. Name: udisks2
  15. Version: 2.1.0
  16. Release: 1%{?_dist_release}
  17. License: GPLv2+
  18. Group: System Environment/Libraries
  19. URL: http://www.freedesktop.org/wiki/Software/udisks
  20. Source0: http://udisks.freedesktop.org/releases/udisks-%{version}.tar.bz2
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  22. BuildRequires: glib2-devel >= %{glib2_version}
  23. BuildRequires: dbus-devel >= %{dbus_version}
  24. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  25. BuildRequires: polkit-devel >= %{polkit_version}
  26. BuildRequires: parted-devel >= %{parted_version}
  27. BuildRequires: device-mapper-devel >= %{device_mapper_version}
  28. BuildRequires: libacl-devel
  29. BuildRequires: intltool
  30. BuildRequires: libatasmart-devel >= %{libatasmart_version}
  31. BuildRequires: libgudev1-devel >= %{udev_version}
  32. BuildRequires: libudev-devel >= %{udev_version}
  33. BuildRequires: sg3_utils-devel >= %{sg3_utils_version}
  34. BuildRequires: lvm2-devel >= %{lvm2_version}
  35. BuildRequires: gobject-introspection-devel
  36. # needed to pull in the system bus daemon
  37. Requires: dbus >= %{dbus_version}
  38. # needed to pull in the udev daemon
  39. Requires: udev >= %{udev_version}
  40. # we need at least this version for bugfixes / features etc.
  41. Requires: libatasmart >= %{libatasmart_version}
  42. Requires: mdadm >= %{mdadm_version}
  43. # for smp_rep_manufacturer
  44. Requires: smp_utils >= %{smp_utils_version}
  45. # for mount, umount, mkswap
  46. Requires: util-linux-ng
  47. # for mkfs.ext3, mkfs.ext3, e2label
  48. Requires: e2fsprogs
  49. # for mkfs.xfs, xfs_admin
  50. Requires: xfsprogs
  51. # for mkfs.vfat
  52. Requires: dosfstools
  53. # for mlabel
  54. Requires: mtools
  55. # for mkntfs - no ntfsprogs on ppc, though
  56. %ifnarch ppc ppc64
  57. Requires: ntfsprogs
  58. %endif
  59. # for /proc/self/mountinfo, only available in 2.6.26 or higher
  60. Conflicts: kernel < 2.6.26
  61. # we need liblvm2app at least this recent since the ABI changed (sizes
  62. # reported in number of bytes instead of number of sectors) without
  63. # the sonumber changing
  64. #
  65. Requires: lvm2-libs >= %{lvm2_version}
  66. Vendor: Project Vine
  67. Distribution: Vine Linux
  68. %description
  69. udisks provides a daemon, D-Bus API and command line tools
  70. for managing disks and storage devices.
  71. %package devel
  72. Summary: D-Bus interface definitions for udisks
  73. Group: Development/Libraries
  74. Requires: %{name} = %{version}-%{release}
  75. # See comment above
  76. #
  77. %description devel
  78. D-Bus interface definitions and documentation for udisks.
  79. %package doc
  80. Summary: Documentation for udisks2
  81. Group: Documentation
  82. Requires: %{name} = %{version}-%{release}
  83. BuildArch: noarch
  84. %description doc
  85. This package contains documentation for udisks2.
  86. %prep
  87. %setup -q -n udisks-%{version}
  88. %build
  89. %configure \
  90. --enable-gtk-doc
  91. make
  92. %install
  93. rm -rf $RPM_BUILD_ROOT
  94. make install DESTDIR=$RPM_BUILD_ROOT
  95. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  96. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  97. # for now, include a compat symlink for the command-line tool
  98. # and man page
  99. ln -s udisks $RPM_BUILD_ROOT%{_bindir}/devkit-disks
  100. ln -s udisks.1 $RPM_BUILD_ROOT%{_datadir}/man/man1/devkit-disks.1
  101. mkdir $RPM_BUILD_ROOT/run
  102. %find_lang %{name}
  103. %clean
  104. rm -rf $RPM_BUILD_ROOT
  105. %post -p /sbin/ldconfig
  106. %postun -p /sbin/ldconfig
  107. %files -f %{name}.lang
  108. %defattr(-,root,root,-)
  109. %doc README AUTHORS NEWS COPYING HACKING
  110. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
  111. /lib/udev/rules.d/80-udisks2.rules
  112. %{_bindir}/devkit-disks
  113. %{_bindir}/udisksctl
  114. %{_sbindir}/umount.udisks2
  115. %dir %{_prefix}/lib/udisks2
  116. %{_prefix}/lib/udisks2/udisksd
  117. %{_libdir}/libudisks2.so.*
  118. %{_libdir}/girepository-1.0/UDisks-2.0.typelib
  119. %{_datadir}/bash-completion/completions/udisksctl
  120. %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
  121. %{_datadir}/polkit-1/actions/org.freedesktop.udisks2.policy
  122. %{_mandir}/man1/*
  123. %{_mandir}/man8/*
  124. %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
  125. %attr(0755,root,root) %dir /run
  126. %files devel
  127. %defattr(-,root,root,-)
  128. %{_includedir}/udisks2
  129. %{_libdir}/libudisks2.so
  130. %{_libdir}/pkgconfig/udisks2.pc
  131. %{_datadir}/gir-1.0/UDisks-2.0.gir
  132. %files doc
  133. %defattr(-,root,root,-)
  134. %{_datadir}/gtk-doc/html/%{name}
  135. #
  136. %changelog
  137. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1
  138. - new upstream release
  139. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
  140. - new upstream release
  141. * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1
  142. - new upstream release
  143. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1
  144. - new upstream release
  145. * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.98.0-1
  146. - new upstream release
  147. - add BuildRequires: libacl-devel
  148. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1
  149. - Initial build for Vine Linux