|
@@ -1,24 +1,25 @@
|
|
%bcond_with systemd
|
|
%bcond_with systemd
|
|
|
|
+%bcond_without docs
|
|
|
|
|
|
%define glib2_version 2.40.0
|
|
%define glib2_version 2.40.0
|
|
%define dbus_version 1.6.14
|
|
%define dbus_version 1.6.14
|
|
%define polkit_version 0.104
|
|
%define polkit_version 0.104
|
|
%define libatasmart_version 0.17
|
|
%define libatasmart_version 0.17
|
|
-%global libblockdev_version 2.24
|
|
+%global libblockdev_version 2.25
|
|
|
|
|
|
# valid options are 'luks1' or 'luks2'
|
|
# valid options are 'luks1' or 'luks2'
|
|
%define default_luks_encryption luks2
|
|
%define default_luks_encryption luks2
|
|
|
|
|
|
Summary: Storage Management Service
|
|
Summary: Storage Management Service
|
|
Name: udisks2
|
|
Name: udisks2
|
|
-Version: 2.9.0
|
|
+Version: 2.9.4
|
|
Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
Release: 1%{?_dist_release}%{?with_systemd:.systemd}
|
|
Group: admin-tools,system
|
|
Group: admin-tools,system
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
-URL: http://www.freedesktop.org/wiki/Software/udisks
|
|
+URL: https://www.freedesktop.org/wiki/Software/udisks
|
|
Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2
|
|
Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
@@ -33,7 +34,9 @@ BuildRequires: intltool
|
|
BuildRequires: libatasmart-devel >= %{libatasmart_version}
|
|
BuildRequires: libatasmart-devel >= %{libatasmart_version}
|
|
BuildRequires: lvm2-devel
|
|
BuildRequires: lvm2-devel
|
|
BuildRequires: chrpath
|
|
BuildRequires: chrpath
|
|
|
|
+%if %{with docs}
|
|
BuildRequires: gtk-doc
|
|
BuildRequires: gtk-doc
|
|
|
|
+%endif
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: libblockdev-devel >= %{libblockdev_version}
|
|
BuildRequires: libblockdev-devel >= %{libblockdev_version}
|
|
BuildRequires: libblockdev-crypto-devel >= %{libblockdev_version}
|
|
BuildRequires: libblockdev-crypto-devel >= %{libblockdev_version}
|
|
@@ -169,6 +172,7 @@ Requires: %{name} = %{version}-%{release}
|
|
D-Bus interface definitions and documentation for udisks.
|
|
D-Bus interface definitions and documentation for udisks.
|
|
|
|
|
|
|
|
|
|
|
|
+%if %{with docs}
|
|
%package docs
|
|
%package docs
|
|
Summary: Documentation for udisks2
|
|
Summary: Documentation for udisks2
|
|
Group: documentation
|
|
Group: documentation
|
|
@@ -178,6 +182,7 @@ Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
|
|
%description docs
|
|
%description docs
|
|
This package contains documentation for udisks2.
|
|
This package contains documentation for udisks2.
|
|
|
|
+%endif
|
|
|
|
|
|
|
|
|
|
%prep
|
|
%prep
|
|
@@ -191,9 +196,16 @@ autoreconf -vif
|
|
--sbindir=%{_syssbindir} \
|
|
--sbindir=%{_syssbindir} \
|
|
--enable-lvm2 \
|
|
--enable-lvm2 \
|
|
--enable-lvmcache \
|
|
--enable-lvmcache \
|
|
- --enable-zram \
|
|
|
|
--enable-bcache \
|
|
--enable-bcache \
|
|
- --enable-gtk-doc
|
|
+%if %{with systemd}
|
|
|
|
+ --enable-zram \
|
|
|
|
+%endif
|
|
|
|
+%if %{with docs}
|
|
|
|
+ --enable-gtk-doc \
|
|
|
|
+%else
|
|
|
|
+ --disable-gtk-doc
|
|
|
|
+%endif
|
|
|
|
+ %{nil}
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
@@ -218,7 +230,6 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%post
|
|
%post
|
|
-/sbin/ldconfig
|
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%systemd_post udisks2.service
|
|
%systemd_post udisks2.service
|
|
%endif
|
|
%endif
|
|
@@ -235,20 +246,19 @@ fi
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%postun
|
|
%postun
|
|
-/sbin/ldconfig
|
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%systemd_postun_with_restart udisks2.service
|
|
%systemd_postun_with_restart udisks2.service
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%if %{with systemd}
|
|
%if %{with systemd}
|
|
%post -n %{name}-zram
|
|
%post -n %{name}-zram
|
|
-%systemd_post zram-setup@.service
|
|
+%systemd_post udisks2-zram-setup@.service
|
|
|
|
|
|
%preun -n %{name}-zram
|
|
%preun -n %{name}-zram
|
|
-%systemd_preun zram-setup@.service
|
|
+%systemd_preun udisks2-zram-setup@.service
|
|
|
|
|
|
%postun -n %{name}-zram
|
|
%postun -n %{name}-zram
|
|
-%systemd_postun zram-setup@.service
|
|
+%systemd_postun udisks2-zram-setup@.service
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
|
|
@@ -287,12 +297,13 @@ fi
|
|
%{_libdir}/udisks2/modules/libudisks2_lvm2.so
|
|
%{_libdir}/udisks2/modules/libudisks2_lvm2.so
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy
|
|
|
|
|
|
|
|
+%if %{with systemd}
|
|
%files zram
|
|
%files zram
|
|
%dir %{_sysconfdir}/udisks2/modules.conf.d
|
|
%dir %{_sysconfdir}/udisks2/modules.conf.d
|
|
%{_libdir}/udisks2/modules/libudisks2_zram.so
|
|
%{_libdir}/udisks2/modules/libudisks2_zram.so
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.zram.policy
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.zram.policy
|
|
-%if %{with systemd}
|
|
+%{_unitdir}/udisks2-zram-setup@.service
|
|
-%{_unitdir}/zram-setup@.service
|
|
+/lib/udev/rules.d/90-udisks2-zram.rules
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%files bcache
|
|
%files bcache
|
|
@@ -312,12 +323,17 @@ fi
|
|
%{_libdir}/pkgconfig/udisks2*.pc
|
|
%{_libdir}/pkgconfig/udisks2*.pc
|
|
%{_datadir}/gir-1.0/UDisks-2.0.gir
|
|
%{_datadir}/gir-1.0/UDisks-2.0.gir
|
|
|
|
|
|
|
|
+%if %{with docs}
|
|
%files docs
|
|
%files docs
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%{_datadir}/gtk-doc/html/%{name}
|
|
%{_datadir}/gtk-doc/html/%{name}
|
|
|
|
+%endif
|
|
|
|
|
|
#
|
|
#
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Dec 02 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.4-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Tue Aug 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.0-1
|
|
* Tue Aug 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.0-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- added systemd support (disabled as default).
|
|
- added systemd support (disabled as default).
|