|
@@ -9,11 +9,12 @@
|
|
%define sg3_utils_version 1.27
|
|
%define sg3_utils_version 1.27
|
|
%define smp_utils_version 0.94
|
|
%define smp_utils_version 0.94
|
|
%define lvm2_version 2.02.78
|
|
%define lvm2_version 2.02.78
|
|
|
|
+%global libblockdev_version 2.19
|
|
|
|
|
|
Summary: Storage Management Service
|
|
Summary: Storage Management Service
|
|
Name: udisks2
|
|
Name: udisks2
|
|
Version: 2.8.1
|
|
Version: 2.8.1
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
URL: http://www.freedesktop.org/wiki/Software/udisks
|
|
URL: http://www.freedesktop.org/wiki/Software/udisks
|
|
@@ -23,6 +24,9 @@ Source0: http://udisks.freedesktop.org/releases/udisks-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
|
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
|
+BuildRequires: gobject-introspection-devel
|
|
|
|
+BuildRequires: eudev-libgudev1-devel
|
|
|
|
+BuildRequires: eudev-libudev-devel
|
|
BuildRequires: dbus-devel >= %{dbus_version}
|
|
BuildRequires: dbus-devel >= %{dbus_version}
|
|
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
|
|
BuildRequires: dbus-glib-devel >= %{dbus_glib_version}
|
|
BuildRequires: polkit-devel >= %{polkit_version}
|
|
BuildRequires: polkit-devel >= %{polkit_version}
|
|
@@ -31,12 +35,25 @@ BuildRequires: device-mapper-devel >= %{device_mapper_version}
|
|
BuildRequires: libacl-devel
|
|
BuildRequires: libacl-devel
|
|
BuildRequires: intltool
|
|
BuildRequires: intltool
|
|
BuildRequires: libatasmart-devel >= %{libatasmart_version}
|
|
BuildRequires: libatasmart-devel >= %{libatasmart_version}
|
|
-BuildRequires: eudev-libgudev1-devel
|
|
|
|
-BuildRequires: eudev-libudev-devel
|
|
|
|
BuildRequires: sg3_utils-devel >= %{sg3_utils_version}
|
|
BuildRequires: sg3_utils-devel >= %{sg3_utils_version}
|
|
BuildRequires: lvm2-devel >= %{lvm2_version}
|
|
BuildRequires: lvm2-devel >= %{lvm2_version}
|
|
-BuildRequires: gobject-introspection-devel
|
|
|
|
BuildRequires: elogind-devel
|
|
BuildRequires: elogind-devel
|
|
|
|
+BuildRequires: gnome-common
|
|
|
|
+BuildRequires: libmount-devel
|
|
|
|
+BuildRequires: chrpath
|
|
|
|
+BuildRequires: libblockdev-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-crypto-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-dm-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-fs-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-kbd-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-loop-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-lvm-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-mdraid-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-part-devel >= %{libblockdev_version}
|
|
|
|
+BuildRequires: libblockdev-swap-devel >= %{libblockdev_version}
|
|
|
|
+%if 0
|
|
|
|
+BuildRequires: libblockdev-vdo-devel >= %{libblockdev_version}
|
|
|
|
+%endif
|
|
|
|
|
|
# needed to pull in the system bus daemon
|
|
# needed to pull in the system bus daemon
|
|
Requires: dbus >= %{dbus_version}
|
|
Requires: dbus >= %{dbus_version}
|
|
@@ -63,6 +80,14 @@ Requires: ntfsprogs
|
|
%endif
|
|
%endif
|
|
Requires: gdisk
|
|
Requires: gdisk
|
|
|
|
|
|
|
|
+Requires: libblockdev >= %{libblockdev_version}
|
|
|
|
+Requires: libblockdev-part >= %{libblockdev_version}
|
|
|
|
+Requires: libblockdev-loop >= %{libblockdev_version}
|
|
|
|
+Requires: libblockdev-swap >= %{libblockdev_version}
|
|
|
|
+Requires: libblockdev-mdraid >= %{libblockdev_version}
|
|
|
|
+Requires: libblockdev-fs >= %{libblockdev_version}
|
|
|
|
+Requires: libblockdev-crypto >= %{libblockdev_version}
|
|
|
|
+
|
|
# for /proc/self/mountinfo, only available in 2.6.26 or higher
|
|
# for /proc/self/mountinfo, only available in 2.6.26 or higher
|
|
Conflicts: kernel < 2.6.26
|
|
Conflicts: kernel < 2.6.26
|
|
|
|
|
|
@@ -79,6 +104,45 @@ Distribution: Vine Linux
|
|
udisks provides a daemon, D-Bus API and command line tools
|
|
udisks provides a daemon, D-Bus API and command line tools
|
|
for managing disks and storage devices.
|
|
for managing disks and storage devices.
|
|
|
|
|
|
|
|
+
|
|
|
|
+%package lvm2
|
|
|
|
+Summary: udisks2 module for LVM2
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
+License: LGPLv2+
|
|
|
|
+Requires: lvm2
|
|
|
|
+Requires: libblockdev-lvm >= %{libblockdev_version}
|
|
|
|
+
|
|
|
|
+%description lvm2
|
|
|
|
+This package contains module for LVM2 configuration.
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%package zram
|
|
|
|
+Summary: udisks2 module for ZRAM
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
+License: LGPLv2+
|
|
|
|
+Requires: libblockdev-kbd >= %{libblockdev_version}
|
|
|
|
+Requires: libblockdev-swap >= %{libblockdev_version}
|
|
|
|
+
|
|
|
|
+%description zram
|
|
|
|
+This package contains module for ZRAM configuration.
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%if 0
|
|
|
|
+%package vdo
|
|
|
|
+Summary: udisks2 module for VDO
|
|
|
|
+Group: System Environment/Libraries
|
|
|
|
+Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
+License: LGPLv2+
|
|
|
|
+Requires: vdo
|
|
|
|
+Requires: libblockdev-vdo >= %{libblockdev_version}
|
|
|
|
+
|
|
|
|
+%description vdo
|
|
|
|
+This package contains module for VDO management.
|
|
|
|
+%endif
|
|
|
|
+
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: D-Bus interface definitions for udisks
|
|
Summary: D-Bus interface definitions for udisks
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
@@ -97,6 +161,7 @@ Requires: %{name} = %{version}-%{release}
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
|
|
|
|
+
|
|
%description docs
|
|
%description docs
|
|
This package contains documentation for udisks2.
|
|
This package contains documentation for udisks2.
|
|
|
|
|
|
@@ -105,8 +170,12 @@ This package contains documentation for udisks2.
|
|
%setup -q -n udisks-%{version}
|
|
%setup -q -n udisks-%{version}
|
|
|
|
|
|
%build
|
|
%build
|
|
|
|
+autoreconf -vif
|
|
%configure \
|
|
%configure \
|
|
--sbindir=%{_syssbindir} \
|
|
--sbindir=%{_syssbindir} \
|
|
|
|
+ --enable-lvm2 \
|
|
|
|
+ --enable-lvmcache \
|
|
|
|
+ --enable-zram \
|
|
--enable-gtk-doc
|
|
--enable-gtk-doc
|
|
make
|
|
make
|
|
|
|
|
|
@@ -115,17 +184,29 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
-rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
|
+find %{buildroot} -name \*.la -o -name \*.a | xargs rm
|
|
|
|
+
|
|
|
|
+chrpath --delete %{buildroot}/%{_syssbindir}/umount.udisks2
|
|
|
|
+chrpath --delete %{buildroot}/%{_bindir}/udisksctl
|
|
|
|
+chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd
|
|
|
|
|
|
-mkdir $RPM_BUILD_ROOT/run
|
|
|
|
|
|
+mkdir %{buildroot}/run
|
|
|
|
+
|
|
|
|
+mkdir -p %{buildroot}/%{_sysconfdir}/udisks2/modules.conf.d
|
|
|
|
+
|
|
|
|
+perl -pi \
|
|
|
|
+ -e 's/modules_load_preference=ondemand/modules_load_preference=onstartup/' \
|
|
|
|
+ %{buildroot}%{_sysconfdir}/udisks2/udisks2.conf
|
|
|
|
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
-%post -p /sbin/ldconfig
|
|
|
|
|
|
+%post
|
|
|
|
+/sbin/ldconfig
|
|
|
|
+udevadm control --reload
|
|
|
|
+udevadm trigger
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
@@ -141,6 +222,8 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libexecdir}/udisks2/udisksd
|
|
%{_libexecdir}/udisks2/udisksd
|
|
%{_libdir}/libudisks2.so.*
|
|
%{_libdir}/libudisks2.so.*
|
|
%{_libdir}/girepository-1.0/UDisks-2.0.typelib
|
|
%{_libdir}/girepository-1.0/UDisks-2.0.typelib
|
|
|
|
+%dir %{_libdir}/udisks2
|
|
|
|
+%dir %{_libdir}/udisks2/modules
|
|
%dir %{_datadir}/bash-completion
|
|
%dir %{_datadir}/bash-completion
|
|
%dir %{_datadir}/bash-completion/completions
|
|
%dir %{_datadir}/bash-completion/completions
|
|
%{_datadir}/bash-completion/completions/udisksctl
|
|
%{_datadir}/bash-completion/completions/udisksctl
|
|
@@ -152,6 +235,21 @@ rm -rf $RPM_BUILD_ROOT
|
|
%attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
|
|
%attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
|
|
%attr(0755,root,root) %dir /run
|
|
%attr(0755,root,root) %dir /run
|
|
|
|
|
|
|
|
+%files lvm2
|
|
|
|
+%{_libdir}/udisks2/modules/libudisks2_lvm2.so
|
|
|
|
+%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy
|
|
|
|
+
|
|
|
|
+%files zram
|
|
|
|
+%dir %{_sysconfdir}/udisks2/modules.conf.d
|
|
|
|
+%{_libdir}/udisks2/modules/libudisks2_zram.so
|
|
|
|
+%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.zram.policy
|
|
|
|
+
|
|
|
|
+%if 0
|
|
|
|
+%files vdo
|
|
|
|
+%{_libdir}/udisks2/modules/libudisks2_vdo.so
|
|
|
|
+%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.vdo.policy
|
|
|
|
+%endif
|
|
|
|
+
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/udisks2
|
|
%{_includedir}/udisks2
|
|
@@ -165,6 +263,9 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
#
|
|
#
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Mon Jan 07 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-2
|
|
|
|
+- enabled lvm2, lvmcache and zram.
|
|
|
|
+
|
|
* Mon Dec 17 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-1
|
|
* Mon Dec 17 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.1-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- enabled elogind.
|
|
- enabled elogind.
|