PackageKit/PackageKit.spec

361 lines
14 KiB
RPMSpec
Raw Normal View History

Name: PackageKit
Version: 1.2.1
Release: 1mamba
Summary: A system designed to make installing and updating software on your computer easier
Group: System/Management
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.packagekit.org
Source: http://www.freedesktop.org/software/PackageKit/releases/PackageKit-%{version}.tar.xz
Patch0: %{name}-0.6.6-openmamba-groups.patch
Patch1: %{name}-1.1.6-openmamba-Vendor.conf.patch
Patch2: %{name}-0.6.9-command_not_found_raise_timeout.patch
Patch3: %{name}-0.9.1-smart-what_provides.patch
Patch4: %{name}-0.6.13-smartBackend_fix_best_package.patch
Patch5: %{name}-0.6.13-smartBackend_fix_Changelog.patch
Patch6: %{name}-0.6.13-qt_fix_searchGroups.patch
Patch7: %{name}-0.6.13-pk-transaction_fix_crash.patch
Patch8: %{name}-0.8.7-smartBackend-fix_trust_and_upgrade.patch
Patch9: %{name}-0.6.21-xulrunner-7.patch
Patch10: %{name}-0.6.21-revert_utf8_for_smart.patch
Patch11: PackageKit-0.6.22-display_smart_errors_as_html.patch
Patch12: PackageKit-0.8.11-smartBackend-fix-remove-packages.patch
Patch13: PackageKit-0.9.5-smartBackend-correctly-raise-exceptions.patch
Patch14: PackageKit-1.1.6-yumBackend-override_sigchecks.patch
Patch15: PackageKit-1.2.0-dnf-openmamba.patch
Patch16: PackageKit-1.1.12-dnf-repos-dir.patch
Patch17: PackageKit-1.1.12-dnf-disable-trusted-packages-check.patch
Patch18: PackageKit-1.1.12-upstream-dnf-invalidate-the-sack-cache-after-downloading-new-metadata.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libappstream-glib-devel
BuildRequires: libdnf-devel
BuildRequires: libfontconfig-devel
BuildRequires: libglib-devel
BuildRequires: libgstreamer-devel
BuildRequires: libpango-devel
BuildRequires: libpolkit-devel
BuildRequires: libpython-devel
BuildRequires: librpm-devel
BuildRequires: libsqlite-devel
BuildRequires: libsystemd-devel
## AUTOBUILDREQ-END
BuildRequires: librpm-devel >= 1:4.14.3
BuildRequires: gobject-introspection-devel
BuildRequires: pm-utils-devel
BuildRequires: libcppunit-devel
BuildRequires: libdnf >= 0.48.0
BuildRequires: librepo >= 1.11.2
Requires: dnf
%systemd_requires
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%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.
This package contains static libraries and header files need for development.
%package glib
Summary: glib interface library for %{name}
Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description glib
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.
This package contains the glib interface library for %{name}.
%package glib-devel
Summary: Devel package for %{name}-glib
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-glib = %{?epoch:%epoch:}%{version}-%{release}
%description glib-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.
This package contains static libraries and header files need for development.
%package gtk
Summary: Gtk interface library for %{name}
Group: System/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: %{name}-glib = %{?epoch:%epoch:}%{version}-%{release}
Provides: PackageKit-gtk2
Obsoletes: PackageKit-gtk2
%description gtk
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.
This package contains the Gtk interface library for %{name}.
%debug_package
%prep
%setup -q
%patch1 -p1
#%patch14 -p1
%patch15 -p1
#%patch16 -p1
%patch17 -p1
#%patch18 -p1
sed -i "s|openmandriva|openmamba|" meson_options.txt
%build
%meson \
-Dpackaging_backend=dnf \
-Ddnf_vendor=openmamba \
-Dgtk_doc=true \
-Dpythonpackagedir=%{python3_sitearch}
# --enable-pm-utils \
# --enable-introspection \
# --enable-networkmanager \
# PYTHON=%{__python}
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
rm -f %{buildroot}/var/lib/PackageKit/transactions.db
install -d -m0755 %{buildroot}/var/cache/PackageKit
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files -f %{name}.lang
%defattr(-,root,root)
%{_sysconfdir}/PackageKit/*.conf
%{_sysconfdir}/cron.daily/packagekit-background.cron
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.PackageKit.conf
%{_sysconfdir}/profile.d/PackageKit.sh
#%{_sysconfdir}/yum/pluginconf.d/refresh-packagekit.conf
%config(noreplace) %{_sysconfdir}/sysconfig/packagekit-background
%{_bindir}/pkcon
%{_bindir}/pkmon
#%{_prefix}/lib/yum-plugins/refresh-packagekit.py
%dir %{_libdir}/packagekit-backend
%{_libdir}/packagekit-backend/libpk_backend_*
%{_unitdir}/packagekit.service
%{_unitdir}/packagekit-offline-update.service
#%{_unitdir}/system-update.target.wants/packagekit-offline-update.service
%{_libexecdir}/packagekit-direct
%{_libexecdir}/pk-offline-update
%{_libexecdir}/packagekitd
%{_libexecdir}/pk-command-not-found
%{_libexecdir}/pk-gstreamer-install
%{_datadir}/bash-completion/completions/pkcon
%{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.Transaction.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.PackageKit.xml
%{_datadir}/dbus-1/system-services/org.freedesktop.PackageKit.service
%{_datadir}/polkit-1/actions/org.freedesktop.packagekit.policy
%{_datadir}/polkit-1/rules.d/org.freedesktop.packagekit.rules
#%{_datadir}/PackageKit/helpers
%{_datadir}/PackageKit/pk-upgrade-distro.sh
%dir %{python3_sitearch}/packagekit
%{python3_sitearch}/packagekit/*
%dir /var/lib/PackageKit
%dir /var/cache/PackageKit
#%dir /var/cache/PackageKit/downloads
#%dir /var/cache/PackageKit/metadata
%{_mandir}/man1/pkcon.1*
%{_mandir}/man1/pkmon.1*
%doc AUTHORS COPYING
%files gtk
%defattr(-,root,root)
%{_libdir}/gtk-3.0/modules/libpk-gtk-module.*
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/pk-gtk-module.desktop
%files glib
%defattr(-,root,root)
%{_libdir}/libpackagekit-glib2.so.*
%{_libdir}/girepository-1.0/PackageKitGlib-1.0.typelib
%files glib-devel
%defattr(-,root,root)
%{_includedir}/PackageKit/packagekit-glib2/*.h
%{_libdir}/libpackagekit-glib2.so
%{_datadir}/gir-1.0/PackageKitGlib-1.0.gir
%{_datadir}/vala/vapi/packagekit-glib2.*
%{_libdir}/pkgconfig/packagekit-glib2.pc
%{_datadir}/gtk-doc/html/PackageKit
%doc NEWS README
%changelog
* Fri Oct 23 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.1-1mamba
- update to 1.2.1
* Fri Aug 14 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
- update to 1.2.0
* Wed Jan 08 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.13-1mamba
- update to 1.1.13
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.12-7mamba
- removed invalid systemd post etc. scripts
* Wed Jul 10 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.12-6mamba
- dnf backend: added upstream patch to invalidate cache metadata and possibly fix repo refresh
* Sun Jun 23 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.12-5mamba
- dns: added patch to disable trusted packages check
* Sat Jun 22 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.12-4mamba
- rebuilt with rpm 4
* Tue Jun 04 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.12-3mamba
- fix for openmamba dnf backend patch and configure arguments
- added patch to use /etc/yum/repos.d instead of /etc/yum.repos.d
* Sat Jun 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.12-2mamba
- rebuilt with dnf support instead of broken yum
* Fri Dec 28 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.12-1mamba
- update to 1.1.12
* Thu Nov 30 2017 Automatic Build System <autodist@mambasoft.it> 1.1.7-1mamba
- automatic update by autodist
* Wed Nov 15 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.6-2mamba
- yum backend: patched to enable overriding signature checks
* Sat Aug 26 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.6-1mamba
- update to 1.1.6
* Sat Aug 26 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.5-4mamba
- rebuilt with yum as default backend
* Tue Aug 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.5-3mamba
- provide directory /var/cache/PackgeKit/downloads
- smartBackend.py: patched to raise correct exceptions, hopefully fixes pk lockups on errors
* Sat Aug 15 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.5-2mamba
- rebuilt on itself to fix requirements for mozilla plugin
* Fri Aug 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.5-1mamba
- update to 0.9.5
* Wed Oct 08 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.17-1mamba
- update to 0.8.17
* Mon Sep 23 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.11-2mamba
- smart backend: added a patch to fix remove-packages function
* Sun Sep 08 2013 Automatic Build System <autodist@mambasoft.it> 0.8.11-1mamba
- automatic update by autodist
* Tue Aug 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.9-2mamba
- git typelib files moved from -devel to main packages
* Sun Jun 30 2013 Automatic Build System <autodist@mambasoft.it> 0.8.9-1mamba
- automatic version update by autodist
* Wed Mar 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.7-3mamba
- reapply smartbackend patch to disable packages trust and fix upgrade
- also port patch to display errors as html in apper
* Wed Mar 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.8.7-2mamba
- rebuilt using python 2.7
* Sat Mar 02 2013 Automatic Build System <autodist@mambasoft.it> 0.8.7-1mamba
- automatic version update by autodist
* Fri Dec 07 2012 Automatic Build System <autodist@mambasoft.it> 0.7.6-1mamba
- automatic version update by autodist
* Tue Aug 21 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.4-1mamba
- update to 0.7.4
* Tue Aug 07 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.22-1mamba
- update to 0.6.22
* Mon Apr 09 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.21-3mamba
- rebuilt after moving libattr
* Mon Dec 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.21-2mamba
- cleaned some debugging code in the smart backend patches
- revert utf-8 changes in backend.py to workaround smart backend not working anymore
* Mon Dec 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.21-1mamba
- update to 0.6.21
* Mon Dec 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.19-1mamba
- update to 0.6.19
* Mon Dec 12 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.20-1mamba
- update to 0.6.20
* Mon Jul 25 2011 Automatic Build System <autodist@mambasoft.it> 0.6.16-1mamba
- update to 0.6.16
* Sun Jun 19 2011 Automatic Build System <autodist@mambasoft.it> 0.6.15-1mamba
- automatic update by autodist
* Wed May 04 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.14-1mamba
- update to 0.6.14
- added PackageKit-qt2 from upstream
- split devel packages
- rebuild with NetworkManager and instrospection support
* Mon Apr 25 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.13-3mamba
- SmartBackend: added patch to fix upgrade and disable trust check because it is not supported
* Sun Apr 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.13-2mamba
- smart backend: revert a patch that disables What-Provides function (http://cgit.freedesktop.org/packagekit/patch/?id=1184745dd4e4597839b5e595d23b0816ff54c3d0)
- smartBackend.py: added patch to fix best install choice by preferring already installed packages for virtual provides
- smartBackend.py: added patch to fix error on ChangeLog parsing
- packagekit-qt: added upstream patch to fix searchGroups function
* Sun Apr 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.13-1mamba
- update to 0.6.13
* Sat Mar 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.12-1mamba
- update to 0.6.12
* Wed Jan 12 2011 Automatic Build System <autodist@mambasoft.it> 0.6.9-2mamba
- automatic update by autodist
* Thu Oct 07 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.9-1mamba
- update to 0.6.9
* Wed Oct 06 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.8-2mamba
- rebuilt with --disable-networkmanager
* Wed Oct 06 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.8-1mamba
- update to 0.6.8
* Tue Aug 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.7-1mamba
- update to 0.6.7
* Sat Jul 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.6-1mamba
- update to 0.6.6
- added a patch that adds matches between openmamba groups and PackageKit ones
- added patch to configure Vendor.conf for openmamba
* Wed Jun 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.5-1mamba
- update to 0.6.5
* Sat Apr 03 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.3-1mamba
- update to 0.6.3
* Mon Mar 15 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.2-1mamba
- package created by autospec