udisks2-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. %define glib2_version 2.40.0
  2. %define dbus_version 1.6.14
  3. %define dbus_glib_version 0.98
  4. %define polkit_version 0.104
  5. %define parted_version 2.3
  6. %define mdadm_version 2.6.7
  7. %define device_mapper_version 1.02
  8. %define libatasmart_version 0.17
  9. %define sg3_utils_version 1.27
  10. %define smp_utils_version 0.94
  11. %define lvm2_version 2.02.78
  12. Summary: Storage Management Service
  13. Name: udisks2
  14. Version: 2.1.7
  15. Release: 1%{?_dist_release}
  16. License: GPLv2+
  17. Group: System Environment/Libraries
  18. URL: http://www.freedesktop.org/wiki/Software/udisks
  19. Source0: http://udisks.freedesktop.org/releases/udisks-%{version}.tar.bz2
  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: libacl-devel
  28. BuildRequires: intltool
  29. BuildRequires: libatasmart-devel >= %{libatasmart_version}
  30. BuildRequires: eudev-libgudev1-devel
  31. BuildRequires: eudev-libudev-devel
  32. BuildRequires: sg3_utils-devel >= %{sg3_utils_version}
  33. BuildRequires: lvm2-devel >= %{lvm2_version}
  34. BuildRequires: gobject-introspection-devel
  35. # needed to pull in the system bus daemon
  36. Requires: dbus >= %{dbus_version}
  37. # needed to pull in the udev daemon
  38. Requires: eudev
  39. # we need at least this version for bugfixes / features etc.
  40. Requires: libatasmart >= %{libatasmart_version}
  41. Requires: mdadm >= %{mdadm_version}
  42. # for smp_rep_manufacturer
  43. Requires: smp_utils >= %{smp_utils_version}
  44. # for mount, umount, mkswap
  45. Requires: util-linux-ng
  46. # for mkfs.ext3, mkfs.ext3, e2label
  47. Requires: e2fsprogs
  48. # for mkfs.xfs, xfs_admin
  49. Requires: xfsprogs
  50. # for mkfs.vfat
  51. Requires: dosfstools
  52. # for mlabel
  53. Requires: mtools
  54. # for mkntfs - no ntfsprogs on ppc, though
  55. %ifnarch ppc ppc64
  56. Requires: ntfsprogs
  57. %endif
  58. Requires: gdisk
  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 docs
  80. Summary: Documentation for udisks2
  81. Group: Documentation
  82. Requires: %{name} = %{version}-%{release}
  83. BuildArch: noarch
  84. Provides: %{name}-doc = %{version}-%{release}
  85. %description docs
  86. This package contains documentation for udisks2.
  87. %prep
  88. %setup -q -n udisks-%{version}
  89. %build
  90. %configure \
  91. --sbindir=%{_syssbindir} \
  92. --enable-gtk-doc
  93. make
  94. %install
  95. rm -rf $RPM_BUILD_ROOT
  96. make install DESTDIR=$RPM_BUILD_ROOT
  97. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  98. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  99. mkdir $RPM_BUILD_ROOT/run
  100. %find_lang %{name}
  101. %clean
  102. rm -rf $RPM_BUILD_ROOT
  103. %post -p /sbin/ldconfig
  104. %postun -p /sbin/ldconfig
  105. %files -f %{name}.lang
  106. %defattr(-,root,root,-)
  107. %doc README AUTHORS NEWS COPYING HACKING
  108. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
  109. /lib/udev/rules.d/80-udisks2.rules
  110. %{_bindir}/udisksctl
  111. %{_syssbindir}/umount.udisks2
  112. %{_libexecdir}/udisks2/udisksd
  113. %{_libdir}/libudisks2.so.*
  114. %{_libdir}/girepository-1.0/UDisks-2.0.typelib
  115. %{_datadir}/bash-completion/completions/udisksctl
  116. %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
  117. %{_datadir}/polkit-1/actions/org.freedesktop.udisks2.policy
  118. %{_mandir}/man1/*
  119. %{_mandir}/man8/*
  120. %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
  121. %attr(0755,root,root) %dir /run
  122. %files devel
  123. %defattr(-,root,root,-)
  124. %{_includedir}/udisks2
  125. %{_libdir}/libudisks2.so
  126. %{_libdir}/pkgconfig/udisks2.pc
  127. %{_datadir}/gir-1.0/UDisks-2.0.gir
  128. %files docs
  129. %defattr(-,root,root,-)
  130. %{_datadir}/gtk-doc/html/%{name}
  131. #
  132. %changelog
  133. * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.7-1
  134. - new upstream release
  135. * Sun Jan 03 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-2
  136. - add Requires: gdisk
  137. * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-1
  138. - new upstream release
  139. * Sun May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-2
  140. - remove unused files
  141. - change path of umount.udisks2
  142. * Sun Apr 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-1
  143. - new upstream release
  144. * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-1
  145. - new upstream release
  146. * Thu Jul 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-3
  147. - change BuildRequires: eudev-libgudev1-devel instead of libgudev1-devel
  148. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  149. * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-1
  150. - new upstream release
  151. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-2
  152. - rebuild with VineSeed environment
  153. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1
  154. - new upstream release
  155. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1
  156. - new upstream release
  157. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
  158. - new upstream release
  159. * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1
  160. - new upstream release
  161. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1
  162. - new upstream release
  163. * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.98.0-1
  164. - new upstream release
  165. - add BuildRequires: libacl-devel
  166. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1
  167. - Initial build for Vine Linux