123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385 |
- %bcond_with systemd
- %define glib2_version 2.40.0
- %define dbus_version 1.6.14
- %define polkit_version 0.104
- %define libatasmart_version 0.17
- %global libblockdev_version 2.24
- # valid options are 'luks1' or 'luks2'
- %define default_luks_encryption luks2
- Summary: Storage Management Service
- Name: udisks2
- Version: 2.9.0
- Release: 1%{?_dist_release}%{?with_systemd:.systemd}
- Group: admin-tools,system
- Vendor: Project Vine
- Distribution: Vine Linux
- License: GPLv2+
- URL: http://www.freedesktop.org/wiki/Software/udisks
- Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
- BuildRequires: glib2-devel >= %{glib2_version}
- BuildRequires: gobject-introspection-devel
- BuildRequires: libgudev-devel
- BuildRequires: dbus-devel >= %{dbus_version}
- BuildRequires: polkit-devel >= %{polkit_version}
- BuildRequires: libacl-devel
- BuildRequires: intltool
- BuildRequires: libatasmart-devel >= %{libatasmart_version}
- BuildRequires: lvm2-devel
- BuildRequires: chrpath
- BuildRequires: gtk-doc
- BuildRequires: gettext-devel
- 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
- BuildRequires: libmount-devel
- BuildRequires: libuuid-devel
- %if %{with systemd}
- BuildRequires: systemd-devel
- %{?systemd_requires}
- %else
- BuildRequires: eudev-libgudev1-devel
- BuildRequires: eudev-libudev-devel
- BuildRequires: elogind-devel
- %endif
- 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}
- # needed to pull in the system bus daemon
- Requires: dbus >= %{dbus_version}
- %if !%{with systemd}
- # needed to pull in the udev daemon
- Requires: eudev
- %endif
- # we need at least this version for bugfixes / features etc.
- Requires: libatasmart >= %{libatasmart_version}
- # for mount, umount, mkswap
- Requires: util-linux-ng
- # for mkfs.ext3, mkfs.ext3, e2label
- Requires: e2fsprogs
- # for mkfs.xfs, xfs_admin
- Requires: xfsprogs
- # for mkfs.vfat
- Requires: dosfstools
- # For ejecting removable disks
- Requires: eject
- # For utab monitor
- Requires: libmount
- # For utab monitor
- Requires: gdisk
- # For mkntfs (not available on rhel or on ppc/ppc64)
- Requires: ntfsprogs
- # for /proc/self/mountinfo, only available in 2.6.26 or higher
- Conflicts: kernel < 2.6.26
- # we need liblvm2app at least this recent since the ABI changed (sizes
- # reported in number of bytes instead of number of sectors) without
- # the sonumber changing
- #
- Requires: lvm2-libs >= %{lvm2_version}
- %description
- udisks provides a daemon, D-Bus API and command line tools
- for managing disks and storage devices.
- %package lvm2
- Summary: udisks2 module for LVM2
- Group: system
- 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
- 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.
- %package bcache
- Summary: udisks2 module for Bcache
- Group: system
- Requires: %{name}%{?_isa} = %{version}-%{release}
- License: LGPLv2+
- Requires: libblockdev-kbd >= %{libblockdev_version}
- BuildRequires: libblockdev-kbd-devel >= %{libblockdev_version}
- #Provides: storaged-bcache = %{version}-%{release}
- #Obsoletes: storaged-bcache
- %description bcache
- This package contains module for Bcache configuration.
- %if 0
- %package vdo
- Summary: udisks2 module for VDO
- Group: system
- 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
- Summary: D-Bus interface definitions for udisks
- Group: programming
- Requires: %{name} = %{version}-%{release}
- # See comment above
- #
- %description devel
- D-Bus interface definitions and documentation for udisks.
- %package docs
- Summary: Documentation for udisks2
- Group: documentation
- Requires: %{name} = %{version}-%{release}
- BuildArch: noarch
- Provides: %{name}-doc = %{version}-%{release}
- %description docs
- This package contains documentation for udisks2.
- %prep
- %setup -q -n udisks-%{version}
- sed -i udisks/udisks2.conf.in -e "s/encryption=luks1/encryption=%{default_luks_encryption}/"
- %build
- autoreconf -vif
- %configure \
- --sbindir=%{_syssbindir} \
- --enable-lvm2 \
- --enable-lvmcache \
- --enable-zram \
- --enable-bcache \
- --enable-gtk-doc
- make %{?_smp_mflags}
- %install
- rm -rf $RPM_BUILD_ROOT
- make install DESTDIR=$RPM_BUILD_ROOT
- 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 -p %{buildroot}%{_sysconfdir}/udisks2/modules.conf.d
- %find_lang %{name}
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post
- /sbin/ldconfig
- %if %{with systemd}
- %systemd_post udisks2.service
- %endif
- # skip retriggering if udevd isn't even accessible, e.g. containers or
- # rpm-ostree-based systems
- if [ -S /run/udev/control ]; then
- udevadm control --reload
- udevadm trigger
- fi
- %if %{with systemd}
- %preun
- %systemd_preun udisks2.service
- %endif
- %postun
- /sbin/ldconfig
- %if %{with systemd}
- %systemd_postun_with_restart udisks2.service
- %endif
- %if %{with systemd}
- %post -n %{name}-zram
- %systemd_post zram-setup@.service
- %preun -n %{name}-zram
- %systemd_preun zram-setup@.service
- %postun -n %{name}-zram
- %systemd_postun zram-setup@.service
- %endif
- %files -f %{name}.lang
- %defattr(-,root,root,-)
- %license COPYING
- %doc README.md AUTHORS NEWS HACKING
- %dir %{_sysconfdir}/udisks2
- %dir %{_sysconfdir}/udisks2/modules.conf.d
- %config(noreplace) %{_sysconfdir}/udisks2/udisks2.conf
- %config(noreplace) %{_sysconfdir}/udisks2/mount_options.conf.example
- /lib/udev/rules.d/80-udisks2.rules
- %{_bindir}/udisksctl
- %{_syssbindir}/umount.udisks2
- %{_libexecdir}/udisks2/udisksd
- %{_libdir}/libudisks2.so.*
- %{_libdir}/girepository-1.0/UDisks-2.0.typelib
- %dir %{_libdir}/udisks2
- %dir %{_libdir}/udisks2/modules
- %dir %{_datadir}/bash-completion
- %dir %{_datadir}/bash-completion/completions
- %{_datadir}/bash-completion/completions/udisksctl
- %{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
- %{_datadir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
- %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.policy
- %{_mandir}/man1/*
- %{_mandir}/man5/*
- %{_mandir}/man8/*
- %attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
- %if %{with systemd}
- %{_tmpfilesdir}/%{name}.conf
- %{_unitdir}/udisks2.service
- %endif
- %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 %{with systemd}
- %{_unitdir}/zram-setup@.service
- %endif
- %files bcache
- %{_libdir}/udisks2/modules/libudisks2_bcache.so
- %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.bcache.policy
- %if 0
- %files vdo
- %{_libdir}/udisks2/modules/libudisks2_vdo.so
- %{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.vdo.policy
- %endif
- %files devel
- %defattr(-,root,root,-)
- %{_includedir}/udisks2
- %{_libdir}/libudisks2.so
- %{_libdir}/pkgconfig/udisks2*.pc
- %{_datadir}/gir-1.0/UDisks-2.0.gir
- %files docs
- %defattr(-,root,root,-)
- %{_datadir}/gtk-doc/html/%{name}
- #
- %changelog
- * Tue Aug 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.9.0-1
- - new upstream release.
- - added systemd support (disabled as default).
- * Mon Mar 30 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.4-1
- - new upstream release.
- * 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
- - new upstream release.
- - enabled elogind.
- * Sun Apr 24 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.7-1
- - new upstream release
- * Sun Jan 03 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-2
- - add Requires: gdisk
- * Sun Aug 16 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.6-1
- - new upstream release
- * Sun May 24 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-2
- - remove unused files
- - change path of umount.udisks2
- * Sun Apr 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.5-1
- - new upstream release
- * Thu Dec 25 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.4-1
- - new upstream release
- * Thu Jul 03 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-3
- - change BuildRequires: eudev-libgudev1-devel instead of libgudev1-devel
- - change BuildRequires: eudev-libudev-devel instead of libudev-devel
- * Sun Mar 30 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.3-1
- - new upstream release
- * Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-2
- - rebuild with VineSeed environment
- * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.1-1
- - new upstream release
- * Thu Mar 21 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.1.0-1
- - new upstream release
- * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.1-1
- - new upstream release
- * Tue Oct 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-1
- - new upstream release
- * Sat Sep 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.99.0-1
- - new upstream release
- * Sun Jun 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.98.0-1
- - new upstream release
- - add BuildRequires: libacl-devel
- * Sun Apr 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.94.0-1
- - Initial build for Vine Linux
|