# # spec file for package PackageKit (Version 0.5.1) # # 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.5.1 Release: 2 License: GPL v2 or later BuildRequires: NetworkManager-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: polkit-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 # 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 # PATCH-FIX-UPSTREAM PackageKit-BNC543595.patch sreeves@novell.com -- install local files Patch4: PackageKit-BNC543595.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: %{name}-lang = %{version} PreReq: python-base = %{py_ver} %if %suse_version <= 1110 %define python_sitelib %{py_sitedir} %endif %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 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.) %package devel License: GPL v2 or later Summary: Needed include files and libraries for development Requires: %{name} = %{version} Requires: glib2-devel libpackagekit-glib12-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. %package -n libpackagekit-glib12 License: GPL v2 or later Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} %description -n libpackagekit-glib12 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-glib12-devel License: GPL v2 or later Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} Requires: libpackagekit-glib12 = %{version} Requires: glib2-devel NetworkManager-devel sqlite3-devel %description -n libpackagekit-glib12-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. %package -n libpackagekit-qt12 License: GPL v2 or later Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} %description -n libpackagekit-qt12 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-qt12-devel License: GPL v2 or later Summary: Simple software installation management software Group: System/Daemons Requires: %{name} = %{version} Requires: libpackagekit-qt12 = %{version} Requires: libqt4-devel %description -n libpackagekit-qt12-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. %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. %lang_package %prep %setup -q %patch -p0 %patch1 -p1 %patch2 %patch3 -p1 %patch4 -p1 %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-glib12 -p /sbin/ldconfig %post -n libpackagekit-qt12 -p /sbin/ldconfig %postun -n libpackagekit-glib12 -p /sbin/ldconfig %postun -n libpackagekit-qt12 -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 %{python_sitelib}/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}/pk-debuginfo-install %{_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 %{_libdir}/polkit-1/extensions/libpackagekit-action-lookup.so %{python_sitelib}/packagekit/* %{_sbindir}/packagekitd %{_datadir}/mime/packages/packagekit-*.xml %{_datadir}/PackageKit/helpers/test_spawn/search-name.sh %{_datadir}/PackageKit/pk-upgrade-distro.sh %{_datadir}/polkit-1/actions/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-glib12 %defattr(-,root,root) %{_libdir}/libpackagekit-glib.so.* %files -n libpackagekit-glib12-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-qt12 %defattr(-,root,root) %{_libdir}/libpackagekit-qt.so.* %files -n libpackagekit-qt12-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