|
|
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
|
|
|
170140 |
Version: 2.1.0
|
|
|
170140 |
Release: 4%{?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 mlabel
|
|
|
170140 |
Requires: mtools
|
|
|
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)
|
|
|
170140 |
Provides: udisks = %{version}-%{release}
|
|
|
170140 |
Obsoletes: udisks < %{version}-%{release}
|
|
|
170140 |
|
|
|
170140 |
# Some patch touches Makefile.am
|
|
|
170140 |
BuildRequires: automake autoconf
|
|
|
170140 |
BuildRequires: gnome-common
|
|
|
170140 |
|
|
|
170140 |
|
|
|
170140 |
# Cannot mount external firewire hard drive or usb thumb drive as normal user, root required
|
|
|
170140 |
# https://bugzilla.redhat.com/show_bug.cgi?id=909010
|
|
|
170140 |
Patch0: udisks-2.1.1-firewire-ident.patch
|
|
|
170140 |
|
|
|
170140 |
# from upstream
|
|
|
170140 |
Patch1: udisks-2.1.1-chromeos-partition-types.patch
|
|
|
170140 |
Patch2: udisks-2.1.1-desc-part-table-subtype.patch
|
|
|
170140 |
Patch3: udisks-2.1.1-lexar-usb3-reader.patch
|
|
|
170140 |
Patch4: udisks-2.1.1-logind-test.patch
|
|
|
170140 |
Patch5: udisks-2.1.1-transcend-usb3-reader.patch
|
|
|
170140 |
Patch6: udisks-2.1.1-wd-smartware-hiding.patch
|
|
|
170140 |
Patch7: udisks-2.1.1-zfs-generic.patch
|
|
|
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 |
|
|
|
170140 |
|
|
|
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 |
%patch0 -p1 -b .firewire-ident
|
|
|
170140 |
%patch1 -p1 -b .chromeos-partition-types
|
|
|
170140 |
%patch2 -p1 -b .desc-part-table-subtype
|
|
|
170140 |
%patch3 -p1 -b .lexar-usb3-reader
|
|
|
170140 |
%patch4 -p1 -b .logind-test
|
|
|
170140 |
%patch5 -p1 -b .transcend-usb3-reader
|
|
|
170140 |
%patch6 -p1 -b .wd-smartware-hiding
|
|
|
170140 |
%patch7 -p1 -b .zfs-generic
|
|
|
170140 |
%patch8 -p1 -b .umount.udisks2-manpage
|
|
|
170140 |
|
|
|
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
|
|
|
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
|