udisks2-vl.spec 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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. %global libblockdev_version 2.19
  13. Summary: Storage Management Service
  14. Name: udisks2
  15. Version: 2.8.1
  16. Release: 2%{?_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: gobject-introspection-devel
  24. BuildRequires: eudev-libgudev1-devel
  25. BuildRequires: eudev-libudev-devel
  26. BuildRequires: dbus-devel >= %{dbus_version}
  27. BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
  28. BuildRequires: polkit-devel >= %{polkit_version}
  29. BuildRequires: parted-devel >= %{parted_version}
  30. BuildRequires: device-mapper-devel >= %{device_mapper_version}
  31. BuildRequires: libacl-devel
  32. BuildRequires: intltool
  33. BuildRequires: libatasmart-devel >= %{libatasmart_version}
  34. BuildRequires: sg3_utils-devel >= %{sg3_utils_version}
  35. BuildRequires: lvm2-devel >= %{lvm2_version}
  36. BuildRequires: elogind-devel
  37. BuildRequires: gnome-common
  38. BuildRequires: libmount-devel
  39. BuildRequires: chrpath
  40. BuildRequires: libblockdev-devel >= %{libblockdev_version}
  41. BuildRequires: libblockdev-crypto-devel >= %{libblockdev_version}
  42. BuildRequires: libblockdev-dm-devel >= %{libblockdev_version}
  43. BuildRequires: libblockdev-fs-devel >= %{libblockdev_version}
  44. BuildRequires: libblockdev-kbd-devel >= %{libblockdev_version}
  45. BuildRequires: libblockdev-loop-devel >= %{libblockdev_version}
  46. BuildRequires: libblockdev-lvm-devel >= %{libblockdev_version}
  47. BuildRequires: libblockdev-mdraid-devel >= %{libblockdev_version}
  48. BuildRequires: libblockdev-part-devel >= %{libblockdev_version}
  49. BuildRequires: libblockdev-swap-devel >= %{libblockdev_version}
  50. %if 0
  51. BuildRequires: libblockdev-vdo-devel >= %{libblockdev_version}
  52. %endif
  53. # needed to pull in the system bus daemon
  54. Requires: dbus >= %{dbus_version}
  55. # needed to pull in the udev daemon
  56. Requires: eudev
  57. # we need at least this version for bugfixes / features etc.
  58. Requires: libatasmart >= %{libatasmart_version}
  59. Requires: mdadm >= %{mdadm_version}
  60. # for smp_rep_manufacturer
  61. Requires: smp_utils >= %{smp_utils_version}
  62. # for mount, umount, mkswap
  63. Requires: util-linux-ng
  64. # for mkfs.ext3, mkfs.ext3, e2label
  65. Requires: e2fsprogs
  66. # for mkfs.xfs, xfs_admin
  67. Requires: xfsprogs
  68. # for mkfs.vfat
  69. Requires: dosfstools
  70. # for mlabel
  71. Requires: mtools
  72. # for mkntfs - no ntfsprogs on ppc, though
  73. %ifnarch ppc ppc64
  74. Requires: ntfsprogs
  75. %endif
  76. Requires: gdisk
  77. Requires: libblockdev >= %{libblockdev_version}
  78. Requires: libblockdev-part >= %{libblockdev_version}
  79. Requires: libblockdev-loop >= %{libblockdev_version}
  80. Requires: libblockdev-swap >= %{libblockdev_version}
  81. Requires: libblockdev-mdraid >= %{libblockdev_version}
  82. Requires: libblockdev-fs >= %{libblockdev_version}
  83. Requires: libblockdev-crypto >= %{libblockdev_version}
  84. # for /proc/self/mountinfo, only available in 2.6.26 or higher
  85. Conflicts: kernel < 2.6.26
  86. # we need liblvm2app at least this recent since the ABI changed (sizes
  87. # reported in number of bytes instead of number of sectors) without
  88. # the sonumber changing
  89. #
  90. Requires: lvm2-libs >= %{lvm2_version}
  91. Vendor: Project Vine
  92. Distribution: Vine Linux
  93. %description
  94. udisks provides a daemon, D-Bus API and command line tools
  95. for managing disks and storage devices.
  96. %package lvm2
  97. Summary: udisks2 module for LVM2
  98. Group: System Environment/Libraries
  99. Requires: %{name}%{?_isa} = %{version}-%{release}
  100. License: LGPLv2+
  101. Requires: lvm2
  102. Requires: libblockdev-lvm >= %{libblockdev_version}
  103. %description lvm2
  104. This package contains module for LVM2 configuration.
  105. %package zram
  106. Summary: udisks2 module for ZRAM
  107. Group: System Environment/Libraries
  108. Requires: %{name}%{?_isa} = %{version}-%{release}
  109. License: LGPLv2+
  110. Requires: libblockdev-kbd >= %{libblockdev_version}
  111. Requires: libblockdev-swap >= %{libblockdev_version}
  112. %description zram
  113. This package contains module for ZRAM configuration.
  114. %if 0
  115. %package vdo
  116. Summary: udisks2 module for VDO
  117. Group: System Environment/Libraries
  118. Requires: %{name}%{?_isa} = %{version}-%{release}
  119. License: LGPLv2+
  120. Requires: vdo
  121. Requires: libblockdev-vdo >= %{libblockdev_version}
  122. %description vdo
  123. This package contains module for VDO management.
  124. %endif
  125. %package devel
  126. Summary: D-Bus interface definitions for udisks
  127. Group: Development/Libraries
  128. Requires: %{name} = %{version}-%{release}
  129. # See comment above
  130. #
  131. %description devel
  132. D-Bus interface definitions and documentation for udisks.
  133. %package docs
  134. Summary: Documentation for udisks2
  135. Group: Documentation
  136. Requires: %{name} = %{version}-%{release}
  137. BuildArch: noarch
  138. Provides: %{name}-doc = %{version}-%{release}
  139. %description docs
  140. This package contains documentation for udisks2.
  141. %prep
  142. %setup -q -n udisks-%{version}
  143. %build
  144. autoreconf -vif
  145. %configure \
  146. --sbindir=%{_syssbindir} \
  147. --enable-lvm2 \
  148. --enable-lvmcache \
  149. --enable-zram \
  150. --enable-gtk-doc
  151. make
  152. %install
  153. rm -rf $RPM_BUILD_ROOT
  154. make install DESTDIR=$RPM_BUILD_ROOT
  155. find %{buildroot} -name \*.la -o -name \*.a | xargs rm
  156. chrpath --delete %{buildroot}/%{_syssbindir}/umount.udisks2
  157. chrpath --delete %{buildroot}/%{_bindir}/udisksctl
  158. chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd
  159. mkdir %{buildroot}/run
  160. mkdir -p %{buildroot}/%{_sysconfdir}/udisks2/modules.conf.d
  161. perl -pi \
  162. -e 's/modules_load_preference=ondemand/modules_load_preference=onstartup/' \
  163. %{buildroot}%{_sysconfdir}/udisks2/udisks2.conf
  164. %find_lang %{name}
  165. %clean
  166. rm -rf $RPM_BUILD_ROOT
  167. %post
  168. /sbin/ldconfig
  169. udevadm control --reload
  170. udevadm trigger
  171. %postun -p /sbin/ldconfig
  172. %files -f %{name}.lang
  173. %defattr(-,root,root,-)
  174. %license COPYING
  175. %doc README* AUTHORS NEWS HACKING NEWS
  176. %config(noreplace) %{_sysconfdir}/udisks2/udisks2.conf
  177. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
  178. /lib/udev/rules.d/80-udisks2.rules
  179. %{_bindir}/udisksctl
  180. %{_syssbindir}/umount.udisks2
  181. %{_libexecdir}/udisks2/udisksd
  182. %{_libdir}/libudisks2.so.*
  183. %{_libdir}/girepository-1.0/UDisks-2.0.typelib
  184. %dir %{_libdir}/udisks2
  185. %dir %{_libdir}/udisks2/modules
  186. %dir %{_datadir}/bash-completion
  187. %dir %{_datadir}/bash-completion/completions
  188. %{_datadir}/bash-completion/completions/udisksctl
  189. %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
  190. %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.policy
  191. %{_mandir}/man1/*
  192. %{_mandir}/man5/*
  193. %{_mandir}/man8/*
  194. %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
  195. %attr(0755,root,root) %dir /run
  196. %files lvm2
  197. %{_libdir}/udisks2/modules/libudisks2_lvm2.so
  198. %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy
  199. %files zram
  200. %dir %{_sysconfdir}/udisks2/modules.conf.d
  201. %{_libdir}/udisks2/modules/libudisks2_zram.so
  202. %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.zram.policy
  203. %if 0
  204. %files vdo
  205. %{_libdir}/udisks2/modules/libudisks2_vdo.so
  206. %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.vdo.policy
  207. %endif
  208. %files devel
  209. %defattr(-,root,root,-)
  210. %{_includedir}/udisks2
  211. %{_libdir}/libudisks2.so
  212. %{_libdir}/pkgconfig/udisks2.pc
  213. %{_datadir}/gir-1.0/UDisks-2.0.gir
  214. %files docs
  215. %defattr(-,root,root,-)
  216. %{_datadir}/gtk-doc/html/%{name}
  217. #
  218. %changelog
  219. * Mon Jan 07 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-2
  220. - enabled lvm2, lvmcache and zram.
  221. * Mon Dec 17 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-1
  222. - new upstream release.
  223. - enabled elogind.
  224. * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.7-1
  225. - new upstream release
  226. * Sun Jan 03 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-2
  227. - add Requires: gdisk
  228. * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-1
  229. - new upstream release
  230. * Sun May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-2
  231. - remove unused files
  232. - change path of umount.udisks2
  233. * Sun Apr 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-1
  234. - new upstream release
  235. * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-1
  236. - new upstream release
  237. * Thu Jul 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-3
  238. - change BuildRequires: eudev-libgudev1-devel instead of libgudev1-devel
  239. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  240. * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-1
  241. - new upstream release
  242. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-2
  243. - rebuild with VineSeed environment
  244. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1
  245. - new upstream release
  246. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1
  247. - new upstream release
  248. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
  249. - new upstream release
  250. * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1
  251. - new upstream release
  252. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1
  253. - new upstream release
  254. * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.98.0-1
  255. - new upstream release
  256. - add BuildRequires: libacl-devel
  257. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1
  258. - Initial build for Vine Linux