From f2b29745c8dbec2b39c5e80c26acac8503ffbb6b Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Oct 22 2019 18:04:47 +0000 Subject: import compat-PackageKit08-0.8.9-1.el7 --- diff --git a/.compat-PackageKit08.metadata b/.compat-PackageKit08.metadata new file mode 100644 index 0000000..b233f4b --- /dev/null +++ b/.compat-PackageKit08.metadata @@ -0,0 +1 @@ +d69ee5f4429b6b315f259712adc43e0b081e4f5b SOURCES/PackageKit-0.8.9.tar.xz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e9f25f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/PackageKit-0.8.9.tar.xz diff --git a/SOURCES/0001-Do-not-install-into-python_sitelib.patch b/SOURCES/0001-Do-not-install-into-python_sitelib.patch new file mode 100644 index 0000000..ae7fa93 --- /dev/null +++ b/SOURCES/0001-Do-not-install-into-python_sitelib.patch @@ -0,0 +1,33 @@ +From fae22c2f1bf5d40b0ba5cb47f597daaf3ed4ae6b Mon Sep 17 00:00:00 2001 +From: Richard Hughes +Date: Mon, 17 Mar 2014 19:35:04 +0000 +Subject: [PATCH] Do not install into python_sitelib + +The .pyc and .pyo files are actually architecture specific and this causes +PackageKit to fail the RHEL multilib self tests. +--- + configure.ac | 11 +++++++++-- + contrib/PackageKit.spec.in | 5 +++-- + 2 files changed, 12 insertions(+), 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 68ce26a..8cdabd7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -91,8 +91,14 @@ if test x$enable_python3 = xyes; then + else + AM_PATH_PYTHON([2.7]) + fi +- +-PYTHON_PACKAGE_DIR=${pythondir}/packagekit ++AC_ARG_WITH([python_package_dir], ++ AS_HELP_STRING([--with-python-package-dir=], ++ [Location for python modules])) ++if test -z "$with_python_package_dir" ; then ++ PYTHON_PACKAGE_DIR=${pythondir}/packagekit ++else ++ PYTHON_PACKAGE_DIR=${with_python_package_dir}/packagekit ++fi + AC_SUBST(PYTHON_PACKAGE_DIR) + + if test "$GCC" = "yes"; then diff --git a/SPECS/compat-PackageKit08.spec b/SPECS/compat-PackageKit08.spec new file mode 100644 index 0000000..0731f0b --- /dev/null +++ b/SPECS/compat-PackageKit08.spec @@ -0,0 +1,113 @@ +%global _changelog_trimtime %(date +%s -d "1 year ago") + +%define _default_patch_fuzz 2 +%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +Summary: Compat package with PackageKit 0.8.9 libraries +Name: compat-PackageKit08 +Version: 0.8.9 +Release: 1%{?dist} +License: GPLv2+ and LGPLv2+ +URL: http://www.packagekit.org +Source0: http://www.packagekit.org/releases/PackageKit-%{version}.tar.xz + +# Upstream already +Patch5: 0001-Do-not-install-into-python_sitelib.patch + +# required by patch4 +BuildRequires: automake gtk-doc libtool +BuildRequires: glib2-devel >= 2.16.1 +BuildRequires: dbus-devel >= 1.1.1 +BuildRequires: dbus-glib-devel >= 0.74 +BuildRequires: pam-devel +BuildRequires: libX11-devel +BuildRequires: xmlto +BuildRequires: gtk-doc +BuildRequires: gcc-c++ +BuildRequires: sqlite-devel +BuildRequires: NetworkManager-devel +BuildRequires: polkit-devel >= 0.92 +BuildRequires: libtool +BuildRequires: gtk2-devel +BuildRequires: gtk3-devel +BuildRequires: docbook-utils +BuildRequires: gnome-doc-utils +BuildRequires: python-devel +BuildRequires: perl(XML::Parser) +BuildRequires: intltool +BuildRequires: gettext +BuildRequires: libgudev1-devel +BuildRequires: libarchive-devel +BuildRequires: pango-devel +BuildRequires: fontconfig-devel +BuildRequires: systemd-devel +BuildRequires: gobject-introspection-devel + +%description +Compatibility package with PackageKit 0.8 libraries. + +%package -n compat-libpackagekit-glib2-16 +Summary: Compatibility package with PackageKit 0.8 libraries +Conflicts: PackageKit-glib < 0.9 + +%description -n compat-libpackagekit-glib2-16 +Compatibility package with PackageKit 0.8 libraries. + +%prep +%setup -q -n PackageKit-%{version} +%patch5 -p1 -b .python_sitelib + +NOCONFIGURE=1 ./autogen.sh + +%build +%configure \ + --disable-static \ + --disable-yum \ + --disable-bash-completion \ + --with-default-backend=auto \ + --with-python-package-dir=%{python_sitearch} \ + --disable-local \ + --disable-strict \ + --disable-silent-rules \ + --disable-tests + +make %{?_smp_mflags} V=1 + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +rm -rf $RPM_BUILD_ROOT%{_sysconfdir} +rm -rf $RPM_BUILD_ROOT%{_bindir} +rm -rf $RPM_BUILD_ROOT%{_includedir} +rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/systemd +rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/udev +rm -rf $RPM_BUILD_ROOT%{_libdir}/girepository-1.0/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-3.0/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/libpackagekit-glib2.la +rm -rf $RPM_BUILD_ROOT%{_libdir}/libpackagekit-glib2.so +rm -rf $RPM_BUILD_ROOT%{_libdir}/mozilla/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/packagekit-plugins/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/pm-utils/ +rm -rf $RPM_BUILD_ROOT%{_libdir}/pm-utils/ +rm -rf $RPM_BUILD_ROOT%{python_sitearch} +rm -rf $RPM_BUILD_ROOT%{_libexecdir} +rm -rf $RPM_BUILD_ROOT%{_sbindir} +rm -rf $RPM_BUILD_ROOT%{_datadir} +rm -rf $RPM_BUILD_ROOT%{_localstatedir} + +%post -n compat-libpackagekit-glib2-16 -p /sbin/ldconfig + +%postun -n compat-libpackagekit-glib2-16 -p /sbin/ldconfig + +%files -n compat-libpackagekit-glib2-16 +%doc COPYING +%{_libdir}/libpackagekit-glib2.so.* + +%changelog +* Tue May 05 2015 Richard Hughes - 0.8.9-1 +- New compat package for RHEL +- Resolves: #1184214