PackageKit/PackageKit.spec

435 lines
13 KiB
RPMSpec
Raw Blame History

#
# spec file for package PackageKit (Version 0.4.8)
#
# 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/
#
%if 0%{suse_version} > 1110
%define xulrunner_version 191
%else
%define xulrunner_version 190
%endif
Name: PackageKit
Version: 0.4.8
Release: 2
License: GPL v2 or later
BuildRequires: NetworkManager-devel
BuildRequires: PolicyKit-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: docbook-utils
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: gstreamer-0_10-devel
BuildRequires: gstreamer-0_10-plugins-base-devel
BuildRequires: gtk-doc
BuildRequires: gtk2-devel
BuildRequires: intltool
BuildRequires: libarchive-devel
BuildRequires: libcppunit-devel
BuildRequires: libqt4-devel
BuildRequires: libzypp-devel
BuildRequires: mozilla-xulrunner%{xulrunner_version}-devel
BuildRequires: python-devel
BuildRequires: sqlite-devel
Group: System/Daemons
Summary: Simple software installation management software
Url: http://packagekit.org/
Source: %{name}-%{version}.tar.bz2
Patch: PackageKit_release.patch
# PATCH-FEATURE-UPSTREAM PackageKit-BNC383261-suggest-daemon-quit.patch bnc383261
Patch1: PackageKit-BNC383261-suggest-daemon-quit.patch
# PATCH-FIX-UPSTREAM PackageKit-libzypp6.patch fdo#20366
Patch2: PackageKit-libzypp6.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: %{name}-lang = %{version}
PreReq: python-base = %{py_ver}
%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.
Authors:
--------
Richard Hughes <richard@hughsie.com>
Tom Parker <palfrey@tevp.net>
Ken VanDine <ken@vandine.org>
Tim Lauridsen <tla@rasmil.dk>
Luke Macken <lmacken@redhat.com>
Backend: conary
Og Maciel <omaciel@foresightlinux.org>
Elliot Peele <elliot@bentlogic.net>
Backend: pisi
S.<2E>a&#287;lar Onur <caglar@pardus.org.tr>
Backend: zypp
Boyd Timothy <btimothy@gmail.com>
Scott Reeves <sreeves@novell.com>
%package -n ruck
License: GPL v2 or later
Summary: Ruck is a rug-like interface for PackageKit
Requires: %{name} = %{version}
Group: System/Daemons
%description -n ruck
ruck is a rug-like interface for PackageKit ('rug' is the command-line
interface for rcd, red carpet daemon.)
Authors:
--------
Tambet Ingo <tambet@ximian.com>
James Willcox <snorp@ximian.com>
Chris Rivera <cmr@ximian.com>
%package devel
License: GPL v2 or later
Summary: Needed include files and libraries for development
Requires: %{name} = %{version}
Requires: glib2-devel libpackagekit-glib11-devel NetworkManager-devel sqlite3-devel
Group: System/Daemons
%description devel
This package contains all necessary include files, libraries,
configuration files and development tools (with manual pages) needed to
compile and link applications using PackageKit.
Authors:
--------
Richard Hughes <richard@hughsie.com>
Tom Parker <palfrey@tevp.net>
Ken VanDine <ken@vandine.org>
Tim Lauridsen <tla@rasmil.dk>
Luke Macken <lmacken@redhat.com>
Backend: conary
Og Maciel <omaciel@foresightlinux.org>
Elliot Peele <elliot@bentlogic.net>
Backend: pisi
S.<2E>a&#287;lar Onur <caglar@pardus.org.tr>
Backend: zypp
Boyd Timothy <btimothy@gmail.com>
Scott Reeves <sreeves@novell.com>
%package -n libpackagekit-glib11
License: GPL v2 or later
Summary: Simple software installation management software
Group: System/Daemons
Requires: %{name} = %{version}
%description -n libpackagekit-glib11
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.
Authors:
--------
Richard Hughes <richard@hughsie.com>
Tom Parker <palfrey@tevp.net>
Ken VanDine <ken@vandine.org>
Tim Lauridsen <tla@rasmil.dk>
Luke Macken <lmacken@redhat.com>
Backend: conary
Og Maciel <omaciel@foresightlinux.org>
Elliot Peele <elliot@bentlogic.net>
Backend: pisi
S.<2E>a&#287;lar Onur <caglar@pardus.org.tr>
Backend: zypp
Boyd Timothy <btimothy@gmail.com>
Scott Reeves <sreeves@novell.com>
%package -n libpackagekit-glib11-devel
License: GPL v2 or later
Summary: Simple software installation management software
Group: System/Daemons
Requires: %{name} = %{version}
Requires: libpackagekit-glib11 = %{version}
Requires: glib2-devel NetworkManager-devel sqlite3-devel
%description -n libpackagekit-glib11-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.
Authors:
--------
Richard Hughes <richard@hughsie.com>
Tom Parker <palfrey@tevp.net>
Ken VanDine <ken@vandine.org>
Tim Lauridsen <tla@rasmil.dk>
Luke Macken <lmacken@redhat.com>
Backend: conary
Og Maciel <omaciel@foresightlinux.org>
Elliot Peele <elliot@bentlogic.net>
Backend: pisi
S.<2E>a&#287;lar Onur <caglar@pardus.org.tr>
Backend: zypp
Boyd Timothy <btimothy@gmail.com>
Scott Reeves <sreeves@novell.com>
%package -n libpackagekit-qt11
License: GPL v2 or later
Summary: Simple software installation management software
Group: System/Daemons
Requires: %{name} = %{version}
%description -n libpackagekit-qt11
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.
Authors:
--------
Richard Hughes <richard@hughsie.com>
Tom Parker <palfrey@tevp.net>
Ken VanDine <ken@vandine.org>
Tim Lauridsen <tla@rasmil.dk>
Luke Macken <lmacken@redhat.com>
Backend: conary
Og Maciel <omaciel@foresightlinux.org>
Elliot Peele <elliot@bentlogic.net>
Backend: pisi
S.<2E>a&#287;lar Onur <caglar@pardus.org.tr>
Backend: zypp
Boyd Timothy <btimothy@gmail.com>
Scott Reeves <sreeves@novell.com>
%package -n libpackagekit-qt11-devel
License: GPL v2 or later
Summary: Simple software installation management software
Group: System/Daemons
Requires: %{name} = %{version}
Requires: libpackagekit-qt11 = %{version}
Requires: libqt4-devel
%description -n libpackagekit-qt11-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.
Authors:
--------
Richard Hughes <richard@hughsie.com>
Tom Parker <palfrey@tevp.net>
Ken VanDine <ken@vandine.org>
Tim Lauridsen <tla@rasmil.dk>
Luke Macken <lmacken@redhat.com>
Backend: conary
Og Maciel <omaciel@foresightlinux.org>
Elliot Peele <elliot@bentlogic.net>
Backend: pisi
S.<2E>a&#287;lar Onur <caglar@pardus.org.tr>
Backend: zypp
Boyd Timothy <btimothy@gmail.com>
Scott Reeves <sreeves@novell.com>
%package doc
License: GPL v2 or later
Summary: Simple software installation management software
Group: System/Daemons
Requires: %{name} = %{version}
%description doc
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.
Authors:
--------
Richard Hughes <richard@hughsie.com>
Tom Parker <palfrey@tevp.net>
Ken VanDine <ken@vandine.org>
Tim Lauridsen <tla@rasmil.dk>
Luke Macken <lmacken@redhat.com>
Backend: conary
Og Maciel <omaciel@foresightlinux.org>
Elliot Peele <elliot@bentlogic.net>
Backend: pisi
S.<2E>a&#287;lar Onur <caglar@pardus.org.tr>
Backend: zypp
Boyd Timothy <btimothy@gmail.com>
Scott Reeves <sreeves@novell.com>
%lang_package
%prep
%setup -q
%patch -p0
%patch1 -p1
%patch2
%build
# uncomment out the following line if autotools should be run again (i.e.,
# one of the patches has modified configure.in/ac or a Makefile.am).
#autoreconf -f -i
%configure \
--disable-static \
--enable-zypp \
--with-default-backend=zypp \
--with-security-framework=polkit \
--with-mozilla-plugin-dir=%{_libdir}/browser-plugins \
--disable-cron
%__make %{?jobs: -j%jobs}
%install
%makeinstall
mv %{buildroot}%{_sysconfdir}/bash_completion.d/pk-completion.{ba,}sh
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%find_lang %{name}
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf "$RPM_BUILD_ROOT"
%post -n libpackagekit-glib11 -p /sbin/ldconfig
%post -n libpackagekit-qt11 -p /sbin/ldconfig
%postun -n libpackagekit-glib11 -p /sbin/ldconfig
%postun -n libpackagekit-qt11 -p /sbin/ldconfig
%files lang -f %{name}.lang
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/PackageKit
%dir %{_datadir}/PackageKit
%dir %{_datadir}/PackageKit/helpers
%dir %{_datadir}/PackageKit/helpers/test_spawn
%dir %{_libdir}/packagekit-backend
%dir %py_sitedir/packagekit
%dir %{_libdir}/pm-utils
%dir %{_libdir}/pm-utils/sleep.d
%dir /var/lib/PackageKit
%{_sysconfdir}/bash_completion.d/pk-completion.sh
%{_sysconfdir}/PackageKit/PackageKit.conf
%{_sysconfdir}/PackageKit/Vendor.conf
%{_sysconfdir}/PackageKit/CommandNotFound.conf
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
%{_sysconfdir}/profile.d/PackageKit.sh
%{_bindir}/packagekit-bugreport.sh
%{_bindir}/pkcon
%{_bindir}/pkmon
%{_bindir}/pkgenpack
%{_libdir}/pm-utils/sleep.d/95packagekit
%{_libdir}/packagekit-backend/*.so
%{_libexecdir}/pk-command-not-found
%{_libexecdir}/pk-gstreamer-install
%{_libdir}/gtk-2.0/modules/*
%{_libdir}/browser-plugins/packagekit-plugin.so
%{py_sitedir}/packagekit/*
%{_sbindir}/packagekitd
%{_datadir}/mime/packages/packagekit-*.xml
%{_datadir}/PackageKit/helpers/test_spawn/search-name.sh
%{_datadir}/PackageKit/pk-upgrade-distro.sh
%{_datadir}/PolicyKit/policy/org.freedesktop.packagekit.policy
%{_datadir}/dbus-1/system-services/*
%doc %{_mandir}/man?/*.*
%verify(not md5 size mtime) /var/lib/PackageKit/transactions.db
%files doc
%defattr(-,root,root)
%{_datadir}/PackageKit/website
%files -n ruck
%defattr(-,root,root)
%{_bindir}/ruck
%{_datadir}/ruck
%files devel
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/PackageKit
%dir %{_includedir}/PackageKit
%dir %{_includedir}/PackageKit/backend
%{_includedir}/PackageKit/backend/pk*.h
%files -n libpackagekit-glib11
%defattr(-,root,root)
%{_libdir}/libpackagekit-glib.so.*
%files -n libpackagekit-glib11-devel
%defattr(-,root,root)
%{_libdir}/libpackagekit-glib.so
%{_libdir}/pkgconfig/packagekit-glib.pc
%dir %{_includedir}/PackageKit
%dir %{_includedir}/PackageKit/packagekit-glib
%{_includedir}/PackageKit/packagekit-glib/*.h
%files -n libpackagekit-qt11
%defattr(-,root,root)
%{_libdir}/libpackagekit-qt.so.*
%files -n libpackagekit-qt11-devel
%defattr(-,root,root)
%{_libdir}/libpackagekit-qt.so
%{_libdir}/pkgconfig/packagekit-qt.pc
%dir %{_includedir}/PackageKit
%dir %{_includedir}/PackageKit/packagekit-qt
%{_includedir}/PackageKit/packagekit-qt/*
%dir %{_datadir}/cmake
%{_datadir}/cmake/Modules/*
%changelog