2007-12-18 04:26:13 +01:00
#
2009-08-17 15:02:59 +02:00
# spec file for package PackageKit (Version 0.5.1)
2007-12-18 04:26:13 +01:00
#
2010-02-04 09:09:20 +01:00
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
2007-12-18 04:26:13 +01:00
#
2008-08-18 18:59:14 +02:00
# 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.
2007-12-18 04:26:13 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2009-05-20 21:55:04 +02:00
%if 0%{suse_version} > 1110
%define xulrunner_version 191
%else
%define xulrunner_version 190
%endif
2008-02-28 20:24:11 +01:00
2007-12-18 04:26:13 +01:00
Name : PackageKit
2009-08-17 15:02:59 +02:00
Version : 0.5.1
2010-02-01 13:07:06 +01:00
Release : 4
License : GPLv2+
2009-02-16 01:27:05 +01:00
BuildRequires : NetworkManager-devel
BuildRequires : dbus-1-glib-devel
2009-06-12 18:42:12 +02:00
BuildRequires : docbook-utils
2009-02-16 01:27:05 +01:00
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
2009-06-12 18:42:12 +02:00
BuildRequires : libarchive-devel
2009-02-16 01:27:05 +01:00
BuildRequires : libcppunit-devel
BuildRequires : libqt4-devel
BuildRequires : libzypp-devel
2009-05-20 21:55:04 +02:00
BuildRequires : mozilla-xulrunner%{xulrunner_version} -devel
2009-07-31 21:06:16 +02:00
BuildRequires : polkit-devel
2009-02-16 01:27:05 +01:00
BuildRequires : python-devel
BuildRequires : sqlite-devel
2007-12-18 04:26:13 +01:00
Group : System/Daemons
Summary : Simple software installation management software
Url : http://packagekit.org/
Source : %{name} -%{version} .tar.bz2
2008-03-27 22:29:47 +01:00
Patch : PackageKit_release.patch
2008-12-15 15:02:45 +01:00
# PATCH-FEATURE-UPSTREAM PackageKit-BNC383261-suggest-daemon-quit.patch bnc383261
Patch1 : PackageKit-BNC383261-suggest-daemon-quit.patch
2009-03-03 00:40:57 +01:00
# PATCH-FIX-UPSTREAM PackageKit-libzypp6.patch fdo#20366
2009-02-27 05:19:04 +01:00
Patch2 : PackageKit-libzypp6.patch
2009-08-17 15:02:59 +02:00
# PATCH-FIX-OPENSUSE PackageKit-force-pm-utils.patch dominique-obs@leuenberger.net -- force detection of pm-utils to true (we have a way too old pm-utils package)
Patch3 : PackageKit-force-pm-utils.patch
2009-10-12 16:21:38 +02:00
# PATCH-FIX-UPSTREAM PackageKit-BNC543595.patch sreeves@novell.com -- install local files
Patch4 : PackageKit-BNC543595.patch
2010-02-01 13:07:06 +01:00
Patch5 : PackageKit-webyast.patch
2007-12-18 04:26:13 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2008-11-03 14:16:09 +01:00
Requires : %{name} -lang = %{version}
PreReq : python-base = %{py_ver}
2009-08-17 15:02:59 +02:00
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
2007-12-18 04:26:13 +01:00
%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.
2009-02-16 01:27:05 +01:00
%package -n ruck
2010-02-01 13:07:06 +01:00
License : GPLv2+
2009-02-16 01:27:05 +01:00
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.)
2007-12-18 04:26:13 +01:00
%package devel
2010-02-01 13:07:06 +01:00
License : GPLv2+
2008-03-27 22:29:47 +01:00
Summary : Needed include files and libraries for development
2007-12-18 04:26:13 +01:00
Requires : %{name} = %{version}
2009-07-31 21:06:16 +02:00
Requires : glib2-devel libpackagekit-glib12-devel NetworkManager-devel sqlite3-devel
2007-12-18 04:26:13 +01:00
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.
2009-07-31 21:06:16 +02:00
%package -n libpackagekit-glib12
2010-02-01 13:07:06 +01:00
License : GPLv2+
2008-11-03 14:16:09 +01:00
Summary : Simple software installation management software
Group : System/Daemons
Requires : %{name} = %{version}
2009-07-31 21:06:16 +02:00
%description -n libpackagekit-glib12
2008-11-03 14:16:09 +01:00
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.
2009-07-31 21:06:16 +02:00
%package -n libpackagekit-glib12-devel
2010-02-01 13:07:06 +01:00
License : GPLv2+
2008-11-03 14:16:09 +01:00
Summary : Simple software installation management software
Group : System/Daemons
Requires : %{name} = %{version}
2009-07-31 21:06:16 +02:00
Requires : libpackagekit-glib12 = %{version}
2008-11-03 14:16:09 +01:00
Requires : glib2-devel NetworkManager-devel sqlite3-devel
2009-07-31 21:06:16 +02:00
%description -n libpackagekit-glib12-devel
2008-11-03 14:16:09 +01:00
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.
2009-07-31 21:06:16 +02:00
%package -n libpackagekit-qt12
2010-02-01 13:07:06 +01:00
License : GPLv2+
2008-11-03 14:16:09 +01:00
Summary : Simple software installation management software
Group : System/Daemons
Requires : %{name} = %{version}
2009-07-31 21:06:16 +02:00
%description -n libpackagekit-qt12
2008-11-03 14:16:09 +01:00
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.
2009-07-31 21:06:16 +02:00
%package -n libpackagekit-qt12-devel
2010-02-01 13:07:06 +01:00
License : GPLv2+
2008-11-03 14:16:09 +01:00
Summary : Simple software installation management software
Group : System/Daemons
Requires : %{name} = %{version}
2009-07-31 21:06:16 +02:00
Requires : libpackagekit-qt12 = %{version}
2008-11-03 14:16:09 +01:00
Requires : libqt4-devel
2009-07-31 21:06:16 +02:00
%description -n libpackagekit-qt12-devel
2009-02-16 01:27:05 +01:00
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 doc
2010-02-01 13:07:06 +01:00
License : GPLv2+
2009-02-16 01:27:05 +01:00
Summary : Simple software installation management software
Group : System/Daemons
Requires : %{name} = %{version}
%description doc
2008-11-03 14:16:09 +01:00
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.
%lang_package
2007-12-18 04:26:13 +01:00
%prep
2009-03-03 00:40:57 +01:00
%setup -q
2009-02-16 01:27:05 +01:00
%patch -p0
2008-12-15 15:02:45 +01:00
%patch1 -p1
2009-02-27 05:19:04 +01:00
%patch2
2009-08-17 15:02:59 +02:00
%patch3 -p1
2009-10-12 16:21:38 +02:00
%patch4 -p1
2010-02-01 13:07:06 +01:00
%patch5 -p0
2007-12-18 04:26:13 +01:00
%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).
2009-08-17 15:02:59 +02:00
autoreconf -f -i
2007-12-18 04:26:13 +01:00
%configure \
2009-05-20 21:55:04 +02:00
--disable-static \
2008-02-28 20:24:11 +01:00
--enable-zypp \
2009-02-16 01:27:05 +01:00
--with-default-backend=zypp \
2009-05-20 21:55:04 +02:00
--with-security-framework=polkit \
2009-02-16 01:27:05 +01:00
--with-mozilla-plugin-dir=%{_libdir} /browser-plugins \
2009-05-20 21:55:04 +02:00
--disable-cron
2007-12-18 04:26:13 +01:00
%__make %{?jobs: -j%jobs}
%install
%makeinstall
2008-08-21 21:39:04 +02:00
mv %{buildroot} %{_sysconfdir} /bash_completion.d/pk-completion.{ba,}sh
2009-02-16 01:27:05 +01:00
find %{buildroot} -type f -name " * . l a " -exec %{__rm} -fv {} +
2008-04-28 18:35:04 +02:00
%find_lang %{name}
2008-04-14 22:27:42 +02:00
%fdupes $RPM_BUILD_ROOT
2007-12-18 04:26:13 +01:00
%clean
rm -rf " $RPM_BUILD_ROOT "
2009-07-31 21:06:16 +02:00
%post -n libpackagekit-glib12 -p /sbin/ldconfig
2008-11-03 14:16:09 +01:00
2009-07-31 21:06:16 +02:00
%post -n libpackagekit-qt12 -p /sbin/ldconfig
2007-12-18 04:26:13 +01:00
2009-07-31 21:06:16 +02:00
%postun -n libpackagekit-glib12 -p /sbin/ldconfig
2007-12-18 04:26:13 +01:00
2009-07-31 21:06:16 +02:00
%postun -n libpackagekit-qt12 -p /sbin/ldconfig
2008-11-03 14:16:09 +01:00
%files lang -f %{name}.lang
%files
2007-12-18 04:26:13 +01:00
%defattr (-,root,root)
%dir %{_sysconfdir} /PackageKit
%dir %{_datadir} /PackageKit
%dir %{_datadir} /PackageKit/helpers
%dir %{_datadir} /PackageKit/helpers/test_spawn
2008-01-10 02:36:18 +01:00
%dir %{_libdir} /packagekit-backend
2009-08-17 15:02:59 +02:00
%dir %{python_sitelib} /packagekit
2008-02-28 20:24:11 +01:00
%dir %{_libdir} /pm-utils
%dir %{_libdir} /pm-utils/sleep.d
2007-12-18 04:26:13 +01:00
%dir /var/lib/PackageKit
2008-08-21 21:39:04 +02:00
%{_sysconfdir} /bash_completion.d/pk-completion.sh
2007-12-18 04:26:13 +01:00
%{_sysconfdir} /PackageKit/PackageKit.conf
2008-10-09 18:54:16 +02:00
%{_sysconfdir} /PackageKit/Vendor.conf
2009-02-16 01:27:05 +01:00
%{_sysconfdir} /PackageKit/CommandNotFound.conf
2007-12-18 04:26:13 +01:00
%{_sysconfdir} /dbus-1/system.d/org.freedesktop.PackageKit.conf
2009-02-16 01:27:05 +01:00
%{_sysconfdir} /profile.d/PackageKit.sh
2007-12-18 04:26:13 +01:00
%{_bindir} /packagekit-bugreport.sh
2009-08-17 15:02:59 +02:00
%{_bindir} /pk-debuginfo-install
2007-12-18 04:26:13 +01:00
%{_bindir} /pkcon
%{_bindir} /pkmon
2008-08-18 18:59:14 +02:00
%{_bindir} /pkgenpack
2008-02-28 20:24:11 +01:00
%{_libdir} /pm-utils/sleep.d/95packagekit
2008-03-27 22:29:47 +01:00
%{_libdir} /packagekit-backend/*.so
2009-07-20 10:39:18 +02:00
%{_libexecdir} /pk-command-not-found
%{_libexecdir} /pk-gstreamer-install
2009-02-16 01:27:05 +01:00
%{_libdir} /gtk-2.0/modules/*
%{_libdir} /browser-plugins/packagekit-plugin.so
2009-07-31 21:06:16 +02:00
%{_libdir} /polkit-1/extensions/libpackagekit-action-lookup.so
2009-08-17 15:02:59 +02:00
%{python_sitelib} /packagekit/*
2007-12-18 04:26:13 +01:00
%{_sbindir} /packagekitd
2008-10-14 18:14:35 +02:00
%{_datadir} /mime/packages/packagekit-*.xml
2007-12-18 04:26:13 +01:00
%{_datadir} /PackageKit/helpers/test_spawn/search-name.sh
2008-09-24 17:19:16 +02:00
%{_datadir} /PackageKit/pk-upgrade-distro.sh
2009-07-31 21:06:16 +02:00
%{_datadir} /polkit-1/actions/org.freedesktop.packagekit.policy
2007-12-18 04:26:13 +01:00
%{_datadir} /dbus-1/system-services/*
2009-06-12 18:42:12 +02:00
%doc %{_mandir} /man?/*.*
2008-05-13 12:40:24 +02:00
%verify (not md5 size mtime) /var/lib/PackageKit/transactions.db
2007-12-18 04:26:13 +01:00
2009-02-16 01:27:05 +01:00
%files doc
%defattr (-,root,root)
%{_datadir} /PackageKit/website
%files -n ruck
%defattr (-,root,root)
%{_bindir} /ruck
%{_datadir} /ruck
2007-12-18 04:26:13 +01:00
%files devel
%defattr (-,root,root)
2009-03-03 00:40:57 +01:00
%dir %{_datadir} /gtk-doc
%dir %{_datadir} /gtk-doc/html
%{_datadir} /gtk-doc/html/PackageKit
2008-11-03 14:16:09 +01:00
%dir %{_includedir} /PackageKit
%dir %{_includedir} /PackageKit/backend
%{_includedir} /PackageKit/backend/pk*.h
2009-07-31 21:06:16 +02:00
%files -n libpackagekit-glib12
2008-11-03 14:16:09 +01:00
%defattr (-,root,root)
%{_libdir} /libpackagekit-glib.so.*
2009-07-31 21:06:16 +02:00
%files -n libpackagekit-glib12-devel
2008-11-03 14:16:09 +01:00
%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
2009-07-31 21:06:16 +02:00
%files -n libpackagekit-qt12
2008-11-03 14:16:09 +01:00
%defattr (-,root,root)
%{_libdir} /libpackagekit-qt.so.*
2009-07-31 21:06:16 +02:00
%files -n libpackagekit-qt12-devel
2008-11-03 14:16:09 +01:00
%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/*
2008-01-10 02:36:18 +01:00
2007-12-18 04:26:13 +01:00
%changelog