Blame SPECS/compat-colord10.spec

5d1b27
Summary:   Compat package with colord 1.0 libraries
5d1b27
Name:      compat-colord10
5d1b27
Version:   1.0.4
5d1b27
Release:   1%{?dist}
5d1b27
License:   GPLv2+ and LGPLv2+
5d1b27
URL:       http://www.freedesktop.org/software/colord/
5d1b27
Source0:   http://www.freedesktop.org/software/colord/releases/colord-%{version}.tar.xz
5d1b27
5d1b27
BuildRequires: dbus-devel
5d1b27
BuildRequires: docbook-utils
5d1b27
BuildRequires: gettext
5d1b27
BuildRequires: glib2-devel
5d1b27
BuildRequires: intltool
5d1b27
BuildRequires: systemd-devel
5d1b27
BuildRequires: lcms2-devel >= 2.2
5d1b27
BuildRequires: libgudev1-devel
5d1b27
BuildRequires: polkit-devel >= 0.103
5d1b27
BuildRequires: sqlite-devel
5d1b27
BuildRequires: gobject-introspection-devel
5d1b27
BuildRequires: libgusb-devel
5d1b27
BuildRequires: color-filesystem
5d1b27
5d1b27
%description
5d1b27
Compatibility package with colord 1.0 libraries.
5d1b27
5d1b27
%package -n compat-libcolord1
5d1b27
Summary: Compat package with colord 1.0 libraries
5d1b27
Conflicts: colord < 1.2
5d1b27
5d1b27
%description -n compat-libcolord1
5d1b27
Compatibility package with colord 1.0 libraries.
5d1b27
5d1b27
%prep
5d1b27
%setup -q -n colord-%{version}
5d1b27
5d1b27
%build
5d1b27
%configure \
5d1b27
        --with-daemon-user=colord \
5d1b27
        --disable-gtk-doc \
5d1b27
        --disable-vala \
5d1b27
        --disable-print-profiles \
5d1b27
        --disable-bash-completion \
5d1b27
        --disable-static \
5d1b27
        --disable-rpath \
5d1b27
        --disable-examples \
5d1b27
        --disable-silent-rules \
5d1b27
        --disable-dependency-tracking
5d1b27
5d1b27
make %{?_smp_mflags}
5d1b27
5d1b27
%install
5d1b27
make install DESTDIR=$RPM_BUILD_ROOT
5d1b27
5d1b27
# Remove static libs and libtool archives.
5d1b27
find %{buildroot} -name '*.la' -exec rm -f {} ';'
5d1b27
find %{buildroot} -name '*.a' -exec rm -f {} ';'
5d1b27
5d1b27
rm -rf $RPM_BUILD_ROOT%{_sysconfdir}
5d1b27
rm -rf $RPM_BUILD_ROOT%{_bindir}
5d1b27
rm -rf $RPM_BUILD_ROOT%{_includedir}
5d1b27
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/systemd
5d1b27
rm -rf $RPM_BUILD_ROOT%{_prefix}/lib/udev
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/colord-plugins/
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/colord-sensors/
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/girepository-1.0/
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/libcolord.la
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/libcolord.so
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/libcolordprivate.lo
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/libcolordprivate.so
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/libcolorhug*
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
5d1b27
rm -rf $RPM_BUILD_ROOT%{_libexecdir}
5d1b27
rm -rf $RPM_BUILD_ROOT%{_datadir}
5d1b27
5d1b27
%post -n compat-libcolord1 -p /sbin/ldconfig
5d1b27
5d1b27
%postun -n compat-libcolord1 -p /sbin/ldconfig
5d1b27
5d1b27
%files -n compat-libcolord1
5d1b27
%doc COPYING
5d1b27
%{_libdir}/libcolord.so.*
5d1b27
%{_libdir}/libcolordprivate.so.*
5d1b27
5d1b27
%changelog
5d1b27
* Tue May 05 2015 Richard Hughes <rhughes@redhat.com> - 1.0.4-1
5d1b27
- New compat package for RHEL
5d1b27
- Resolves: #1184213