File DeviceKit-disks.spec of Package DeviceKit-disks
#
# spec file for package DeviceKit-disks (Version 007)
#
# Copyright (c) 2009 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/
#
# norootforbuild
Name: DeviceKit-disks
Version: 007
Release: 1
License: GPL v2 or later
Summary: Disk Management Service
Url: http://cgit.freedesktop.org/DeviceKit/DeviceKit-disks/
Group: System/Daemons
Source: %{name}-%{version}.tar.bz2
BuildRequires: polkit-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: device-mapper-devel
BuildRequires: gtk-doc
BuildRequires: intltool
BuildRequires: libatasmart-devel
BuildRequires: libgudev-1_0-devel
BuildRequires: parted-devel
BuildRequires: sqlite3-devel
BuildRequires: sg3_utils-devel
BuildRequires: zlib-devel
BuildRequires: udev
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source1: DeviceKit-disks-rpmlintrc
# Need this one until bnc#504064 has been resolved -- mboman@suse.de
Source2: umount.devkit
%description
DeviceKit-disks provides a daemon, D-Bus API and command line tools
for managing disks and storage devices.
%package devel
License: GPL v2 or later
Summary: Disk Management Service - Development Files
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: glib2-devel
%description devel
DeviceKit-disks provides a daemon, D-Bus API and command line tools
for managing disks and storage devices.
%prep
%setup -q
%build
export V=1
%configure \
--enable-gtk-doc \
--disable-static \
--libexecdir=%{_prefix}/lib/DeviceKit-disks
make %{?jobs:-j%jobs}
%install
%makeinstall
rm %{buildroot}%{_libdir}/polkit-1/extensions/libdevkit-disks-action-*.la
# Not allowed to install into /sbin so move it to /usr/sbin (see bnc#504064)
mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}/sbin/umount.devkit %{buildroot}%{_sbindir}
cp %{S:2} %{buildroot}/sbin/
%find_lang %{name}
%clean
rm -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
/lib/udev/devkit-*
/lib/udev/rules.d/95-devkit-disks.rules
%{_bindir}/devkit-disks
%{_prefix}/lib/DeviceKit-disks
%{_libdir}/polkit-1/extensions/libdevkit-disks-action-*.so
%attr(0755,root,root) /sbin/umount.devkit
%{_sbindir}/umount.devkit
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/pkgconfig/DeviceKit-disks.pc
%{_sysconfdir}/dbus-1/system.d/*.conf
%attr(0644,root,root) %{_sysconfdir}/profile.d/devkit-disks-bash-completion.sh
%doc %{_mandir}/man?/*.*
%attr(0770,root,root) %dir %{_localstatedir}/lib/DeviceKit-disks
%files devel
%defattr(-,root,root,-)
%doc %{_datadir}/gtk-doc/html/devkit-disks
%{_datadir}/dbus-1/interfaces/*.xml
%changelog