File PackageKit-Qt.spec of Package PackageKit-Qt

#
# spec file for package PackageKit-Qt
#
# Copyright (c) 2013 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:           PackageKit-Qt
Version:        0.8.8
Release:        0
Summary:        Simple software installation management software
License:        LGPL-2.1+
Group:          System/Daemons
Url:            http://packagekit.org/
Source:         http://www.packagekit.org/releases/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM PackageKit-Qt-libdir-references.patch alarrosa@suse.com -- Fix lib location written into .cmake and .pc file.
Patch0:         PackageKit-Qt-libdir-references.patch
BuildRequires:  PackageKit-devel >= %{version}
BuildRequires:  cmake
BuildRequires:  kde4-filesystem
BuildRequires:  libqt4-devel

%description
PackageKit is a system designed to make installing and updating
software on your computer easier.  The primary design goal is to unify
all the software graphical tools used in different distributions, and
use some of the latest technology like PolicyKit to make the process
suck less.

%package -n libpackagekit-qt2-6
Summary:        Simple software installation management software
Group:          System/Libraries

%description -n libpackagekit-qt2-6
PackageKit is a system designed to make installing and updating
software on your computer easier.  The primary design goal is to unify
all the software graphical tools used in different distributions, and
use some of the latest technology like PolicyKit to make the process
suck less.

%package devel
Summary:        Simple software installation management software
Group:          Development/Libraries/C and C++
Requires:       libpackagekit-qt2-6 = %{version}
Provides:       libpackagekit-qt2-devel = %{version}
Obsoletes:      libpackagekit-qt2-devel < %{version}

%description devel
PackageKit is a system designed to make installing and updating
software on your computer easier.  The primary design goal is to unify
all the software graphical tools used in different distributions, and
use some of the latest technology like PolicyKit to make the process
suck less.

%prep
%setup -q
%patch0 -p1

%build
mkdir build
cd build
cmake \
  -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
  ..
make %{?smp_mflags}

%install
cd build
%make_install

%post -n libpackagekit-qt2-6 -p /sbin/ldconfig

%postun -n libpackagekit-qt2-6 -p /sbin/ldconfig

%files -n libpackagekit-qt2-6
%defattr(-,root,root)
%doc COPYING NEWS AUTHORS
%{_libdir}/libpackagekit-qt2.so.*

%files devel
%defattr(-,root,root)
%doc TODO MAINTAINERS RELEASE
%{_libdir}/libpackagekit-qt2.so
%{_libdir}/cmake/packagekit-qt2/
%{_libdir}/pkgconfig/packagekit-qt2.pc
%dir %{_includedir}/PackageKit
%{_includedir}/PackageKit/packagekit-qt2/

%changelog
openSUSE Build Service is sponsored by