Blame SPECS/compat-PackageKit08.spec

4a2b61
%global _changelog_trimtime %(date +%s -d "1 year ago")
4a2b61
4a2b61
%define _default_patch_fuzz 2
4a2b61
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
4a2b61
4a2b61
Summary:   Compat package with PackageKit 0.8.9 libraries
4a2b61
Name:      compat-PackageKit08
4a2b61
Version:   0.8.9
4a2b61
Release:   1%{?dist}
4a2b61
License:   GPLv2+ and LGPLv2+
4a2b61
URL:       http://www.packagekit.org
4a2b61
Source0:   http://www.packagekit.org/releases/PackageKit-%{version}.tar.xz
4a2b61
4a2b61
# Upstream already
4a2b61
Patch5: 0001-Do-not-install-into-python_sitelib.patch
4a2b61
4a2b61
# required by patch4
4a2b61
BuildRequires: automake gtk-doc libtool
4a2b61
BuildRequires: glib2-devel >= 2.16.1
4a2b61
BuildRequires: dbus-devel  >= 1.1.1
4a2b61
BuildRequires: dbus-glib-devel >= 0.74
4a2b61
BuildRequires: pam-devel
4a2b61
BuildRequires: libX11-devel
4a2b61
BuildRequires: xmlto
4a2b61
BuildRequires: gtk-doc
4a2b61
BuildRequires: gcc-c++
4a2b61
BuildRequires: sqlite-devel
4a2b61
BuildRequires: NetworkManager-devel
4a2b61
BuildRequires: polkit-devel >= 0.92
4a2b61
BuildRequires: libtool
4a2b61
BuildRequires: gtk2-devel
4a2b61
BuildRequires: gtk3-devel
4a2b61
BuildRequires: docbook-utils
4a2b61
BuildRequires: gnome-doc-utils
4a2b61
BuildRequires: python-devel
4a2b61
BuildRequires: perl(XML::Parser)
4a2b61
BuildRequires: intltool
4a2b61
BuildRequires: gettext
4a2b61
BuildRequires: libgudev1-devel
4a2b61
BuildRequires: libarchive-devel
4a2b61
BuildRequires: pango-devel
4a2b61
BuildRequires: fontconfig-devel
4a2b61
BuildRequires: systemd-devel
4a2b61
BuildRequires: gobject-introspection-devel
4a2b61
4a2b61
%description
4a2b61
Compatibility package with PackageKit 0.8 libraries.
4a2b61
4a2b61
%package -n compat-libpackagekit-glib2-16
4a2b61
Summary: Compatibility package with PackageKit 0.8 libraries
4a2b61
Conflicts: PackageKit-glib < 0.9
4a2b61
4a2b61
%description -n compat-libpackagekit-glib2-16
4a2b61
Compatibility package with PackageKit 0.8 libraries.
4a2b61
4a2b61
%prep
4a2b61
%setup -q -n PackageKit-%{version}
4a2b61
%patch5 -p1 -b .python_sitelib
4a2b61
4a2b61
NOCONFIGURE=1 ./autogen.sh
4a2b61
4a2b61
%build
4a2b61
%configure \
4a2b61
        --disable-static \
4a2b61
        --disable-yum \
4a2b61
        --disable-bash-completion \
4a2b61
        --with-default-backend=auto \
4a2b61
        --with-python-package-dir=%{python_sitearch} \
4a2b61
        --disable-local \
4a2b61
        --disable-strict \
4a2b61
        --disable-silent-rules \
4a2b61
        --disable-tests
4a2b61
4a2b61
make %{?_smp_mflags} V=1
4a2b61
4a2b61
%install
4a2b61
make install DESTDIR=$RPM_BUILD_ROOT
4a2b61
4a2b61
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}
4a2b61
rm -rf $RPM_BUILD_ROOT%{_bindir}
4a2b61
rm -rf $RPM_BUILD_ROOT%{_includedir}
4a2b61
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/systemd
4a2b61
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/udev
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/girepository-1.0/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/gnome-settings-daemon-3.0/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/gtk-3.0/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/libpackagekit-glib2.la
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/libpackagekit-glib2.so
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/mozilla/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/packagekit-backend/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/packagekit-plugins/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/pm-utils/
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libdir}/pm-utils/
4a2b61
rm -rf $RPM_BUILD_ROOT%{python_sitearch}
4a2b61
rm -rf $RPM_BUILD_ROOT%{_libexecdir}
4a2b61
rm -rf $RPM_BUILD_ROOT%{_sbindir}
4a2b61
rm -rf $RPM_BUILD_ROOT%{_datadir}
4a2b61
rm -rf $RPM_BUILD_ROOT%{_localstatedir}
4a2b61
4a2b61
%post -n compat-libpackagekit-glib2-16 -p /sbin/ldconfig
4a2b61
4a2b61
%postun -n compat-libpackagekit-glib2-16 -p /sbin/ldconfig
4a2b61
4a2b61
%files -n compat-libpackagekit-glib2-16
4a2b61
%doc COPYING
4a2b61
%{_libdir}/libpackagekit-glib2.so.*
4a2b61
4a2b61
%changelog
4a2b61
* Tue May 05 2015 Richard Hughes <rhughes@redhat.com> - 0.8.9-1
4a2b61
- New compat package for RHEL
4a2b61
- Resolves: #1184214