|
|
69e643 |
%global glib2_version 2.36
|
|
|
69e643 |
%global gobject_introspection_version 1.30.0
|
|
|
69e643 |
%global polkit_version 0.102
|
|
|
69e643 |
%global systemd_version 208
|
|
|
69e643 |
%global libatasmart_version 0.17
|
|
|
69e643 |
%global dbus_version 1.4.0
|
|
|
69e643 |
%global with_gtk_doc 1
|
|
|
25c940 |
%global libblockdev_version 2.24
|
|
|
69e643 |
|
|
|
69e643 |
%define with_bcache 1
|
|
|
69e643 |
%define with_btrfs 1
|
|
|
69e643 |
%define with_vdo 0
|
|
|
69e643 |
%define with_lsm 1
|
|
|
69e643 |
%define with_zram 1
|
|
|
69e643 |
%define with_lvmcache 1
|
|
|
69e643 |
|
|
|
69e643 |
# valid options are 'luks1' or 'luks2'
|
|
|
69e643 |
%define default_luks_encryption luks1
|
|
|
69e643 |
|
|
|
69e643 |
%define is_fedora 0%{?rhel} == 0
|
|
|
69e643 |
|
|
|
69e643 |
|
|
|
830394 |
# bcache and zram are not available on RHEL
|
|
|
830394 |
%if (0%{?rhel})
|
|
|
69e643 |
%define with_bcache 0
|
|
|
830394 |
%define with_zram 0
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
# btrfs is not available on RHEL > 7
|
|
|
69e643 |
%if 0%{?rhel} > 7 || %{with_btrfs} == 0
|
|
|
69e643 |
%define with_btrfs 0
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
# vdo is not available on Fedora
|
|
|
69e643 |
%if (0%{?fedora}) || %{with_vdo} == 0
|
|
|
69e643 |
%define with_vdo 0
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
# vdo is not available on i686
|
|
|
69e643 |
%ifnarch x86_64 aarch64 ppc64le s390x
|
|
|
69e643 |
%define with_vdo 0
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
# feature parity with existing RHEL 7 packages
|
|
|
69e643 |
%if (0%{?rhel}) && (0%{?rhel} <= 7)
|
|
|
69e643 |
%define with_lsm 0
|
|
|
69e643 |
%define with_lvmcache 0
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
# default to LUKS2 for RHEL > 7
|
|
|
69e643 |
%if 0%{?rhel} > 7
|
|
|
69e643 |
%define default_luks_encryption luks2
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
|
|
|
69e643 |
Name: udisks2
|
|
|
69e643 |
Summary: Disk Manager
|
|
|
69e643 |
Version: 2.9.0
|
|
|
df2958 |
Release: 13%{?dist}
|
|
|
69e643 |
License: GPLv2+
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
URL: https://github.com/storaged-project/udisks
|
|
|
69e643 |
Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2
|
|
|
25c940 |
Patch0: udisks-2.9.1-teardown-needle-match.patch
|
|
|
25c940 |
Patch1: udisks-2.9.1-lvm_vdo-test_resize_physical-size.patch
|
|
|
049be7 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1855785
|
|
|
049be7 |
Patch2: udisks-2.9.1-drive_ata_tests.patch
|
|
|
806cad |
# https://bugzilla.redhat.com/show_bug.cgi?id=2120697
|
|
|
806cad |
Patch3: udisks-2.10.0-block_format_ata_secure_erase.patch
|
|
|
8c4b62 |
# https://bugzilla.redhat.com/show_bug.cgi?id=2135773
|
|
|
8c4b62 |
Patch4: udisks-2.10.0-iscsi-auth-info.patch
|
|
|
049be7 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1845973
|
|
|
049be7 |
Patch10: udisks-2.9.1-daemon-Always-flush-interface-property-changes.patch
|
|
|
049be7 |
Patch11: udisks-2.9.1-lvm2-Always-flush-interface-property-changes.patch
|
|
|
049be7 |
Patch12: udisks-2.9.1-lsm-Always-flush-interface-property-changes.patch
|
|
|
049be7 |
Patch13: udisks-2.9.1-iscsi-Always-flush-interface-property-changes.patch
|
|
|
049be7 |
Patch14: udisks-2.9.1-zram-Always-flush-interface-property-changes.patch
|
|
|
049be7 |
Patch15: udisks-2.9.2-udisksdaemonutil-Refactor-udisks_daemon_util_trigger.patch
|
|
|
049be7 |
Patch16: udisks-2.9.2-udiskslinuxmanager-Trigger-uevent-after-loop-device-setup.patch
|
|
|
99b771 |
# https://bugzilla.redhat.com/show_bug.cgi?id=2004422
|
|
|
99b771 |
Patch17: udisks-2.9.4-ext-mount-options.patch
|
|
|
830394 |
Patch20: udisks-2.10.0-tests-drive_ata-apm.patch
|
|
|
830394 |
Patch21: udisks-2.10.0-tests-no-dev_disk-by-path.patch
|
|
|
830394 |
Patch22: tests-disable-zram.patch
|
|
|
598898 |
# https://bugzilla.redhat.com/show_bug.cgi?id=2023880
|
|
|
598898 |
# https://bugzilla.redhat.com/show_bug.cgi?id=2025483
|
|
|
598898 |
Patch23: udisks-2.10.0-vdo_test_writeAmplificationRatio.patch
|
|
|
598898 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1999149
|
|
|
598898 |
Patch24: udisks-2.10.0-udiskslinuxencrypted_GError.patch
|
|
|
598898 |
Patch25: udisks-2.10.0-udiskslinuxpartition_GError.patch
|
|
|
598898 |
Patch26: udisks-2.10.0-udiskslinuxpartitiontable_GError.patch
|
|
|
598898 |
Patch27: udisks-2.10.0-udiskslinuxfilesystem_GError.patch
|
|
|
df2958 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1966460
|
|
|
df2958 |
Patch28: udisks-2.10.0-iscsi_test_05_restart_iscsid.patch
|
|
|
69e643 |
|
|
|
69e643 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
69e643 |
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
|
|
|
69e643 |
BuildRequires: libgudev1-devel >= %{systemd_version}
|
|
|
69e643 |
BuildRequires: libatasmart-devel >= %{libatasmart_version}
|
|
|
69e643 |
BuildRequires: polkit-devel >= %{polkit_version}
|
|
|
69e643 |
BuildRequires: systemd >= %{systemd_version}
|
|
|
69e643 |
BuildRequires: systemd-devel >= %{systemd_version}
|
|
|
69e643 |
BuildRequires: libacl-devel
|
|
|
69e643 |
BuildRequires: chrpath
|
|
|
69e643 |
BuildRequires: gtk-doc
|
|
|
69e643 |
BuildRequires: gettext-devel
|
|
|
69e643 |
BuildRequires: redhat-rpm-config
|
|
|
69e643 |
BuildRequires: libblockdev-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-part-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-loop-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-swap-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-mdraid-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-fs-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-crypto-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libmount-devel
|
|
|
69e643 |
BuildRequires: libuuid-devel
|
|
|
69e643 |
|
|
|
69e643 |
Requires: libblockdev >= %{libblockdev_version}
|
|
|
69e643 |
Requires: libblockdev-part >= %{libblockdev_version}
|
|
|
69e643 |
Requires: libblockdev-loop >= %{libblockdev_version}
|
|
|
69e643 |
Requires: libblockdev-swap >= %{libblockdev_version}
|
|
|
69e643 |
Requires: libblockdev-mdraid >= %{libblockdev_version}
|
|
|
69e643 |
Requires: libblockdev-fs >= %{libblockdev_version}
|
|
|
69e643 |
Requires: libblockdev-crypto >= %{libblockdev_version}
|
|
|
69e643 |
|
|
|
69e643 |
# Needed for the systemd-related macros used in this file
|
|
|
69e643 |
%{?systemd_requires}
|
|
|
69e643 |
BuildRequires: systemd
|
|
|
69e643 |
|
|
|
69e643 |
# Needed to pull in the system bus daemon
|
|
|
69e643 |
Requires: dbus >= %{dbus_version}
|
|
|
69e643 |
# Needed to pull in the udev daemon
|
|
|
69e643 |
Requires: udev >= %{systemd_version}
|
|
|
69e643 |
# We need at least this version for bugfixes/features etc.
|
|
|
69e643 |
Requires: libatasmart >= %{libatasmart_version}
|
|
|
69e643 |
# For mount, umount, mkswap
|
|
|
69e643 |
Requires: util-linux
|
|
|
69e643 |
# For mkfs.ext3, mkfs.ext3, e2label
|
|
|
69e643 |
Requires: e2fsprogs
|
|
|
69e643 |
# For mkfs.xfs, xfs_admin
|
|
|
69e643 |
Requires: xfsprogs
|
|
|
69e643 |
# For mkfs.vfat
|
|
|
69e643 |
Requires: dosfstools
|
|
|
69e643 |
Requires: gdisk
|
|
|
69e643 |
# For ejecting removable disks
|
|
|
69e643 |
Requires: eject
|
|
|
69e643 |
# For utab monitor
|
|
|
69e643 |
Requires: libmount
|
|
|
69e643 |
|
|
|
69e643 |
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
|
|
|
69e643 |
# For mkntfs (not available on rhel or on ppc/ppc64)
|
|
|
69e643 |
%if ! 0%{?rhel}
|
|
|
69e643 |
%ifnarch ppc ppc64
|
|
|
69e643 |
Requires: ntfsprogs
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
# For /proc/self/mountinfo, only available in 2.6.26 or higher
|
|
|
69e643 |
Conflicts: kernel < 2.6.26
|
|
|
69e643 |
|
|
|
69e643 |
Provides: storaged = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: storaged
|
|
|
69e643 |
|
|
|
69e643 |
%description
|
|
|
69e643 |
The Udisks project provides a daemon, tools and libraries to access and
|
|
|
69e643 |
manipulate disks, storage devices and technologies.
|
|
|
69e643 |
|
|
|
69e643 |
%package -n lib%{name}
|
|
|
69e643 |
Summary: Dynamic library to access the udisksd daemon
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Provides: libstoraged = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: libstoraged
|
|
|
69e643 |
|
|
|
69e643 |
%description -n lib%{name}
|
|
|
69e643 |
This package contains the dynamic library, which provides
|
|
|
69e643 |
access to the udisksd daemon.
|
|
|
69e643 |
|
|
|
69e643 |
%package -n %{name}-iscsi
|
|
|
69e643 |
Summary: Module for iSCSI
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Requires: iscsi-initiator-utils
|
|
|
69e643 |
BuildRequires: iscsi-initiator-utils-devel
|
|
|
69e643 |
Provides: storaged-iscsi = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: storaged-iscsi
|
|
|
69e643 |
|
|
|
69e643 |
%description -n %{name}-iscsi
|
|
|
69e643 |
This package contains module for iSCSI configuration.
|
|
|
69e643 |
|
|
|
69e643 |
%package -n %{name}-lvm2
|
|
|
69e643 |
Summary: Module for LVM2
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Requires: lvm2
|
|
|
69e643 |
Requires: libblockdev-lvm >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: lvm2-devel
|
|
|
69e643 |
BuildRequires: libblockdev-lvm-devel >= %{libblockdev_version}
|
|
|
69e643 |
Provides: storaged-lvm2 = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: storaged-lvm2
|
|
|
69e643 |
|
|
|
69e643 |
%description -n %{name}-lvm2
|
|
|
69e643 |
This package contains module for LVM2 configuration.
|
|
|
69e643 |
|
|
|
69e643 |
%package -n lib%{name}-devel
|
|
|
69e643 |
Summary: Development files for lib%{name}
|
|
|
69e643 |
Group: Development/Libraries
|
|
|
69e643 |
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Provides: libstoraged-devel = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: libstoraged-devel
|
|
|
69e643 |
|
|
|
69e643 |
%description -n lib%{name}-devel
|
|
|
69e643 |
This package contains the development files for the library lib%{name}, a
|
|
|
69e643 |
dynamic library, which provides access to the udisksd daemon.
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_bcache}
|
|
|
69e643 |
%package -n %{name}-bcache
|
|
|
69e643 |
Summary: Module for Bcache
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Requires: libblockdev-kbd >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-kbd-devel >= %{libblockdev_version}
|
|
|
69e643 |
Provides: storaged-bcache = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: storaged-bcache
|
|
|
69e643 |
|
|
|
69e643 |
%description -n %{name}-bcache
|
|
|
69e643 |
This package contains module for Bcache configuration.
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_btrfs}
|
|
|
69e643 |
%package -n %{name}-btrfs
|
|
|
69e643 |
Summary: Module for BTRFS
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Requires: libblockdev-btrfs >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-btrfs-devel >= %{libblockdev_version}
|
|
|
69e643 |
Provides: storaged-btrfs = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: storaged-btrfs
|
|
|
69e643 |
|
|
|
69e643 |
%description -n %{name}-btrfs
|
|
|
69e643 |
This package contains module for BTRFS configuration.
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_lsm}
|
|
|
69e643 |
%package -n %{name}-lsm
|
|
|
69e643 |
Summary: Module for LSM
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Requires: libstoragemgmt
|
|
|
69e643 |
BuildRequires: libstoragemgmt-devel
|
|
|
69e643 |
BuildRequires: libconfig-devel
|
|
|
69e643 |
Provides: storaged-lsm = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: storaged-lsm
|
|
|
69e643 |
|
|
|
69e643 |
%description -n %{name}-lsm
|
|
|
69e643 |
This package contains module for LSM configuration.
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_zram}
|
|
|
69e643 |
%package -n %{name}-zram
|
|
|
69e643 |
Summary: Module for ZRAM
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Requires: libblockdev-kbd >= %{libblockdev_version}
|
|
|
69e643 |
Requires: libblockdev-swap >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-kbd-devel >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-swap-devel
|
|
|
69e643 |
Provides: storaged-zram = %{version}-%{release}
|
|
|
69e643 |
Obsoletes: storaged-zram
|
|
|
69e643 |
|
|
|
69e643 |
%description -n %{name}-zram
|
|
|
69e643 |
This package contains module for ZRAM configuration.
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_vdo}
|
|
|
69e643 |
%package -n %{name}-vdo
|
|
|
69e643 |
Summary: Module for VDO
|
|
|
69e643 |
Group: System Environment/Libraries
|
|
|
69e643 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
69e643 |
License: LGPLv2+
|
|
|
69e643 |
Requires: vdo
|
|
|
69e643 |
Requires: libblockdev-vdo >= %{libblockdev_version}
|
|
|
69e643 |
BuildRequires: libblockdev-vdo-devel >= %{libblockdev_version}
|
|
|
69e643 |
|
|
|
69e643 |
%description -n %{name}-vdo
|
|
|
69e643 |
This package contains module for VDO management.
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%prep
|
|
|
69e643 |
%setup -q -n udisks-%{version}
|
|
|
25c940 |
%patch0 -p1
|
|
|
25c940 |
%patch1 -p1
|
|
|
049be7 |
%patch2 -p1
|
|
|
806cad |
%patch3 -p1
|
|
|
8c4b62 |
%patch4 -p1
|
|
|
049be7 |
%patch10 -p1
|
|
|
049be7 |
%patch11 -p1
|
|
|
049be7 |
%patch12 -p1
|
|
|
049be7 |
%patch13 -p1
|
|
|
049be7 |
%patch14 -p1
|
|
|
049be7 |
%patch15 -p1
|
|
|
049be7 |
%patch16 -p1
|
|
|
99b771 |
%patch17 -p1
|
|
|
830394 |
%patch20 -p1
|
|
|
830394 |
%patch21 -p1
|
|
|
830394 |
%patch22 -p1
|
|
|
598898 |
%patch23 -p1
|
|
|
598898 |
%patch24 -p1
|
|
|
598898 |
%patch25 -p1
|
|
|
598898 |
%patch26 -p1
|
|
|
598898 |
%patch27 -p1
|
|
|
df2958 |
%patch28 -p1
|
|
|
69e643 |
sed -i udisks/udisks2.conf.in -e "s/encryption=luks1/encryption=%{default_luks_encryption}/"
|
|
|
69e643 |
|
|
|
69e643 |
%build
|
|
|
69e643 |
autoreconf -ivf
|
|
|
69e643 |
# modules need to be explicitly enabled
|
|
|
69e643 |
%configure \
|
|
|
69e643 |
--sysconfdir=/etc \
|
|
|
69e643 |
%if %{with_gtk_doc}
|
|
|
69e643 |
--enable-gtk-doc \
|
|
|
69e643 |
%else
|
|
|
69e643 |
--disable-gtk-doc \
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_bcache}
|
|
|
69e643 |
--enable-bcache \
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_btrfs}
|
|
|
69e643 |
--enable-btrfs \
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_vdo}
|
|
|
69e643 |
--enable-vdo \
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_zram}
|
|
|
69e643 |
--enable-zram \
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_lsm}
|
|
|
69e643 |
--enable-lsm \
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_lvmcache}
|
|
|
69e643 |
--enable-lvmcache \
|
|
|
69e643 |
%endif
|
|
|
69e643 |
--enable-lvm2 \
|
|
|
69e643 |
--enable-iscsi
|
|
|
69e643 |
make %{?_smp_mflags}
|
|
|
69e643 |
|
|
|
69e643 |
%install
|
|
|
69e643 |
make install DESTDIR=%{buildroot}
|
|
|
69e643 |
%if %{with_gtk_doc} == 0
|
|
|
69e643 |
rm -fr %{buildroot}/%{_datadir}/gtk-doc/html/udisks2
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
find %{buildroot} -name \*.la -o -name \*.a | xargs rm
|
|
|
69e643 |
|
|
|
69e643 |
chrpath --delete %{buildroot}/%{_sbindir}/umount.udisks2
|
|
|
69e643 |
chrpath --delete %{buildroot}/%{_bindir}/udisksctl
|
|
|
69e643 |
chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd
|
|
|
69e643 |
|
|
|
69e643 |
%find_lang udisks2
|
|
|
69e643 |
|
|
|
69e643 |
%post -n %{name}
|
|
|
69e643 |
%systemd_post udisks2.service
|
|
|
69e643 |
# skip retriggering if udevd isn't even accessible, e.g. containers or
|
|
|
69e643 |
# rpm-ostree-based systems
|
|
|
69e643 |
if [ -S /run/udev/control ]; then
|
|
|
69e643 |
udevadm control --reload
|
|
|
69e643 |
udevadm trigger
|
|
|
69e643 |
fi
|
|
|
69e643 |
|
|
|
69e643 |
%preun -n %{name}
|
|
|
69e643 |
%systemd_preun udisks2.service
|
|
|
69e643 |
|
|
|
69e643 |
%postun -n %{name}
|
|
|
69e643 |
%systemd_postun_with_restart udisks2.service
|
|
|
69e643 |
|
|
|
69e643 |
%ldconfig_scriptlets -n lib%{name}
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_zram}
|
|
|
69e643 |
%post -n %{name}-zram
|
|
|
69e643 |
%systemd_post zram-setup@.service
|
|
|
69e643 |
|
|
|
69e643 |
%preun -n %{name}-zram
|
|
|
69e643 |
%systemd_preun zram-setup@.service
|
|
|
69e643 |
|
|
|
69e643 |
%postun -n %{name}-zram
|
|
|
69e643 |
%systemd_postun zram-setup@.service
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%files -f udisks2.lang
|
|
|
69e643 |
%doc README.md AUTHORS NEWS HACKING
|
|
|
69e643 |
%license COPYING
|
|
|
69e643 |
|
|
|
69e643 |
%dir %{_sysconfdir}/udisks2
|
|
|
69e643 |
%if %{is_fedora}
|
|
|
69e643 |
%dir %{_sysconfdir}/udisks2/modules.conf.d
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%{_sysconfdir}/udisks2/udisks2.conf
|
|
|
69e643 |
%{_sysconfdir}/udisks2/mount_options.conf.example
|
|
|
69e643 |
|
|
|
69e643 |
%{_datadir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
|
|
|
69e643 |
%{_datadir}/bash-completion/completions/udisksctl
|
|
|
69e643 |
%{_tmpfilesdir}/%{name}.conf
|
|
|
69e643 |
%{_unitdir}/udisks2.service
|
|
|
69e643 |
%{_udevrulesdir}/80-udisks2.rules
|
|
|
69e643 |
%{_sbindir}/umount.udisks2
|
|
|
69e643 |
|
|
|
69e643 |
|
|
|
69e643 |
%dir %{_libdir}/udisks2
|
|
|
69e643 |
%dir %{_libdir}/udisks2/modules
|
|
|
69e643 |
%dir %{_libexecdir}/udisks2
|
|
|
69e643 |
%{_libexecdir}/udisks2/udisksd
|
|
|
69e643 |
|
|
|
69e643 |
%{_bindir}/udisksctl
|
|
|
69e643 |
|
|
|
69e643 |
%{_mandir}/man1/udisksctl.1*
|
|
|
69e643 |
%{_mandir}/man5/udisks2.conf.5*
|
|
|
69e643 |
%{_mandir}/man8/udisksd.8*
|
|
|
69e643 |
%{_mandir}/man8/udisks.8*
|
|
|
69e643 |
%{_mandir}/man8/umount.udisks2.8*
|
|
|
69e643 |
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.policy
|
|
|
69e643 |
%{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
|
|
|
69e643 |
|
|
|
69e643 |
# Permissions for local state data are 0700 to avoid leaking information
|
|
|
69e643 |
# about e.g. mounts to unprivileged users
|
|
|
69e643 |
%attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
|
|
|
69e643 |
|
|
|
69e643 |
%files -n lib%{name}
|
|
|
69e643 |
%{_libdir}/libudisks2.so.*
|
|
|
69e643 |
%{_libdir}/girepository-1.0/UDisks-2.0.typelib
|
|
|
69e643 |
|
|
|
69e643 |
%files -n %{name}-lvm2
|
|
|
69e643 |
%{_libdir}/udisks2/modules/libudisks2_lvm2.so
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy
|
|
|
69e643 |
|
|
|
69e643 |
%files -n %{name}-iscsi
|
|
|
69e643 |
%{_libdir}/udisks2/modules/libudisks2_iscsi.so
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.iscsi.policy
|
|
|
69e643 |
|
|
|
69e643 |
%files -n lib%{name}-devel
|
|
|
69e643 |
%{_libdir}/libudisks2.so
|
|
|
69e643 |
%dir %{_includedir}/udisks2
|
|
|
69e643 |
%dir %{_includedir}/udisks2/udisks
|
|
|
69e643 |
%{_includedir}/udisks2/udisks/*.h
|
|
|
69e643 |
%{_datadir}/gir-1.0/UDisks-2.0.gir
|
|
|
69e643 |
%if %{with_gtk_doc}
|
|
|
69e643 |
%dir %{_datadir}/gtk-doc/html/udisks2
|
|
|
69e643 |
%{_datadir}/gtk-doc/html/udisks2/*
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2.pc
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2-lvm2.pc
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2-iscsi.pc
|
|
|
69e643 |
%if 0%{?with_bcache}
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2-bcache.pc
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_btrfs}
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2-btrfs.pc
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_lsm}
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2-lsm.pc
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_zram}
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2-zram.pc
|
|
|
69e643 |
%endif
|
|
|
69e643 |
%if 0%{?with_vdo}
|
|
|
69e643 |
%{_libdir}/pkgconfig/udisks2-vdo.pc
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_bcache}
|
|
|
69e643 |
%files -n %{name}-bcache
|
|
|
69e643 |
%{_libdir}/udisks2/modules/libudisks2_bcache.so
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.bcache.policy
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_btrfs}
|
|
|
69e643 |
%files -n %{name}-btrfs
|
|
|
69e643 |
%{_libdir}/udisks2/modules/libudisks2_btrfs.so
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.btrfs.policy
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_lsm}
|
|
|
69e643 |
%files -n %{name}-lsm
|
|
|
69e643 |
%dir %{_sysconfdir}/udisks2/modules.conf.d
|
|
|
69e643 |
%{_libdir}/udisks2/modules/libudisks2_lsm.so
|
|
|
69e643 |
%{_mandir}/man5/udisks2_lsm.conf.*
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lsm.policy
|
|
|
69e643 |
%attr(0600,root,root) %{_sysconfdir}/udisks2/modules.conf.d/udisks2_lsm.conf
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_zram}
|
|
|
69e643 |
%files -n %{name}-zram
|
|
|
69e643 |
%dir %{_sysconfdir}/udisks2/modules.conf.d
|
|
|
69e643 |
%{_libdir}/udisks2/modules/libudisks2_zram.so
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.zram.policy
|
|
|
69e643 |
%{_unitdir}/zram-setup@.service
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%if 0%{?with_vdo}
|
|
|
69e643 |
%files -n %{name}-vdo
|
|
|
69e643 |
%{_libdir}/udisks2/modules/libudisks2_vdo.so
|
|
|
69e643 |
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.vdo.policy
|
|
|
69e643 |
%endif
|
|
|
69e643 |
|
|
|
69e643 |
%changelog
|
|
|
df2958 |
* Tue Nov 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-13
|
|
|
df2958 |
- Fix iscsi test auth failures (#1966460)
|
|
|
df2958 |
|
|
|
8c4b62 |
* Wed Oct 19 2022 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-12
|
|
|
8c4b62 |
- Fix iscsi authentication info override (#2135773)
|
|
|
8c4b62 |
|
|
|
806cad |
* Fri Sep 16 2022 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-11
|
|
|
806cad |
- Fix the patch list
|
|
|
806cad |
|
|
|
806cad |
* Fri Sep 16 2022 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-10
|
|
|
806cad |
- Restrict ATA Secure Erase Format() options (#2120697)
|
|
|
806cad |
|
|
|
598898 |
* Tue Feb 01 2022 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-9
|
|
|
598898 |
- Fix LVM-VDO statistics tests (#2023880,#2025483)
|
|
|
598898 |
- Fix GError ownership (#1999149)
|
|
|
598898 |
|
|
|
99b771 |
* Mon Oct 25 2021 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-8
|
|
|
99b771 |
- CVE-2021-3802: Harden the default mount options for ext filesystems (#2004422)
|
|
|
99b771 |
|
|
|
830394 |
* Fri Apr 23 2021 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-7
|
|
|
830394 |
- Do not build udisks2-zram (#1923078)
|
|
|
830394 |
- Fix Drive.ATA test failures (#1926827)
|
|
|
830394 |
|
|
|
99014c |
* Tue Jan 26 2021 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-6
|
|
|
99014c |
- Rebuilt for new docbook-style-xsl (#1853153)
|
|
|
99014c |
|
|
|
049be7 |
* Mon Nov 16 2020 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-5
|
|
|
049be7 |
- Fix loop device setup
|
|
|
049be7 |
|
|
|
049be7 |
* Tue Nov 10 2020 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-4
|
|
|
049be7 |
- Fix Drive.Ata tests with system SAS drives (#1855785)
|
|
|
049be7 |
- Force D-Bus interfaces flush (#1845973)
|
|
|
049be7 |
|
|
|
25c940 |
* Mon Jun 22 2020 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-3
|
|
|
25c940 |
- Fix the UdisksLVMVDOTest.test_resize_physical test (#1845435)
|
|
|
25c940 |
|
|
|
25c940 |
* Mon Jun 22 2020 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-2
|
|
|
25c940 |
- Fix block tear-down functionality (#1843454)
|
|
|
25c940 |
- Fix libblockdev requires
|
|
|
25c940 |
|
|
|
69e643 |
* Tue May 26 2020 Tomas Bzatek <tbzatek@redhat.com> - 2.9.0-1
|
|
|
69e643 |
- Rebase to 2.9.0 (#1824147)
|
|
|
69e643 |
|
|
|
69e643 |
* Fri Jun 14 2019 Tomas Bzatek <tbzatek@redhat.com> - 2.8.3-2
|
|
|
69e643 |
- Minor test fixes
|
|
|
69e643 |
- Fix potential NULL dereference in UDisksLinuxPartition
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Jun 13 2019 Tomas Bzatek <tbzatek@redhat.com> - 2.8.3-1
|
|
|
69e643 |
- Rebased to upstream 2.8.3 release (#1685210)
|
|
|
69e643 |
- Fix leaking filedescriptors (#1614774)
|
|
|
69e643 |
- Fix udisksctl pager scrolling (#1662336)
|
|
|
69e643 |
- Fix LVM2 plugin CreateSnapshot() error (#1668291)
|
|
|
69e643 |
- Add ISCSI plugin GetInitiatorNameRaw() method (#1710257)
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Oct 08 2018 Vojtech Trefny <vtrefny@redhat.com> - 2.8.0-2
|
|
|
69e643 |
- Fix string format vulnerability
|
|
|
69e643 |
Resolves: rhbz#1632831
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Aug 13 2018 Tomas Bzatek <tbzatek@redhat.com> - 2.8.0-1
|
|
|
69e643 |
- Version 2.8.0
|
|
|
69e643 |
|
|
|
69e643 |
* Tue Jul 24 2018 Adam Williamson <awilliam@redhat.com> - 2.7.7-3
|
|
|
69e643 |
- Rebuild for new libconfig
|
|
|
69e643 |
|
|
|
69e643 |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.7-2
|
|
|
69e643 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Jul 04 2018 Vojtech Trefny <vtrefny@redhat.com> - 2.7.7-1
|
|
|
69e643 |
- Version 2.7.7
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Feb 08 2018 Vojtech Trefny <vtrefny@redhat.com> - 2.7.6-1
|
|
|
69e643 |
- Version 2.7.6
|
|
|
69e643 |
|
|
|
69e643 |
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.7.5-2
|
|
|
69e643 |
- Switch to %%ldconfig_scriptlets
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Dec 04 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.5-1
|
|
|
69e643 |
- Version 2.7.5
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Nov 01 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.4-1
|
|
|
69e643 |
- Version 2.7.4
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Aug 31 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.3-1
|
|
|
69e643 |
- Version 2.7.3
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Aug 03 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.2-1
|
|
|
69e643 |
- Version 2.7.2
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-3
|
|
|
69e643 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-2
|
|
|
69e643 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Jul 03 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.1-1
|
|
|
69e643 |
- Version 2.7.1
|
|
|
69e643 |
|
|
|
69e643 |
* Tue Jun 20 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.0-3
|
|
|
69e643 |
- Do not try to remove changed_blacklist hash table in finalize
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Jun 19 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.0-2
|
|
|
69e643 |
- Fix how UDisksClient filters property changes
|
|
|
69e643 |
|
|
|
69e643 |
* Fri Jun 02 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.7.0-1
|
|
|
69e643 |
- Version 2.7.0
|
|
|
69e643 |
|
|
|
69e643 |
* Mon May 15 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.6.5-1
|
|
|
69e643 |
- Version 2.6.5
|
|
|
69e643 |
|
|
|
69e643 |
* Tue Mar 14 2017 Vojtech Trefny <vtrefny@redhat.com> - 2.6.4-1
|
|
|
69e643 |
- Version 2.6.4
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Nov 14 2016 Tomas Smetana <tsmetana@redhat.com> - 2.6.3-1
|
|
|
69e643 |
- Version 2.6.3
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Jun 16 2016 Tomas Smetana <tsmetana@redhat.com> - 2.6.2-1
|
|
|
69e643 |
- Version 2.6.2; aimed to replace udisks2
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Apr 27 2016 Peter Hatina <phatina@redhat.com> - 2.6.0-3
|
|
|
69e643 |
- Add support for libblockdev-part plugin which replaces
|
|
|
69e643 |
parted calls
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Mar 16 2016 Peter Hatina <phatina@redhat.com> - 2.6.0-2
|
|
|
69e643 |
- Fix permissions set for storaged_lsm.conf so it is readable only by root
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Mar 14 2016 Peter Hatina <phatina@redhat.com> - 2.6.0-1
|
|
|
69e643 |
- Upgrade to 2.6.0
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Feb 10 2016 Peter Hatina <phatina@redhat.com> - 2.5.0-3
|
|
|
69e643 |
- Package template zram-setup@.service file
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Feb 10 2016 Peter Hatina <phatina@redhat.com> - 2.5.0-2
|
|
|
69e643 |
- Add udisksd configuration file and its man page
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Jan 28 2016 Peter Hatina <phatina@redhat.com> - 2.5.0-1
|
|
|
69e643 |
- UDisks2 drop-in replacement
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Jan 21 2016 Peter Hatina <phatina@redhat.com> - 2.4.0-3
|
|
|
69e643 |
- Redesign subpackage dependencies
|
|
|
69e643 |
- Make GTK documentation generation configurable
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Jan 20 2016 Peter Hatina <phatina@redhat.com> - 2.4.0-2
|
|
|
69e643 |
- Reload udev rules and trigger events when installed
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Jan 13 2016 Peter Hatina <phatina@redhat.com> - 2.4.0-1
|
|
|
69e643 |
- Upgrade to 2.4.0
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Sep 30 2015 Peter Hatina <phatina@redhat.com> - 2.3.0-2
|
|
|
69e643 |
- Add Fedora/RHEL package configuration options
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Sep 14 2015 Peter Hatina <phatina@redhat.com> - 2.3.0-1
|
|
|
69e643 |
- Change BuildRequires from pkgconfig macro to -devel packages
|
|
|
69e643 |
- Upgrade to 2.3.0
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Aug 24 2015 Peter Hatina <phatina@redhat.com> - 2.2.0-1
|
|
|
69e643 |
- Upgrade to 2.2.0
|
|
|
69e643 |
|
|
|
69e643 |
* Fri Jul 3 2015 Peter Hatina <phatina@redhat.com> - 2.1.1-1
|
|
|
69e643 |
- Upgrade to 2.1.1
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Jun 24 2015 Peter Hatina <phatina@redhat.com> - 2.1.0-4
|
|
|
69e643 |
- Add Requires for storaged modules
|
|
|
69e643 |
|
|
|
69e643 |
* Wed Jun 24 2015 Peter Hatina <phatina@redhat.com> - 2.1.0-3
|
|
|
69e643 |
- Changes for EPEL-7
|
|
|
69e643 |
- Lower systemd required version to 208
|
|
|
69e643 |
- Rewrite BuildRequires for systemd-devel
|
|
|
69e643 |
|
|
|
69e643 |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-2
|
|
|
69e643 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Jun 11 2015 Peter Hatina <phatina@redhat.com> - 2.1.0-1
|
|
|
69e643 |
- Update to upstream 2.1.0
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Apr 02 2015 Peter Hatina <phatina@redhat.com> - 2.0.0-1
|
|
|
69e643 |
- Rebase to the new Storaged implementation
|
|
|
69e643 |
- Upstream: https://storaged.org
|
|
|
69e643 |
|
|
|
69e643 |
* Tue Sep 16 2014 Stef Walter <stefw@redhat.com> - 0.3.1-1
|
|
|
69e643 |
- Update to upstream 0.3.1
|
|
|
69e643 |
|
|
|
69e643 |
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-3
|
|
|
69e643 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
69e643 |
|
|
|
69e643 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
|
|
|
69e643 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
69e643 |
|
|
|
69e643 |
* Tue Apr 08 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.3.0-1
|
|
|
69e643 |
- Update to upstream 0.3.0
|
|
|
69e643 |
|
|
|
69e643 |
* Fri Jan 31 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.2.0-1
|
|
|
69e643 |
- Update to upstream 0.2.0
|
|
|
69e643 |
|
|
|
69e643 |
* Thu Jan 16 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.1.0-2
|
|
|
69e643 |
- Removed double systemd BuildRequire
|
|
|
69e643 |
- Rewritten summary and description
|
|
|
69e643 |
|
|
|
69e643 |
* Sun Jan 12 2014 Patrick Uiterwijk <puiterwijk@redhat.com> - 0.1.0-1
|
|
|
69e643 |
- Rename from udisks2-lvm
|