2012-02-28 08:35:04 +00:00
|
|
|
#
|
|
|
|
# spec file for package udisks2
|
|
|
|
#
|
2017-09-11 12:32:35 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-02-28 08:35:04 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-04-11 09:59:56 +00:00
|
|
|
|
2017-09-11 12:32:35 +00:00
|
|
|
%{!?_udevrulesdir: %global _udevrulesdir %(pkg-config --variable=udevdir udev)/rules.d}
|
|
|
|
|
2015-03-10 12:47:26 +00:00
|
|
|
Name: udisks2
|
2017-09-11 12:32:35 +00:00
|
|
|
Summary: Disk Manager
|
2012-04-11 09:59:56 +00:00
|
|
|
License: GPL-2.0+
|
2017-09-11 12:32:35 +00:00
|
|
|
Group: System Environment/Daemons
|
|
|
|
Version: 2.6.5
|
|
|
|
Release: 0
|
|
|
|
Url: https://github.com/storaged-project/udisks
|
|
|
|
Source0: https://github.com/storaged-project/udisks/releases/download/udisks-%{version}/udisks-%{version}.tar.bz2
|
|
|
|
|
|
|
|
# Needed to build the man pages
|
|
|
|
BuildRequires: chrpath
|
2012-02-28 08:35:04 +00:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2017-09-11 12:32:35 +00:00
|
|
|
BuildRequires: gnome-common
|
|
|
|
BuildRequires: gobject-introspection-devel
|
|
|
|
BuildRequires: gtk-doc
|
2012-02-28 08:35:04 +00:00
|
|
|
BuildRequires: intltool
|
2012-05-23 22:21:10 +00:00
|
|
|
BuildRequires: libacl-devel
|
2017-09-11 12:32:35 +00:00
|
|
|
BuildRequires: libgudev-1_0-devel
|
2012-10-10 07:14:49 +00:00
|
|
|
BuildRequires: xsltproc
|
2017-09-11 12:32:35 +00:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.31.13
|
2012-02-28 08:35:04 +00:00
|
|
|
BuildRequires: pkgconfig(libatasmart) >= 0.17
|
2017-09-11 12:32:35 +00:00
|
|
|
BuildRequires: pkgconfig(polkit-agent-1) >= 0.92
|
|
|
|
BuildRequires: pkgconfig(polkit-gobject-1) >= 0.92
|
2012-02-28 08:35:04 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
|
|
|
BuildRequires: pkgconfig(udev)
|
2017-09-11 12:32:35 +00:00
|
|
|
|
|
|
|
# Needed to pull in the system bus daemon
|
|
|
|
Requires: dbus-1
|
|
|
|
# We need at least this version for bugfixes/features etc.
|
|
|
|
Requires: libatasmart4
|
|
|
|
# For mount, umount, mkswap
|
|
|
|
Requires: util-linux
|
2013-01-06 21:36:23 +00:00
|
|
|
# sgdisk is called by udisksd to modify the partition tables... thus a needed tool.
|
|
|
|
Requires: gptfdisk
|
2017-09-11 12:32:35 +00:00
|
|
|
# For LUKS devices
|
|
|
|
Requires: cryptsetup
|
|
|
|
# For ejecting removable disks
|
|
|
|
Requires: eject
|
|
|
|
|
|
|
|
Requires: libudisks2-0 = %{version}
|
2016-03-07 09:54:39 +00:00
|
|
|
Recommends: %{name}-lang
|
2017-09-11 12:32:35 +00:00
|
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-28 08:35:04 +00:00
|
|
|
%{?systemd_requires}
|
2017-09-11 12:32:35 +00:00
|
|
|
|
|
|
|
# For /proc/self/mountinfo, only available in 2.6.26 or higher
|
|
|
|
Conflicts: kernel < 2.6.26
|
|
|
|
|
2012-02-28 08:35:04 +00:00
|
|
|
# Upstream First - Policy:
|
|
|
|
# Never add any patches to this package without the upstream commit id
|
|
|
|
# in the patch. Any patches added here without a very good reason to make
|
|
|
|
# an exception will be silently removed with the next version update.
|
|
|
|
|
|
|
|
%description
|
2017-09-11 12:32:35 +00:00
|
|
|
The Udisks project provides a daemon, tools and libraries to access and
|
|
|
|
manipulate disks, storage devices and technologies.
|
2012-02-28 08:35:04 +00:00
|
|
|
|
|
|
|
%package -n libudisks2-0
|
2017-09-11 12:32:35 +00:00
|
|
|
Summary: Dynamic library to access the udisksd daemon
|
|
|
|
License: LGPL-2.1+
|
2012-02-28 08:35:04 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
Recommends: %{name} = %{version}
|
|
|
|
|
|
|
|
%description -n libudisks2-0
|
2017-09-11 12:32:35 +00:00
|
|
|
This package contains the dynamic library, which provides
|
|
|
|
access to the udisksd daemon.
|
2012-02-28 08:35:04 +00:00
|
|
|
|
|
|
|
%package -n typelib-1_0-UDisks-2_0
|
|
|
|
Summary: UDisks Client Library, version 2 -- Introspection bindings
|
2017-09-11 12:32:35 +00:00
|
|
|
License: LGPL-2.1+
|
2012-02-28 08:35:04 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-UDisks-2_0
|
|
|
|
udisks provides a daemon, D-Bus API and command line tools
|
|
|
|
for managing disks and storage devices.
|
|
|
|
|
|
|
|
This package provides the GObject Introspection bindings for
|
|
|
|
the UDisks client library.
|
|
|
|
|
|
|
|
%package devel
|
2017-09-11 12:32:35 +00:00
|
|
|
Summary: Development files for lib%{name}
|
|
|
|
License: LGPL-2.1+
|
2012-02-28 08:35:04 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libudisks2-0 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2017-09-11 12:32:35 +00:00
|
|
|
This package contains the development files for the library lib%{name}, a
|
|
|
|
dynamic library, which provides access to the udisksd daemon.
|
2012-02-28 08:35:04 +00:00
|
|
|
|
|
|
|
%lang_package
|
2015-03-10 12:47:26 +00:00
|
|
|
|
2012-02-28 08:35:04 +00:00
|
|
|
%prep
|
2017-09-11 12:32:35 +00:00
|
|
|
%setup -q -n udisks-%{version}
|
2012-02-28 08:35:04 +00:00
|
|
|
|
|
|
|
%build
|
2017-09-11 12:32:35 +00:00
|
|
|
%configure \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-gtk-doc
|
2012-02-28 08:35:04 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2017-09-11 12:32:35 +00:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
find %{buildroot} -name \*.la -o -name \*.a | xargs rm
|
|
|
|
|
|
|
|
chrpath --delete %{buildroot}/%{_sbindir}/umount.udisks2
|
|
|
|
chrpath --delete %{buildroot}/%{_bindir}/udisksctl
|
|
|
|
chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd
|
|
|
|
|
|
|
|
%find_lang udisks2
|
|
|
|
|
|
|
|
#we don't want to load storaged modules
|
|
|
|
rm -r %{buildroot}/etc/udisks2
|
2012-02-28 08:35:04 +00:00
|
|
|
|
|
|
|
%pre
|
|
|
|
%service_add_pre udisks2.service
|
|
|
|
|
2017-09-11 12:32:35 +00:00
|
|
|
%post -n %{name}
|
|
|
|
%{?udev_rules_update:%udev_rules_update}
|
2012-02-28 08:35:04 +00:00
|
|
|
%service_add_post udisks2.service
|
|
|
|
|
2017-09-11 12:32:35 +00:00
|
|
|
%post -n libudisks2-0 -p /sbin/ldconfig
|
|
|
|
|
2012-02-28 08:35:04 +00:00
|
|
|
%preun
|
|
|
|
%service_del_preun udisks2.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun udisks2.service
|
|
|
|
|
|
|
|
%postun -n libudisks2-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
2017-09-11 12:32:35 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc README.md AUTHORS NEWS HACKING COPYING
|
|
|
|
|
|
|
|
%dir %{_libexecdir}/udisks2
|
|
|
|
%{_libexecdir}/udisks2/udisksd
|
|
|
|
%config %{_sysconfdir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
|
|
|
|
%{_datadir}/bash-completion/completions/udisksctl
|
2015-03-10 12:47:26 +00:00
|
|
|
%{_unitdir}/udisks2.service
|
2017-09-11 12:32:35 +00:00
|
|
|
%dir %{_udevrulesdir}
|
2015-03-10 12:47:26 +00:00
|
|
|
%{_udevrulesdir}/80-udisks2.rules
|
2017-09-11 12:32:35 +00:00
|
|
|
%{_sbindir}/umount.udisks2
|
|
|
|
|
|
|
|
%dir %{_libexecdir}/udisks2
|
|
|
|
%{_libexecdir}/udisks2/udisksd
|
|
|
|
|
|
|
|
%{_bindir}/udisksctl
|
|
|
|
|
|
|
|
%{_mandir}/man1/udisksctl.1*
|
|
|
|
%{_mandir}/man5/udisks2.conf.5*
|
|
|
|
%{_mandir}/man8/udisksd.8*
|
|
|
|
%{_mandir}/man8/udisks.8*
|
|
|
|
%{_mandir}/man8/umount.udisks2.8*
|
|
|
|
|
|
|
|
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.policy
|
2012-02-28 08:35:04 +00:00
|
|
|
%{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
|
2017-09-11 12:32:35 +00:00
|
|
|
|
|
|
|
# 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
|
2012-02-28 08:35:04 +00:00
|
|
|
|
|
|
|
%files -n libudisks2-0
|
2017-09-11 12:32:35 +00:00
|
|
|
%defattr(-,root,root,-)
|
2012-02-28 08:35:04 +00:00
|
|
|
%{_libdir}/libudisks2.so.*
|
|
|
|
|
|
|
|
%files -n typelib-1_0-UDisks-2_0
|
2017-09-11 12:32:35 +00:00
|
|
|
%defattr(-,root,root,-)
|
2012-02-28 08:35:04 +00:00
|
|
|
%{_libdir}/girepository-1.0/UDisks-2.0.typelib
|
|
|
|
|
|
|
|
%files devel
|
2017-09-11 12:32:35 +00:00
|
|
|
%defattr(-,root,root,-)
|
2012-02-28 08:35:04 +00:00
|
|
|
%{_libdir}/libudisks2.so
|
2017-09-11 12:32:35 +00:00
|
|
|
%dir %{_includedir}/udisks2
|
|
|
|
%dir %{_includedir}/udisks2/udisks
|
|
|
|
%{_includedir}/udisks2/udisks/*.h
|
2012-02-28 08:35:04 +00:00
|
|
|
%{_datadir}/gir-1.0/UDisks-2.0.gir
|
2017-09-11 12:32:35 +00:00
|
|
|
|
2012-02-28 08:35:04 +00:00
|
|
|
%doc %{_datadir}/gtk-doc/html/udisks2/
|
2017-09-11 12:32:35 +00:00
|
|
|
%{_libdir}/pkgconfig/udisks2.pc
|
2012-02-28 08:35:04 +00:00
|
|
|
|
2017-09-11 12:32:35 +00:00
|
|
|
%files lang -f udisks2.lang
|
2012-02-28 08:35:04 +00:00
|
|
|
|
|
|
|
%changelog
|