udisks2-vl.spec 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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: 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. # 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. --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 docs
  133. %defattr(-,root,root,-)
  134. %{_datadir}/gtk-doc/html/%{name}
  135. #
  136. %changelog
  137. * Sun Apr 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-1
  138. - new upstream release
  139. * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-1
  140. - new upstream release
  141. * Thu Jul 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-3
  142. - change BuildRequires: eudev-libgudev1-devel instead of libgudev1-devel
  143. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  144. * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-1
  145. - new upstream release
  146. * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-2
  147. - rebuild with VineSeed environment
  148. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1
  149. - new upstream release
  150. * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1
  151. - new upstream release
  152. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
  153. - new upstream release
  154. * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1
  155. - new upstream release
  156. * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1
  157. - new upstream release
  158. * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.98.0-1
  159. - new upstream release
  160. - add BuildRequires: libacl-devel
  161. * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1
  162. - Initial build for Vine Linux