File DeviceKit-power.spec of Package DeviceKit-power
#
# spec file for package DeviceKit-power (Version 010)
#
# 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-power
Version: 010
Release: 2
License: GPL v2 or later
BuildRequires: polkit-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: intltool
BuildRequires: libusb-devel
BuildRequires: gtk-doc
BuildRequires: libgudev-1_0-devel
BuildRequires: udev
Url: http://cgit.freedesktop.org/DeviceKit/DeviceKit-power/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Group: System/Daemons
Summary: Power Device Enumeration Framework
Source: %{name}-%{version}.tar.bz2
%description
DeviceKit-power is an abstraction for enumerating power devices,
listening to device events and querying history and statistics. Any
application or service on the system can access the
org.freedesktop.DeviceKit.Power service via the system message bus.
%package devel
License: GPL v2 or later
Summary: Power Device Enumeration Framework
Group: Development/Libraries/Other
Requires: %{name} = %{version}
Requires: glib2-devel
%description devel
DeviceKit-power is an abstraction for enumerating power devices,
listening to device events and querying history and statistics. Any
application or service on the system can access the
org.freedesktop.DeviceKit.Power service via the system message bus.
%prep
%setup -q
%build
export V=1
%configure\
--disable-static\
--libexecdir=%{_prefix}/lib/DeviceKit-power
make %{?jobs:-j%jobs}
%install
%makeinstall
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%{_bindir}/*
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/polkit-1/actions/org.freedesktop.devicekit.power*.policy
%doc %{_mandir}/man?/*.*
%{_prefix}/lib/DeviceKit-power
%config %{_sysconfdir}/dbus-1/system.d/*.conf
/lib/udev/rules.d/*.rules
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_datadir}/dbus-1/interfaces/*.xml
%doc %{_datadir}/gtk-doc/html/devkit-power
%{_includedir}/DeviceKit-power
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%changelog