2015-03-06 09:04:26 +00:00
|
|
|
%global glib2_version 2.36
|
|
|
|
%global gobject_introspection_version 1.30.0
|
|
|
|
%global polkit_version 0.102
|
|
|
|
%global systemd_version 209
|
|
|
|
%global libatasmart_version 0.17
|
|
|
|
%global dbus_version 1.4.0
|
2011-11-28 21:01:01 +00:00
|
|
|
|
|
|
|
Summary: Disk Manager
|
|
|
|
Name: udisks2
|
2015-03-06 08:53:44 +00:00
|
|
|
Version: 2.1.5
|
2015-04-23 08:45:15 +00:00
|
|
|
Release: 3%{?dist}
|
2011-11-28 21:01:01 +00:00
|
|
|
License: GPLv2+
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
URL: http://www.freedesktop.org/wiki/Software/udisks
|
2012-01-20 22:05:30 +00:00
|
|
|
Source0: http://udisks.freedesktop.org/releases/udisks-%{version}.tar.bz2
|
2012-05-22 11:11:58 +00:00
|
|
|
|
2015-03-06 09:04:26 +00:00
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0) >= %{glib2_version}
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0) >= %{gobject_introspection_version}
|
|
|
|
BuildRequires: pkgconfig(gudev-1.0) >= %{systemd_version}
|
|
|
|
BuildRequires: pkgconfig(libatasmart) >= %{libatasmart_version}
|
|
|
|
BuildRequires: pkgconfig(libsystemd) >= %{systemd_version}
|
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1) >= %{polkit_version}
|
2012-04-30 18:40:40 +00:00
|
|
|
BuildRequires: libacl-devel
|
2015-02-02 15:23:09 +00:00
|
|
|
BuildRequires: chrpath
|
2015-03-06 09:04:26 +00:00
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: intltool
|
2012-04-30 18:40:40 +00:00
|
|
|
|
2015-04-22 08:58:13 +00:00
|
|
|
# For systemd scriptlet snippets.
|
|
|
|
Requires(post): systemd
|
|
|
|
Requires(preun): systemd
|
|
|
|
Requires(postun): systemd
|
2011-11-28 21:01:01 +00:00
|
|
|
# needed to pull in the system bus daemon
|
|
|
|
Requires: dbus >= %{dbus_version}
|
|
|
|
# needed to pull in the udev daemon
|
2012-06-04 22:55:25 +00:00
|
|
|
Requires: systemd >= %{systemd_version}
|
2011-11-28 21:01:01 +00:00
|
|
|
# we need at least this version for bugfixes / features etc.
|
|
|
|
Requires: libatasmart >= %{libatasmart_version}
|
|
|
|
# for mount, umount, mkswap
|
|
|
|
Requires: util-linux
|
|
|
|
# for mkfs.ext3, mkfs.ext3, e2label
|
|
|
|
Requires: e2fsprogs
|
|
|
|
# for mkfs.xfs, xfs_admin
|
|
|
|
Requires: xfsprogs
|
|
|
|
# for mkfs.vfat
|
|
|
|
Requires: dosfstools
|
|
|
|
# for partitioning
|
|
|
|
Requires: parted
|
|
|
|
Requires: gdisk
|
|
|
|
# for LUKS devices
|
|
|
|
Requires: cryptsetup-luks
|
2012-12-18 20:56:55 +00:00
|
|
|
# for ejecting removable disks
|
2012-05-19 00:51:57 +00:00
|
|
|
Requires: eject
|
2012-04-30 18:40:40 +00:00
|
|
|
|
2012-12-18 20:56:55 +00:00
|
|
|
# for MD-RAID
|
|
|
|
Requires: mdadm
|
|
|
|
|
2015-03-06 09:45:43 +00:00
|
|
|
Requires: libudisks2%{?_isa} = %{version}-%{release}
|
2012-07-27 17:06:54 +00:00
|
|
|
|
2012-04-30 18:40:40 +00:00
|
|
|
# for mkntfs (not available on rhel or on ppc/ppc64)
|
|
|
|
%if ! 0%{?rhel}
|
|
|
|
%ifnarch ppc ppc64
|
|
|
|
Requires: ntfsprogs
|
|
|
|
%endif
|
|
|
|
%endif
|
2011-11-28 21:01:01 +00:00
|
|
|
|
|
|
|
# for /proc/self/mountinfo, only available in 2.6.26 or higher
|
|
|
|
Conflicts: kernel < 2.6.26
|
|
|
|
|
2013-03-28 12:57:33 +00:00
|
|
|
|
2011-11-28 21:01:01 +00:00
|
|
|
%description
|
|
|
|
udisks provides a daemon, D-Bus API and command line tools for
|
|
|
|
managing disks and storage devices. This package is for the udisks 2.x
|
|
|
|
series.
|
|
|
|
|
|
|
|
%package -n libudisks2
|
|
|
|
Summary: Dynamic library to access the udisks daemon
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv2+
|
|
|
|
|
|
|
|
%description -n libudisks2
|
|
|
|
This package contains the dynamic library libudisks2, which provides
|
|
|
|
access to the udisks daemon. This package is for the udisks 2.x
|
|
|
|
series.
|
|
|
|
|
|
|
|
%package -n libudisks2-devel
|
2012-06-04 22:55:25 +00:00
|
|
|
Summary: Development files for libudisks2
|
2011-11-28 21:01:01 +00:00
|
|
|
Group: Development/Libraries
|
2015-03-06 09:45:43 +00:00
|
|
|
Requires: libudisks2%{?_isa} = %{version}-%{release}
|
2011-11-28 21:01:01 +00:00
|
|
|
License: LGPLv2+
|
|
|
|
|
|
|
|
%description -n libudisks2-devel
|
|
|
|
This package contains the development files for the library
|
|
|
|
libudisks2, a dynamic library, which provides access to the udisks
|
|
|
|
daemon. This package is for the udisks 2.x series.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n udisks-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --enable-gtk-doc
|
2015-02-02 15:23:09 +00:00
|
|
|
# the following rpath workaround causes build breakage due to wrong library path while performing GIR introspection dump
|
|
|
|
# sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
# sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
2015-03-06 09:34:43 +00:00
|
|
|
make %{?_smp_mflags}
|
2011-11-28 21:01:01 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|
|
|
rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
|
|
|
|
|
2015-02-02 15:23:09 +00:00
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_sbindir}/umount.udisks2
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/udisksctl
|
|
|
|
chrpath --delete $RPM_BUILD_ROOT%{_prefix}/lib/udisks2/udisksd
|
|
|
|
|
2012-02-06 19:54:25 +00:00
|
|
|
%find_lang %{name}
|
|
|
|
|
2015-04-22 08:58:13 +00:00
|
|
|
|
2015-04-23 08:45:15 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
2015-04-22 08:58:13 +00:00
|
|
|
%post
|
|
|
|
%systemd_post udisks2.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun udisks2.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%systemd_postun_with_restart udisks2.service
|
|
|
|
|
2011-11-28 21:01:01 +00:00
|
|
|
%post -n libudisks2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libudisks2 -p /sbin/ldconfig
|
|
|
|
|
2015-04-22 08:58:13 +00:00
|
|
|
|
2012-02-06 19:54:25 +00:00
|
|
|
%files -f %{name}.lang
|
2015-03-06 08:54:13 +00:00
|
|
|
%doc README AUTHORS NEWS HACKING
|
2012-07-27 17:06:54 +00:00
|
|
|
%dir %{_sysconfdir}/udisks2
|
2011-11-28 21:01:01 +00:00
|
|
|
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
|
2012-10-02 20:34:42 +00:00
|
|
|
%{_datadir}/bash-completion/completions/udisksctl
|
2012-02-23 18:40:07 +00:00
|
|
|
%{_prefix}/lib/systemd/system/udisks2.service
|
|
|
|
%{_prefix}/lib/udev/rules.d/80-udisks2.rules
|
|
|
|
%{_sbindir}/umount.udisks2
|
|
|
|
%dir %{_prefix}/lib/udisks2
|
|
|
|
%{_prefix}/lib/udisks2/udisksd
|
2011-11-28 21:01:01 +00:00
|
|
|
%{_bindir}/udisksctl
|
2015-03-06 08:56:05 +00:00
|
|
|
%{_mandir}/man1/udisksctl.1*
|
|
|
|
%{_mandir}/man8/udisks.8*
|
|
|
|
%{_mandir}/man8/udisksd.8*
|
|
|
|
%{_mandir}/man8/umount.udisks2.8*
|
2011-11-28 21:01:01 +00:00
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.udisks2.policy
|
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
|
|
|
|
# Permissions for local state data are 0700 to avoid leaking information
|
|
|
|
# about e.g. mounts to unprivileged users
|
|
|
|
%attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2
|
|
|
|
|
|
|
|
%files -n libudisks2
|
2015-04-23 09:14:31 +00:00
|
|
|
# The COPYING file contains both the GPL (daemon and tools) and LGPL (library
|
|
|
|
# and development headers).
|
|
|
|
%license COPYING
|
2011-11-28 21:01:01 +00:00
|
|
|
%{_libdir}/libudisks2.so.*
|
|
|
|
%{_libdir}/girepository-1.0/UDisks-2.0.typelib
|
|
|
|
|
|
|
|
%files -n libudisks2-devel
|
|
|
|
%{_libdir}/libudisks2.so
|
|
|
|
%dir %{_includedir}/udisks2
|
|
|
|
%dir %{_includedir}/udisks2/udisks
|
|
|
|
%{_includedir}/udisks2/udisks/*.h
|
|
|
|
%{_datadir}/gir-1.0/UDisks-2.0.gir
|
|
|
|
%dir %{_datadir}/gtk-doc/html/udisks2
|
|
|
|
%{_datadir}/gtk-doc/html/udisks2/*
|
|
|
|
%{_libdir}/pkgconfig/udisks2.pc
|
|
|
|
|
|
|
|
%changelog
|
2015-04-23 08:45:15 +00:00
|
|
|
* Thu Apr 23 2015 David King <amigadave@amigadave.com> - 2.1.5-3
|
|
|
|
- Call make check during check phase
|
2015-04-23 09:14:31 +00:00
|
|
|
- Move license to libudisks2 subpackage
|
2015-04-23 08:45:15 +00:00
|
|
|
|
2015-04-22 08:58:13 +00:00
|
|
|
* Wed Apr 22 2015 David King <amigadave@amigadave.com> - 2.1.5-2
|
|
|
|
- Use systemd scriptlet snippets (#857409)
|
|
|
|
|
2015-03-06 08:53:44 +00:00
|
|
|
* Fri Mar 06 2015 David King <amigadave@amigadave.com> - 2.1.5-1
|
|
|
|
- Update to 2.1.5
|
2015-03-06 08:54:13 +00:00
|
|
|
- Use license macro for COPYING
|
2015-03-06 08:56:05 +00:00
|
|
|
- Update man page globs in file section
|
2015-03-06 09:04:26 +00:00
|
|
|
- Use pkgconfig for BuildRequires
|
2015-03-06 09:05:31 +00:00
|
|
|
- Drop obsolete hardened workaround
|
2015-03-06 09:34:43 +00:00
|
|
|
- Enable multiple make jobs when building
|
2015-03-06 09:45:43 +00:00
|
|
|
- Tighten subpackage dependencies
|
2015-03-06 08:53:44 +00:00
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Fri Jan 30 2015 Tomas Bzatek <tbzatek@redhat.com> - 2.1.4-1
|
2015-01-30 16:18:06 +00:00
|
|
|
- Update to 2.1.4
|
|
|
|
|
2014-08-18 06:44:00 +00:00
|
|
|
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-07-22 18:34:06 +00:00
|
|
|
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 2.1.3-3
|
|
|
|
- Rebuilt for gobject-introspection 1.41.4
|
|
|
|
|
2014-06-08 02:32:44 +00:00
|
|
|
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Thu Mar 27 2014 Tomas Bzatek <tbzatek@redhat.com> - 2.1.3-1
|
2014-03-27 13:51:46 +00:00
|
|
|
- Update to 2.1.3
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Mar 10 2014 Jan Safranek <jsafrane@redhat.com>- 2.1.2-2
|
2014-03-10 12:55:51 +00:00
|
|
|
- Fix CVE-2014-0004: stack-based buffer overflow when handling long path names
|
|
|
|
(#1074459)
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Wed Jan 15 2014 Tomas Bzatek <tbzatek@redhat.com> - 2.1.2-1
|
2014-01-15 15:40:59 +00:00
|
|
|
- Update to 2.1.2
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Wed Aug 21 2013 Tomas Bzatek <tbzatek@redhat.com> - 2.1.1-1
|
2013-08-21 12:43:17 +00:00
|
|
|
- Update to 2.1.1
|
|
|
|
|
2013-08-04 05:22:59 +00:00
|
|
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Thu Mar 28 2013 Tomas Bzatek <tbzatek@redhat.com> - 2.1.0-2
|
2013-03-28 12:57:33 +00:00
|
|
|
- Fix firewire drives identification (#909010)
|
|
|
|
|
2013-03-20 21:55:00 +00:00
|
|
|
* Wed Mar 20 2013 Kalev Lember <kalevlember@gmail.com> - 2.1.0-1
|
|
|
|
- Update to 2.1.0
|
|
|
|
|
2013-02-15 02:22:00 +00:00
|
|
|
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.91-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Tue Jan 22 2013 Matthias Clasen <mclasen@redhat.com> - 2.0.91-2
|
2013-01-22 19:17:36 +00:00
|
|
|
- Hardened build
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Jan 07 2013 David Zeuthen <davidz@redhat.com> - 2.0.91-1
|
2013-01-07 16:36:42 +00:00
|
|
|
- Update to release 2.0.91
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Tue Dec 18 2012 David Zeuthen <davidz@redhat.com> - 2.0.90-1
|
2012-12-18 20:56:55 +00:00
|
|
|
- Update to release 2.0.90
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Tue Oct 02 2012 David Zeuthen <davidz@redhat.com> - 2.0.0-1
|
2012-10-02 20:34:42 +00:00
|
|
|
- Update to release 2.0.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Fri Jul 27 2012 David Zeuthen <davidz@redhat.com> - 1.99.0-1
|
2012-07-27 17:06:54 +00:00
|
|
|
- Update to release 1.99.0
|
|
|
|
|
2012-07-22 01:24:09 +00:00
|
|
|
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.98.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Thu Jun 07 2012 David Zeuthen <davidz@redhat.com> - 1.98.0-1
|
2012-06-07 18:44:11 +00:00
|
|
|
- Update to release 1.98.0
|
|
|
|
|
2012-06-04 22:55:25 +00:00
|
|
|
* Mon Jun 04 2012 Kay Sievers <kay@redhat.com> - 1.97.0-4
|
|
|
|
- rebuild for libudev1
|
|
|
|
|
2012-05-22 11:11:58 +00:00
|
|
|
* Tue May 22 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 1.97.0-3
|
|
|
|
- Add upstream patch to fix issue with rootfs being on a bound mount
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Fri May 18 2012 Matthias Clasen <mclasen@redhat.com> - 1.97.0-2
|
2012-05-19 00:51:57 +00:00
|
|
|
- Add a Requires for eject (#810882)
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Wed May 09 2012 David Zeuthen <davidz@redhat.com> - 1.97.0-1
|
2012-05-09 18:04:52 +00:00
|
|
|
- Update to release 1.97.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Thu May 03 2012 David Zeuthen <davidz@redhat.com> - 1.96.0-2
|
2012-05-03 14:46:10 +00:00
|
|
|
- Include patch so Fedora Live media is shown
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.96.0-1
|
2012-04-30 19:24:52 +00:00
|
|
|
- Update to release 1.96.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.95.0-3
|
2012-04-30 19:09:56 +00:00
|
|
|
- BR: gnome-common
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.95.0-2
|
2012-04-30 19:01:49 +00:00
|
|
|
- Make daemon actually link with libsystemd-login
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Apr 30 2012 David Zeuthen <davidz@redhat.com> - 1.95.0-1
|
2012-04-30 18:40:40 +00:00
|
|
|
- Update to release 1.95.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Tue Apr 10 2012 David Zeuthen <davidz@redhat.com> - 1.94.0-1
|
2012-04-10 19:46:56 +00:00
|
|
|
- Update to release 1.94.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Tue Apr 03 2012 David Zeuthen <davidz@redhat.com> - 1.93.0-2
|
2012-04-03 15:28:47 +00:00
|
|
|
- Don't inadvertently unmount large block devices (fdo #48155)
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Mar 05 2012 David Zeuthen <davidz@redhat.com> - 1.93.0-1
|
2012-03-05 17:32:15 +00:00
|
|
|
- Update to release 1.93.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Thu Feb 23 2012 David Zeuthen <davidz@redhat.com> - 1.92.0-2
|
2012-02-23 18:49:50 +00:00
|
|
|
- Fix build
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Thu Feb 23 2012 David Zeuthen <davidz@redhat.com> - 1.92.0-1
|
2012-02-23 18:40:07 +00:00
|
|
|
- Update to release 1.92.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Wed Feb 22 2012 David Zeuthen <davidz@redhat.com> - 1.91.0-2
|
2012-02-22 15:38:02 +00:00
|
|
|
- Avoid using $XDG_RUNTIME_DIR/media for now
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Feb 06 2012 David Zeuthen <davidz@redhat.com> - 1.91.0-1
|
2012-02-06 19:54:25 +00:00
|
|
|
- Update to release 1.91.0
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Sat Jan 21 2012 David Zeuthen <davidz@redhat.com> - 1.90.0-3
|
2012-01-21 21:32:00 +00:00
|
|
|
- Manually set PATH, if not set
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Fri Jan 20 2012 David Zeuthen <davidz@redhat.com> - 1.90.0-2
|
2012-01-20 22:05:30 +00:00
|
|
|
- Rebuild
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Fri Jan 20 2012 David Zeuthen <davidz@redhat.com> - 1.90.0-1
|
2012-01-20 21:57:19 +00:00
|
|
|
- Update to release 1.90.0
|
|
|
|
|
2012-01-14 07:26:30 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.90.0-0.git20111128.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Mon Nov 28 2011 David Zeuthen <davidz@redhat.com> - 1.90.0-0.git20111128
|
2011-11-28 21:01:01 +00:00
|
|
|
- Updated for review comments (#756046)
|
|
|
|
|
2015-04-22 09:21:24 +00:00
|
|
|
* Tue Nov 22 2011 David Zeuthen <davidz@redhat.com> - 1.90.0-0.git20111122
|
2011-11-28 21:01:01 +00:00
|
|
|
- Initial packaging of udisks2
|