# # spec file for package storaged # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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/ # Name: storaged Version: 0.3.1 Release: 0 Summary: A D-Bus service for storage management License: GPL-2.0 and LGPL-2.1 Group: System/Daemons Url: https://github.com/cockpit-project/storaged Source: https://github.com/cockpit-project/storaged/releases/download/%{version}/%{name}-%{version}.tar.bz2 BuildRequires: autoconf BuildRequires: automake BuildRequires: docbook-xsl-stylesheets BuildRequires: intltool BuildRequires: gobject-introspection BuildRequires: libtool BuildRequires: libxslt-tools # needed for patch0 BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gudev-1.0) >= 165 BuildRequires: pkgconfig(libsystemd-daemon) BuildRequires: pkgconfig(libsystemd-login) >= 186 BuildRequires: pkgconfig(polkit-gobject-1) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(lvm2app) BuildRequires: pkgconfig(udisks2) >= 2.1.0 BuildRoot: %{_tmppath}/%{name}-%{version}-build %{?systemd_requires} %description Currently, storaged implements a D-Bus API for monitoring and manipulating LVM2 volume groups, but there is room for more. Storaged works well with UDisks, and tries not to duplicate its functionality. For example, you would create a new logical volume with storaged and then make a filesystem on it with UDisks. %prep %setup -q %build autoreconf -fi %configure \ --disable-static make %{?jobs:-j%jobs} %install %make_install rm -f %{buildroot}%{_libdir}/*.la %if 0%{?suse_version} install -d %{buildroot}%{_sbindir} ln -s /sbin/service %{buildroot}%{_sbindir}/rc%{name} %endif %clean rm -rf %{buildroot} %pre %service_add_pre storaged.service %post %service_add_post storaged.service %preun %service_del_preun storaged.service %postun %service_del_postun storaged.service %files %defattr(-,root,root,-) %doc AUTHORS COPYING NEWS README %{_unitdir}/storaged.service %config %{_sysconfdir}/dbus-1/system.d/com.redhat.storaged.conf %dir %{_libdir}/%{name} %{_libdir}/%{name}/* %if 0%{?suse_version} %{_sbindir}/rc%{name} %endif %{_datadir}/dbus-1/interfaces/* %{_datadir}/dbus-1/system-services/* %{_datadir}/polkit-1/actions/* %{_mandir}/man8/%{name}.8.gz %changelog