udisks2-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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.5
  15. Release: 2%{?_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. # for /proc/self/mountinfo, only available in 2.6.26 or higher
  59. Conflicts: kernel < 2.6.26
  60. # we need liblvm2app at least this recent since the ABI changed (sizes
  61. # reported in number of bytes instead of number of sectors) without
  62. # the sonumber changing
  63. #
  64. Requires: lvm2-libs >= %{lvm2_version}
  65. Vendor: Project Vine
  66. Distribution: Vine Linux
  67. %description
  68. udisks provides a daemon, D-Bus API and command line tools
  69. for managing disks and storage devices.
  70. %package devel
  71. Summary: D-Bus interface definitions for udisks
  72. Group: Development/Libraries
  73. Requires: %{name} = %{version}-%{release}
  74. # See comment above
  75. #
  76. %description devel
  77. D-Bus interface definitions and documentation for udisks.
  78. %package docs
  79. Summary: Documentation for udisks2
  80. Group: Documentation
  81. Requires: %{name} = %{version}-%{release}
  82. BuildArch: noarch
  83. Provides: %{name}-doc = %{version}-%{release}
  84. %description docs
  85. This package contains documentation for udisks2.
  86. %prep
  87. %setup -q -n udisks-%{version}
  88. %build
  89. %configure \
  90. --sbindir=%{_syssbindir} \
  91. --enable-gtk-doc
  92. make
  93. %install
  94. rm -rf $RPM_BUILD_ROOT
  95. make install DESTDIR=$RPM_BUILD_ROOT
  96. rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
  97. rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
  98. mkdir $RPM_BUILD_ROOT/run
  99. %find_lang %{name}
  100. %clean
  101. rm -rf $RPM_BUILD_ROOT
  102. %post -p /sbin/ldconfig
  103. %postun -p /sbin/ldconfig
  104. %files -f %{name}.lang
  105. %defattr(-,root,root,-)
  106. %doc README AUTHORS NEWS COPYING HACKING
  107. %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
  108. /lib/udev/rules.d/80-udisks2.rules
  109. %{_bindir}/udisksctl
  110. %{_syssbindir}/umount.udisks2
  111. %dir %{_prefix}/lib/udisks2
  112. %{_prefix}/lib/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 May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-2
  134. - remove unused files
  135. - change path of umount.udisks2
  136. * Sun Apr 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-1
  137. - new upstream release
  138. * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-1
  139. - new upstream release
  140. * Thu Jul 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-3
  141. - change BuildRequires: eudev-libgudev1-devel instead of libgudev1-devel
  142. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  143. * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-1
  144. - new upstream release
  145. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-2
  146. - rebuild with VineSeed environment
  147. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1
  148. - new upstream release
  149. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1
  150. - new upstream release
  151. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
  152. - new upstream release
  153. * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1
  154. - new upstream release
  155. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1
  156. - new upstream release
  157. * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.98.0-1
  158. - new upstream release
  159. - add BuildRequires: libacl-devel
  160. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1
  161. - Initial build for Vine Linux