File polkit-qt.spec of Package polkit-qt
#
# spec file for package polkit-qt (Version 0.9.2)
#
# 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
%define debug_package_requires libpolkit-qt0 = %{version}-%{release}
Name: polkit-qt
BuildRequires: PolicyKit-devel automoc4 cmake kde4-filesystem libqt4-devel
License: GPL v2 only ; LGPL v2.1 or later
Group: Development/Libraries/KDE
Summary: PolicyKit Library Qt Bindings
Version: 0.9.2
Release: 3
Url: http://api.kde.org/kdesupport-api/kdesupport-apidocs/polkit-qt/html/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/
Source0: %{name}-%{version}.tar.bz2
%description
Polkit-qt aims to make it easy for Qt developers to take advantage of
PolicyKit API. It is a convenience wrapper around QAction and
QAbstractButton that lets you integrate those two components easily
with PolicyKit.
Authors:
--------
Daniel Nicoletti <dantti85-pk@yahoo.com.br>
Dario Freddi <drf54321@gmail.com>
%package -n libpolkit-qt0
License: LGPL v2.1 or later
Summary: PolicyKit Library Qt Bindings
Group: Development/Libraries/KDE
%description -n libpolkit-qt0
Polkit-qt aims to make it easy for Qt developers to take advantage of
PolicyKit API. It is a convenience wrapper around QAction and
QAbstractButton that lets you integrate those two components easily
with PolicyKit.
Authors:
--------
Daniel Nicoletti <dantti85-pk@yahoo.com.br>
Dario Freddi <drf54321@gmail.com>
%package -n libpolkit-qt-devel
License: LGPL v2.1 or later
Summary: PolicyKit Library Qt Bindings
Group: Development/Libraries/KDE
Requires: libpolkit-qt0 = %version
Requires: PolicyKit-devel
%description -n libpolkit-qt-devel
Polkit-qt aims to make it easy for Qt developers to take advantage of
PolicyKit API. It is a convenience wrapper around QAction and
QAbstractButton that lets you integrate those two components easily
with PolicyKit.
Authors:
--------
Daniel Nicoletti <dantti85-pk@yahoo.com.br>
Dario Freddi <drf54321@gmail.com>
%prep
%setup -n polkit-qt-%{version}
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
%post -n libpolkit-qt0 -p /sbin/ldconfig
%postun -n libpolkit-qt0 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libpolkit-qt-devel
%defattr(-,root,root)
%doc AUTHORS README
/usr/include/PolicyKit/polkit-qt/
%_libdir/pkgconfig/polkit-qt*
%_libdir/libpolkit-qt-gui.so
%_libdir/libpolkit-qt-core.so
%files -n libpolkit-qt0
%defattr(-,root,root)
%_libdir/libpolkit-qt-gui.so.*
%_libdir/libpolkit-qt-core.so.*
%changelog