File polkit-qt-1.spec of Package polkit-qt-1
#
# spec file for package polkit-qt-1 (Version 0.99.1)
#
# Copyright (c) 2011 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-qt-1-0 = %{version}-%{release}
Name: polkit-qt-1
BuildRequires: automoc4 cmake kde4-filesystem libqt4-devel pkg-config
%if %suse_version > 1110
BuildRequires: polkit-devel
%else
BuildRequires: PolicyKit-devel
%endif
License: LGPLv2.1+
Group: Development/Libraries/KDE
Summary: PolicyKit Library Qt Bindings
Version: 0.99.1
Release: 2
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
Source99: baselibs.conf
%description
Polkit-qt-1 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-1-1
License: LGPLv2.1+
Summary: PolicyKit Library Qt Bindings
Group: Development/Libraries/KDE
%if %suse_version > 1110
Provides: libpolkit-qt0 = 0.9.3
Obsoletes: libpolkit-qt0 <= 0.9.3
%endif
%description -n libpolkit-qt-1-1
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-1-devel
License: LGPLv2.1+
Summary: PolicyKit Library Qt Bindings
Group: Development/Libraries/KDE
Provides: libpolkit-qt-devel = 0.9.3
Obsoletes: libpolkit-qt-devel <= 0.9.3
Requires: libpolkit-qt-1-1 = %version PolicyKit-devel
%description -n libpolkit-qt-1-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
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%makeinstall
%post -n libpolkit-qt-1-1 -p /sbin/ldconfig
%postun -n libpolkit-qt-1-1 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libpolkit-qt-1-devel
%defattr(-,root,root)
%doc AUTHORS README
/usr/include/polkit-qt-1/
%_libdir/pkgconfig/polkit-qt*
%_libdir/libpolkit-qt-gui-1.so
%_libdir/libpolkit-qt-core-1.so
%_libdir/libpolkit-qt-agent-1.so
%_libdir/cmake/PolkitQt-1/
%files -n libpolkit-qt-1-1
%defattr(-,root,root)
%_libdir/libpolkit-qt-gui-1.so.*
%_libdir/libpolkit-qt-core-1.so.*
%_libdir/libpolkit-qt-agent-1.so.*
%changelog