|
|
170140 |
%define glib2_version 2.31.13
|
|
|
170140 |
%define gobject_introspection_version 1.30.0
|
|
|
170140 |
%define polkit_version 0.101
|
|
|
170140 |
%define systemd_version 184
|
|
|
170140 |
%define libatasmart_version 0.12
|
|
|
170140 |
%define dbus_version 1.4.0
|
|
|
170140 |
|
|
|
170140 |
Summary: Disk Manager
|
|
|
170140 |
Name: udisks2
|
|
|
5137f5 |
Version: 2.1.2
|
|
|
e2e8e9 |
Release: 6%{?dist}
|
|
|
170140 |
License: GPLv2+
|
|
|
170140 |
Group: System Environment/Libraries
|
|
|
170140 |
URL: http://www.freedesktop.org/wiki/Software/udisks
|
|
|
170140 |
Source0: http://udisks.freedesktop.org/releases/udisks-%{version}.tar.bz2
|
|
|
170140 |
|
|
|
170140 |
BuildRequires: glib2-devel >= %{glib2_version}
|
|
|
170140 |
BuildRequires: gobject-introspection-devel >= %{gobject_introspection_version}
|
|
|
170140 |
BuildRequires: polkit-devel >= %{polkit_version}
|
|
|
170140 |
BuildRequires: intltool
|
|
|
170140 |
BuildRequires: libatasmart-devel >= %{libatasmart_version}
|
|
|
170140 |
BuildRequires: libgudev1-devel >= %{systemd_version}
|
|
|
170140 |
BuildRequires: gtk-doc
|
|
|
170140 |
BuildRequires: systemd-devel
|
|
|
170140 |
BuildRequires: libacl-devel
|
|
|
170140 |
|
|
|
170140 |
# needed to pull in the system bus daemon
|
|
|
170140 |
Requires: dbus >= %{dbus_version}
|
|
|
170140 |
# needed to pull in the udev daemon
|
|
|
170140 |
Requires: systemd >= %{systemd_version}
|
|
|
170140 |
# we need at least this version for bugfixes / features etc.
|
|
|
170140 |
Requires: libatasmart >= %{libatasmart_version}
|
|
|
170140 |
# for mount, umount, mkswap
|
|
|
170140 |
Requires: util-linux
|
|
|
170140 |
# for mkfs.ext3, mkfs.ext3, e2label
|
|
|
170140 |
Requires: e2fsprogs
|
|
|
170140 |
# for mkfs.xfs, xfs_admin
|
|
|
170140 |
Requires: xfsprogs
|
|
|
170140 |
# for mkfs.vfat
|
|
|
170140 |
Requires: dosfstools
|
|
|
170140 |
# for partitioning
|
|
|
170140 |
Requires: parted
|
|
|
170140 |
Requires: gdisk
|
|
|
170140 |
# for LUKS devices
|
|
|
170140 |
Requires: cryptsetup-luks
|
|
|
170140 |
# for ejecting removable disks
|
|
|
170140 |
Requires: eject
|
|
|
170140 |
|
|
|
170140 |
# for MD-RAID
|
|
|
170140 |
Requires: mdadm
|
|
|
170140 |
|
|
|
170140 |
Requires: libudisks2 = %{version}-%{release}
|
|
|
170140 |
|
|
|
170140 |
# for mkntfs (not available on rhel or on ppc/ppc64)
|
|
|
170140 |
%if ! 0%{?rhel}
|
|
|
170140 |
%ifnarch ppc ppc64
|
|
|
170140 |
Requires: ntfsprogs
|
|
|
170140 |
%endif
|
|
|
170140 |
%endif
|
|
|
170140 |
|
|
|
170140 |
# for /proc/self/mountinfo, only available in 2.6.26 or higher
|
|
|
170140 |
Conflicts: kernel < 2.6.26
|
|
|
170140 |
|
|
|
170140 |
# https://bugzilla.redhat.com/show_bug.cgi?id=976796
|
|
|
170140 |
# ensure smooth upgrade path from udisks(1)
|
|
|
5137f5 |
Obsoletes: udisks
|
|
|
170140 |
|
|
|
170140 |
# Some patch touches Makefile.am
|
|
|
170140 |
BuildRequires: automake autoconf
|
|
|
170140 |
BuildRequires: gnome-common
|
|
|
170140 |
|
|
|
170140 |
|
|
|
170140 |
# add a man page for umount.udisks2
|
|
|
170140 |
# https://bugzilla.redhat.com/show_bug.cgi?id=948926
|
|
|
170140 |
Patch8: umount.udisks2-manpage.patch
|
|
|
170140 |
|
|
|
5137f5 |
# udisks2: udiskctl loop-delete crash
|
|
|
5137f5 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1036076
|
|
|
5137f5 |
Patch9: udisks-2.1.3-udisksctl-loop-delete-crash.patch
|
|
|
5137f5 |
|
|
|
5137f5 |
# udisks2: thread safety issues
|
|
|
5137f5 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1036099
|
|
|
5137f5 |
Patch10: udisks-2.1.3-getpwuid-thread-safety.patch
|
|
|
5137f5 |
Patch11: udisks-2.1.3-udisks_daemon_util_get_caller_uid_sync-missing-goto.patch
|
|
|
5137f5 |
|
|
|
5137f5 |
# udisks2 doesn't unmount /dev/sr0 when optical media is ejected using optical drive button
|
|
|
5137f5 |
# https://bugzilla.redhat.com/show_bug.cgi?id=835120
|
|
|
5137f5 |
Patch12: udisks-2.x.x-cleanup-cdrom.patch
|
|
|
5137f5 |
|
|
|
5137f5 |
# Issues found by clang static analyzer
|
|
|
5137f5 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1056580
|
|
|
5137f5 |
Patch13: udisks-2.1.3-uninitialized-vars.patch
|
|
|
5137f5 |
Patch14: udisks-2.1.3-uninitialized-wait_data.patch
|
|
|
5137f5 |
|
|
|
5137f5 |
# CVE-2014-0004
|
|
|
5137f5 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1070144
|
|
|
5137f5 |
Patch15: udisks-2.x.x-CVE-2014-0004.patch
|
|
|
170140 |
|
|
|
e2e8e9 |
# Rename the Intel SW RAID
|
|
|
e2e8e9 |
# https://bugzilla.redhat.com/show_bug.cgi?id=1175225
|
|
|
e2e8e9 |
Patch16: udisks-2.1.2-intel_raid.patch
|
|
|
e2e8e9 |
|
|
|
170140 |
%description
|
|
|
170140 |
udisks provides a daemon, D-Bus API and command line tools for
|
|
|
170140 |
managing disks and storage devices. This package is for the udisks 2.x
|
|
|
170140 |
series.
|
|
|
170140 |
|
|
|
170140 |
%package -n libudisks2
|
|
|
170140 |
Summary: Dynamic library to access the udisks daemon
|
|
|
170140 |
Group: System Environment/Libraries
|
|
|
170140 |
License: LGPLv2+
|
|
|
170140 |
|
|
|
170140 |
%description -n libudisks2
|
|
|
170140 |
This package contains the dynamic library libudisks2, which provides
|
|
|
170140 |
access to the udisks daemon. This package is for the udisks 2.x
|
|
|
170140 |
series.
|
|
|
170140 |
|
|
|
170140 |
%package -n libudisks2-devel
|
|
|
170140 |
Summary: Development files for libudisks2
|
|
|
170140 |
Group: Development/Libraries
|
|
|
170140 |
Requires: libudisks2 = %{version}-%{release}
|
|
|
170140 |
Requires: pkgconfig
|
|
|
170140 |
License: LGPLv2+
|
|
|
170140 |
|
|
|
170140 |
%description -n libudisks2-devel
|
|
|
170140 |
This package contains the development files for the library
|
|
|
170140 |
libudisks2, a dynamic library, which provides access to the udisks
|
|
|
170140 |
daemon. This package is for the udisks 2.x series.
|
|
|
170140 |
|
|
|
170140 |
%prep
|
|
|
170140 |
%setup -q -n udisks-%{version}
|
|
|
170140 |
%patch8 -p1 -b .umount.udisks2-manpage
|
|
|
5137f5 |
%patch9 -p1 -b .udisksctl-loop-delete-crash
|
|
|
5137f5 |
%patch10 -p1 -b .getpwuid-thread-safety
|
|
|
5137f5 |
%patch11 -p1 -b .udisks_daemon_util_get_caller_uid_sync-missing-goto
|
|
|
5137f5 |
%patch12 -p1 -b .cleanup-cdrom
|
|
|
5137f5 |
%patch13 -p1 -b .uninitialized-vars
|
|
|
5137f5 |
%patch14 -p1 -b .uninitialized-wait_data
|
|
|
5137f5 |
%patch15 -p1 -b .cve-2014-0004
|
|
|
e2e8e9 |
%patch16 -p1 -b .intel_raid
|
|
|
170140 |
|
|
|
170140 |
%build
|
|
|
170140 |
# umount.udisks2-manpage.patch touches Makefile.am
|
|
|
170140 |
libtoolize --force || :
|
|
|
170140 |
aclocal || :
|
|
|
170140 |
autoheader || :
|
|
|
170140 |
automake || :
|
|
|
170140 |
autoconf || :
|
|
|
170140 |
# we can't use _hardened_build here, see
|
|
|
170140 |
# https://bugzilla.redhat.com/show_bug.cgi?id=892837
|
|
|
170140 |
export CFLAGS='-fPIC %optflags'
|
|
|
170140 |
export LDFLAGS='-pie -Wl,-z,now -Wl,-z,relro'
|
|
|
170140 |
%configure --enable-gtk-doc
|
|
|
170140 |
make
|
|
|
170140 |
|
|
|
170140 |
%install
|
|
|
170140 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
170140 |
|
|
|
170140 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
170140 |
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
170140 |
|
|
|
170140 |
%find_lang %{name}
|
|
|
170140 |
|
|
|
170140 |
%post -n libudisks2 -p /sbin/ldconfig
|
|
|
170140 |
|
|
|
170140 |
%postun -n libudisks2 -p /sbin/ldconfig
|
|
|
170140 |
|
|
|
170140 |
%files -f %{name}.lang
|
|
|
170140 |
%doc README AUTHORS NEWS COPYING HACKING
|
|
|
170140 |
|
|
|
170140 |
%dir %{_sysconfdir}/udisks2
|
|
|
170140 |
|
|
|
170140 |
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
|
|
|
170140 |
%{_datadir}/bash-completion/completions/udisksctl
|
|
|
170140 |
%{_prefix}/lib/systemd/system/udisks2.service
|
|
|
170140 |
%{_prefix}/lib/udev/rules.d/80-udisks2.rules
|
|
|
170140 |
%{_sbindir}/umount.udisks2
|
|
|
170140 |
|
|
|
170140 |
%dir %{_prefix}/lib/udisks2
|
|
|
170140 |
%{_prefix}/lib/udisks2/udisksd
|
|
|
170140 |
|
|
|
170140 |
%{_bindir}/udisksctl
|
|
|
170140 |
|
|
|
170140 |
%{_mandir}/man1/*
|
|
|
170140 |
%{_mandir}/man8/*
|
|
|
170140 |
|
|
|
170140 |
%{_datadir}/polkit-1/actions/org.freedesktop.udisks2.policy
|
|
|
170140 |
%{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
|
|
|
170140 |
|
|
|
170140 |
# Permissions for local state data are 0700 to avoid leaking information
|
|
|
170140 |
# about e.g. mounts to unprivileged users
|
|
|
170140 |
%attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
|
|
|
170140 |
|
|
|
170140 |
%files -n libudisks2
|
|
|
170140 |
%{_libdir}/libudisks2.so.*
|
|
|
170140 |
%{_libdir}/girepository-1.0/UDisks-2.0.typelib
|
|
|
170140 |
|
|
|
170140 |
%files -n libudisks2-devel
|
|
|
170140 |
%{_libdir}/libudisks2.so
|
|
|
170140 |
%dir %{_includedir}/udisks2
|
|
|
170140 |
%dir %{_includedir}/udisks2/udisks
|
|
|
170140 |
%{_includedir}/udisks2/udisks/*.h
|
|
|
170140 |
%{_datadir}/gir-1.0/UDisks-2.0.gir
|
|
|
170140 |
%dir %{_datadir}/gtk-doc/html/udisks2
|
|
|
170140 |
%{_datadir}/gtk-doc/html/udisks2/*
|
|
|
170140 |
%{_libdir}/pkgconfig/udisks2.pc
|
|
|
170140 |
|
|
|
170140 |
# Note: please don't forget the %{?dist} in the changelog. Thanks
|
|
|
170140 |
%changelog
|
|
|
e2e8e9 |
* Wed May 13 2015 Tomas Smetana <tsmetana@redhat.com> - 2.1.2-6
|
|
|
e2e8e9 |
- Rename the Intel SW RAID (#1175225)
|
|
|
e2e8e9 |
- Resolves: rhbz#1175225
|
|
|
e2e8e9 |
|
|
|
5137f5 |
* Wed Feb 26 2014 Jan Safranek <jsafrane@redhat.com> - 2.1.2-5
|
|
|
5137f5 |
- Fix CVE-2014-0004: stack-based buffer overflow when handling long path names
|
|
|
5137f5 |
(#1070144)
|
|
|
5137f5 |
|
|
|
5137f5 |
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.1.2-4
|
|
|
5137f5 |
- Mass rebuild 2014-01-24
|
|
|
5137f5 |
|
|
|
5137f5 |
* Wed Jan 22 2014 Tomas Bzatek <tbzatek@redhat.com> - 2.1.2-3%{?dist}
|
|
|
5137f5 |
- Fix upgrade path from old udisks
|
|
|
5137f5 |
|
|
|
5137f5 |
* Wed Jan 22 2014 Tomas Bzatek <tbzatek@redhat.com> - 2.1.2-2%{?dist}
|
|
|
5137f5 |
- Fix crash when loop-deleting non-loop device (#1036076)
|
|
|
5137f5 |
- Fix some thread safety issues (#1036099)
|
|
|
5137f5 |
- Fix lingering mount after CD-ROM drive is ejected (#835120)
|
|
|
5137f5 |
- Fix some uninitializes variables (#1056580)
|
|
|
5137f5 |
|
|
|
5137f5 |
* Thu Jan 16 2014 Tomas Bzatek <tbzatek@redhat.com> - 2.1.2-1%{?dist}
|
|
|
5137f5 |
- Update to 2.1.2
|
|
|
5137f5 |
|
|
|
5137f5 |
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.1.0-5
|
|
|
5137f5 |
- Mass rebuild 2013-12-27
|
|
|
5137f5 |
|
|
|
170140 |
* Thu Jul 25 2013 Tomas Bzatek <tbzatek@redhat.com> - 2.1.0-4%{?dist}
|
|
|
170140 |
- Add a man page for umount.udisks2 (#948926)
|
|
|
170140 |
|
|
|
170140 |
* Tue Jul 02 2013 Tomas Bzatek <tbzatek@redhat.com> - 2.1.0-3%{?dist}
|
|
|
170140 |
- Sync with recent upstream changes
|
|
|
170140 |
- Add Provides/Obsoletes udisks (#976796)
|
|
|
170140 |
|
|
|
170140 |
* Thu Mar 28 2013 Tomas Bzatek <tbzatek@redhat.com> - 2.1.0-2%{?dist}
|
|
|
170140 |
- Fix firewire drives identification (#909010)
|
|
|
170140 |
|
|
|
170140 |
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 2.1.0-1
|
|
|
170140 |
- Update to 2.1.0
|
|
|
170140 |
|
|
|
170140 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.91-3
|
|
|
170140 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
170140 |
|
|
|
170140 |
* Tue Jan 22 2013 Matthias Clasen <mclasen@redhat.com> - 2.0.91-2%{?dist}
|
|
|
170140 |
- Hardened build
|
|
|
170140 |
|
|
|
170140 |
* Mon Jan 07 2013 David Zeuthen <davidz@redhat.com> - 2.0.91-1%{?dist}
|
|
|
170140 |
- Update to release 2.0.91
|
|
|
170140 |
|
|
|
170140 |
* Tue Dec 18 2012 David Zeuthen <davidz@redhat.com> - 2.0.90-1%{?dist}
|
|
|
170140 |
- Update to release 2.0.90
|
|
|
170140 |
|
|
|
170140 |
* Fri Oct 02 2012 David Zeuthen <davidz@redhat.com> - 2.0.0-1%{?dist}
|
|
|
170140 |
- Update to release 2.0.0
|
|
|
170140 |
|
|
|
170140 |
* Fri Jul 27 2012 David Zeuthen <davidz@redhat.com> - 1.99.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.99.0
|
|
|
170140 |
|
|
|
170140 |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.98.0-2
|
|
|
170140 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
170140 |
|
|
|
170140 |
* Thu Jun 07 2012 David Zeuthen <davidz@redhat.com> - 1.98.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.98.0
|
|
|
170140 |
|
|
|
170140 |
* Mon Jun 04 2012 Kay Sievers <kay@redhat.com> - 1.97.0-4
|
|
|
170140 |
- rebuild for libudev1
|
|
|
170140 |
|
|
|
170140 |
* Tue May 22 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.97.0-3
|
|
|
170140 |
- Add upstream patch to fix issue with rootfs being on a bound mount
|
|
|
170140 |
|
|
|
170140 |
* Fri May 18 2012 Matthias Clasen <mclasen@redhat.com> - 1.97.0-2%{?dist}
|
|
|
170140 |
- Add a Requires for eject (#810882)
|
|
|
170140 |
|
|
|
170140 |
* Wed May 09 2012 David Zeuthen <davidz@redhat.com> - 1.97.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.97.0
|
|
|
170140 |
|
|
|
170140 |
* Thu May 03 2012 David Zeuthen <davidz@redhat.com> - 1.96.0-2%{?dist}
|
|
|
170140 |
- Include patch so Fedora Live media is shown
|
|
|
170140 |
|
|
|
170140 |
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.96.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.96.0
|
|
|
170140 |
|
|
|
170140 |
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.95.0-3%{?dist}
|
|
|
170140 |
- BR: gnome-common
|
|
|
170140 |
|
|
|
170140 |
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.95.0-2%{?dist}
|
|
|
170140 |
- Make daemon actually link with libsystemd-login
|
|
|
170140 |
|
|
|
170140 |
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.95.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.95.0
|
|
|
170140 |
|
|
|
170140 |
* Tue Apr 10 2012 David Zeuthen <davidz@redhat.com> - 1.94.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.94.0
|
|
|
170140 |
|
|
|
170140 |
* Tue Apr 03 2012 David Zeuthen <davidz@redhat.com> - 1.93.0-2%{?dist}
|
|
|
170140 |
- Don't inadvertently unmount large block devices (fdo #48155)
|
|
|
170140 |
|
|
|
170140 |
* Mon Mar 05 2012 David Zeuthen <davidz@redhat.com> - 1.93.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.93.0
|
|
|
170140 |
|
|
|
170140 |
* Thu Feb 23 2012 David Zeuthen <davidz@redhat.com> - 1.92.0-2%{?dist}
|
|
|
170140 |
- Fix build
|
|
|
170140 |
|
|
|
170140 |
* Thu Feb 23 2012 David Zeuthen <davidz@redhat.com> - 1.92.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.92.0
|
|
|
170140 |
|
|
|
170140 |
* Wed Feb 22 2012 David Zeuthen <davidz@redhat.com> - 1.91.0-2%{?dist}
|
|
|
170140 |
- Avoid using $XDG_RUNTIME_DIR/media for now
|
|
|
170140 |
|
|
|
170140 |
* Mon Feb 06 2012 David Zeuthen <davidz@redhat.com> - 1.91.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.91.0
|
|
|
170140 |
|
|
|
170140 |
* Fri Jan 21 2012 David Zeuthen <davidz@redhat.com> - 1.90.0-3%{?dist}
|
|
|
170140 |
- Manually set PATH, if not set
|
|
|
170140 |
|
|
|
170140 |
* Fri Jan 20 2012 David Zeuthen <davidz@redhat.com> - 1.90.0-2%{?dist}
|
|
|
170140 |
- Rebuild
|
|
|
170140 |
|
|
|
170140 |
* Fri Jan 20 2012 David Zeuthen <davidz@redhat.com> - 1.90.0-1%{?dist}
|
|
|
170140 |
- Update to release 1.90.0
|
|
|
170140 |
|
|
|
170140 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.90.0-0.git20111128.1
|
|
|
170140 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
170140 |
|
|
|
170140 |
* Mon Nov 28 2011 David Zeuthen <davidz@redhat.com> - 1.90.0-0.git20111128%{?dist}
|
|
|
170140 |
- Updated for review comments (#756046)
|
|
|
170140 |
|
|
|
170140 |
* Mon Nov 22 2011 David Zeuthen <davidz@redhat.com> - 1.90.0-0.git20111122%{?dist}
|
|
|
170140 |
- Initial packaging of udisks2
|