2007-12-18 04:26:13 +01:00
#
2010-03-31 02:08:42 +02:00
# spec file for package PackageKit (Version 0.6.3)
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/
#
2010-04-15 23:37:10 +02:00
# $ pkcon search file /usr/bin/anjuta
%define BUILD_CNF 0
2010-03-31 02:08:42 +02:00
%if 0%{suse_version} > 1120
%define xulrunner_version 192
%else
2009-05-20 21:55:04 +02:00
%if 0%{suse_version} > 1110
%define xulrunner_version 191
%else
%define xulrunner_version 190
%endif
2010-03-31 02:08:42 +02:00
%endif
2008-02-28 20:24:11 +01:00
2007-12-18 04:26:13 +01:00
Name : PackageKit
2010-03-31 02:08:42 +02:00
Version : 0.6.3
2010-04-25 18:42:54 +02:00
Release : 3
2010-02-01 13:07:06 +01:00
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++
2010-03-31 02:08:42 +02:00
BuildRequires : gobject-introspection-devel
2009-02-16 01:27:05 +01:00
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
2010-03-31 02:08:42 +02:00
BuildRequires : libgudev-1_0-devel
2009-02-16 01:27:05 +01:00
BuildRequires : libqt4-devel
BuildRequires : libzypp-devel
2009-05-20 21:55:04 +02:00
BuildRequires : mozilla-xulrunner%{xulrunner_version} -devel
2010-03-31 02:08:42 +02:00
BuildRequires : pm-utils
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
2010-04-15 23:37:10 +02:00
# PATCH-FEATURE-OPENSUSE PackageKit-sysconfig-cron.patch vuntz@opensuse.org -- Change the configuration of the cron script to a sysconfig-like config
Patch0 : PackageKit-sysconfig-cron.patch
2010-05-04 21:29:21 +02:00
# PATCH-FEATURE-OPENSUSE PackageKit-cron-disabled-is-no-error.patch seife@opensuse.org -- Having the cron job disabled is no error. Otherwise it does not make sense to have it configurable.
Patch1 : PackageKit-cron-disabled-is-no-error.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
2010-03-20 00:47:16 +01:00
# PATCH-FIX-UPSTREAM PackageKit-BNC559802-zypp-count-patch-size.patch glin@novell.com -- calculate the download size of the patch
Patch6 : PackageKit-BNC559802-zypp-count-patch-size.patch
2010-05-04 21:29:21 +02:00
# PATCH-FIX-UPSTREAM 0001-zypp-fix-memeory-leaks.patch ma@suse.de -- fix memory leaks
Patch7 : 0001-zypp-fix-memeory-leaks.patch
# PATCH-FIX-UPSTREAM 0002-zypp-attempt-to-improve-backend_find_packages.patch bnc#597772 ma@suse.de -- Improve packend finding packages
Patch8 : 0002-zypp-attempt-to-improve-backend_find_packages.patch
# PATCH-FIX-UPSTREAM 0003-zypp-let-libzypp-determine-whether-a-patch-is-needed.patch bnc#577118 ma@suse.de -- Let libzypp determine whether a patch is needed.
Patch9 : 0003-zypp-let-libzypp-determine-whether-a-patch-is-needed.patch
2007-12-18 04:26:13 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2010-03-31 02:08:42 +02:00
Requires : %{name} -branding
2008-11-03 14:16:09 +01:00
Requires : %{name} -lang = %{version}
2010-04-15 23:37:10 +02:00
PreReq : %fillup_prereq
%py_requires
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.
2010-04-15 23:37:10 +02:00
%package browser-plugin
License : GPLv2+
Summary : Simple software installation management software
Group : System/Daemons
Recommends: %{name} = %{version}
Supplements: packageand(%{name} :MozillaFirefox)
Supplements: packageand(%{name} :epiphany)
%description browser-plugin
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 gstreamer-plugin
License : GPLv2+
Summary : Simple software installation management software
Group : System/Daemons
Requires(post) : update-alternatives
Requires(postun) : update-alternatives
Recommends: %{name} = %{version}
Supplements: packageand(%{name} :gstreamer-0_10-plugins-base)
%description gstreamer-plugin
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 gtk-module
License : GPLv2+
Summary : Simple software installation management software
Group : System/Daemons
Recommends: %{name} = %{version}
Supplements: packageand(%{name} :gtk2)
%description gtk-module
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+
2010-03-31 02:08:42 +02:00
Summary : PackageKit interface similar to rug
2009-02-16 01:27:05 +01:00
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}
2010-03-31 02:08:42 +02:00
Requires : glib2-devel libpackagekit-glib2-devel NetworkManager-devel sqlite3-devel
2007-12-18 04:26:13 +01:00
Group : System/Daemons
2010-02-11 20:22:18 +01:00
%if 0%{?suse_version} >= 1120
BuildArch : noarch
%endif
2007-12-18 04:26:13 +01:00
%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.
2010-03-31 02:08:42 +02:00
%package -n libpackagekit-glib2-14
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
2010-04-25 18:42:54 +02:00
Provides : libpackagekit-glib12 = %{version}
Obsoletes : libpackagekit-glib12 < %{version}
2008-11-03 14:16:09 +01:00
Requires : %{name} = %{version}
2010-03-31 02:08:42 +02:00
%description -n libpackagekit-glib2-14
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.
2010-03-31 02:08:42 +02:00
%package -n libpackagekit-glib2-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}
2010-03-31 02:08:42 +02:00
Requires : libpackagekit-glib2-14 = %{version}
2010-04-25 18:42:54 +02:00
Provides : libpackagekit-glib12-devel = %{version}
Obsoletes : libpackagekit-glib12-devel < %{version}
2008-11-03 14:16:09 +01:00
Requires : glib2-devel NetworkManager-devel sqlite3-devel
2010-03-31 02:08:42 +02:00
%description -n libpackagekit-glib2-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.
2010-03-31 02:08:42 +02:00
%package -n libpackagekit-qt14
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}
2010-03-31 02:08:42 +02:00
%description -n libpackagekit-qt14
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.
2010-03-31 02:08:42 +02:00
%package -n libpackagekit-qt-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}
2010-03-31 02:08:42 +02:00
Requires : libpackagekit-qt14 = %{version}
2008-11-03 14:16:09 +01:00
Requires : libqt4-devel
2010-03-31 02:08:42 +02:00
# Old name of the package; we can't provide it since the ABI has changed
Obsoletes : libpackagekit-qt12-devel <= 0.5.4
2008-11-03 14:16:09 +01:00
2010-03-31 02:08:42 +02:00
%description -n libpackagekit-qt-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}
2010-02-11 20:22:18 +01:00
%if 0%{?suse_version} >= 1120
BuildArch : noarch
%endif
2009-02-16 01:27:05 +01:00
%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.
2010-03-31 02:08:42 +02:00
%package branding-upstream
License : GPLv2+
Summary : Upstream branding of PackageKit
Group : System/Daemons
Supplements: packageand(%{name} :branding-upstream)
Provides : %{name} -branding = %{version}
Conflicts : otherproviders(%{name} -branding)
#BRAND: Provide configuration files -
#BRAND: /etc/PackageKit/*
%description branding-upstream
This package provides upstream Look and Feel for PackageKit.
2008-11-03 14:16:09 +01:00
%lang_package
2007-12-18 04:26:13 +01:00
%prep
2009-03-03 00:40:57 +01:00
%setup -q
2010-04-15 23:37:10 +02:00
%patch0 -p1
2010-05-04 21:29:21 +02:00
%patch1 -p1
2009-02-27 05:19:04 +01:00
%patch2
2010-03-20 00:47:16 +01:00
%patch6 -p1
2010-05-04 21:29:21 +02:00
%patch7 -p1
%patch8 -p1
%patch9 -p1
2007-12-18 04:26:13 +01:00
%build
%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 \
2010-04-15 23:37:10 +02:00
%if ! %BUILD_CNF
--disable-command-not-found \
%endif
%{nil}
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 {} +
2010-03-31 02:08:42 +02:00
# the pm-utils package in openSUSE uses libexecdir and not libdir
%if "%{_libdir}" != "%{_libexecdir}"
2010-04-15 23:37:10 +02:00
test ! -e %{buildroot} %{_libexecdir} /pm-utils
mv %{buildroot} %{_libdir} /pm-utils %{buildroot} %{_libexecdir} /pm-utils
2010-03-31 02:08:42 +02:00
%endif
2010-04-15 23:37:10 +02:00
# move the cron configuration to a sysconfig template
test -x %{buildroot} %{_sysconfdir} /sysconfig/packagekit-background
chmod a-x %{buildroot} %{_sysconfdir} /sysconfig/packagekit-background
install -d %{buildroot} %{_localstatedir} /adm/fillup-templates
mv %{buildroot} %{_sysconfdir} /sysconfig/packagekit-background %{buildroot} %{_localstatedir} /adm/fillup-templates/sysconfig.packagekit-background
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 "
2010-04-15 23:37:10 +02:00
%post
%{fillup_only -n packagekit-background}
%post gstreamer-plugin
update-alternatives --install %{_libexecdir} /gst-install-plugins-helper gst-install-plugins-helper %{_libexecdir} /pk-gstreamer-install 10
%postun gstreamer-plugin
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
if [ ! -f %{_libexecdir} /pk-gstreamer-install ]; then
update-alternatives --remove gst-install-plugins-helper %{_libexecdir} /pk-gstreamer-install
fi
2010-03-31 02:08:42 +02:00
%post -n libpackagekit-glib2-14 -p /sbin/ldconfig
2008-11-03 14:16:09 +01:00
2010-03-31 02:08:42 +02:00
%post -n libpackagekit-qt14 -p /sbin/ldconfig
2007-12-18 04:26:13 +01:00
2010-03-31 02:08:42 +02:00
%postun -n libpackagekit-glib2-14 -p /sbin/ldconfig
2007-12-18 04:26:13 +01:00
2010-03-31 02:08:42 +02:00
%postun -n libpackagekit-qt14 -p /sbin/ldconfig
2008-11-03 14:16:09 +01:00
%files lang -f %{name}.lang
2010-03-31 02:08:42 +02:00
%files
2007-12-18 04:26:13 +01:00
%defattr (-,root,root)
2010-03-31 02:08:42 +02:00
%doc AUTHORS ChangeLog COPYING HACKING NEWS README
2007-12-18 04:26:13 +01:00
%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
2010-03-31 02:08:42 +02:00
%dir %{_libexecdir} /pm-utils
%dir %{_libexecdir} /pm-utils/sleep.d
2010-04-15 23:37:10 +02:00
%dir %{_localstatedir} /lib/PackageKit
2008-08-21 21:39:04 +02:00
%{_sysconfdir} /bash_completion.d/pk-completion.sh
2010-04-15 23:37:10 +02:00
%{_sysconfdir} /cron.daily/packagekit-background.cron
2007-12-18 04:26:13 +01:00
%{_sysconfdir} /dbus-1/system.d/org.freedesktop.PackageKit.conf
2010-04-15 23:37:10 +02:00
%if %BUILD_CNF
2009-02-16 01:27:05 +01:00
%{_sysconfdir} /profile.d/PackageKit.sh
2010-04-15 23:37:10 +02:00
%endif
%{_localstatedir} /adm/fillup-templates/sysconfig.packagekit-background
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-03-27 22:29:47 +01:00
%{_libdir} /packagekit-backend/*.so
2010-03-31 02:08:42 +02:00
%{_libexecdir} /pm-utils/sleep.d/95packagekit
2010-04-15 23:37:10 +02:00
%if %BUILD_CNF
2009-07-20 10:39:18 +02:00
%{_libexecdir} /pk-command-not-found
2010-04-15 23:37:10 +02:00
%endif
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
2010-03-31 02:08:42 +02:00
%{_sbindir} /pk-device-rebind
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?/*.*
2010-04-15 23:37:10 +02:00
%verify (not md5 size mtime) %{_localstatedir} /lib/PackageKit/transactions.db
%files browser-plugin
%defattr (-,root,root)
%{_libdir} /browser-plugins/packagekit-plugin.so
%files gstreamer-plugin
%defattr (-,root,root)
%{_libexecdir} /pk-gstreamer-install
%files gtk-module
%defattr (-,root,root)
%{_libdir} /gtk-2.0/modules/*
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
2010-03-31 02:08:42 +02:00
%files -n libpackagekit-glib2-14
2008-11-03 14:16:09 +01:00
%defattr (-,root,root)
2010-03-31 02:08:42 +02:00
%{_datadir} /gir-1.0/PackageKitGlib-1.0.gir
%{_libdir} /libpackagekit-glib2.so.*
%{_libdir} /girepository-1.0/PackageKitGlib-1.0.typelib
2008-11-03 14:16:09 +01:00
2010-03-31 02:08:42 +02:00
%files -n libpackagekit-glib2-devel
2008-11-03 14:16:09 +01:00
%defattr (-,root,root)
2010-03-31 02:08:42 +02:00
%{_libdir} /libpackagekit-glib2.so
%{_libdir} /pkgconfig/packagekit-glib2.pc
2008-11-03 14:16:09 +01:00
%dir %{_includedir} /PackageKit
2010-03-31 02:08:42 +02:00
%{_includedir} /PackageKit/packagekit-glib2/
2008-11-03 14:16:09 +01:00
2010-03-31 02:08:42 +02:00
%files -n libpackagekit-qt14
2008-11-03 14:16:09 +01:00
%defattr (-,root,root)
%{_libdir} /libpackagekit-qt.so.*
2010-03-31 02:08:42 +02:00
%files -n libpackagekit-qt-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
2010-03-31 02:08:42 +02:00
%files branding-upstream
%defattr (-,root,root)
2010-04-15 23:37:10 +02:00
%if %BUILD_CNF
2010-03-31 02:08:42 +02:00
%config (noreplace) %{_sysconfdir} /PackageKit/CommandNotFound.conf
2010-04-15 23:37:10 +02:00
%endif
2010-03-31 02:08:42 +02:00
%config (noreplace) %{_sysconfdir} /PackageKit/PackageKit.conf
# This file should not be touched by users/admins, so we can replace it
%{_sysconfdir} /PackageKit/Vendor.conf
2007-12-18 04:26:13 +01:00
%changelog