Blame SPECS/compat-PackageKit08.spec

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