Blame SPECS/libhif.spec

9c11e1
Summary:   Simple package library built on top of hawkey and librepo
9c11e1
Name:      libhif
9c11e1
Version:   0.2.1
9c11e1
Release:   2%{?dist}
9c11e1
License:   LGPLv2+
9c11e1
URL:       https://github.com/hughsie/libhif
9c11e1
Source0:   http://people.freedesktop.org/~hughsient/releases/libhif-%{version}.tar.xz
9c11e1
9c11e1
BuildRequires: glib2-devel >= 2.16.1
9c11e1
BuildRequires: libtool
9c11e1
BuildRequires: docbook-utils
9c11e1
BuildRequires: gtk-doc
9c11e1
BuildRequires: gobject-introspection-devel
9c11e1
BuildRequires: hawkey-devel >= 0.4.6
9c11e1
BuildRequires: rpm-devel >= 4.11.0
9c11e1
BuildRequires: librepo-devel >= 1.7.11
9c11e1
BuildRequires: libsolv-devel
9c11e1
9c11e1
# Bootstrap build requirements
9c11e1
BuildRequires: automake autoconf libtool
9c11e1
9c11e1
# backport from master branch
9c11e1
Patch0:    support-subscription-manager.patch
9c11e1
9c11e1
%description
9c11e1
This library provides a simple interface to hawkey and librepo and is currently
9c11e1
used by PackageKit and rpm-ostree.
9c11e1
9c11e1
%package devel
9c11e1
Summary: GLib Libraries and headers for libhif
9c11e1
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
9c11e1
9c11e1
%description devel
9c11e1
GLib headers and libraries for libhif.
9c11e1
9c11e1
%prep
9c11e1
%setup -q
9c11e1
%patch0 -p1 -b .subscription-manager
9c11e1
9c11e1
%build
9c11e1
# Support builds of both git snapshots and tarballs
9c11e1
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
9c11e1
%configure \
9c11e1
        --enable-gtk-doc \
9c11e1
        --disable-static \
9c11e1
        --disable-silent-rules
9c11e1
)
9c11e1
9c11e1
make %{?_smp_mflags}
9c11e1
9c11e1
%install
9c11e1
make install DESTDIR=$RPM_BUILD_ROOT
9c11e1
9c11e1
rm -f $RPM_BUILD_ROOT%{_libdir}/libhif*.la
9c11e1
9c11e1
%post -p /sbin/ldconfig
9c11e1
9c11e1
%postun -p /sbin/ldconfig
9c11e1
9c11e1
%files
9c11e1
%doc README.md AUTHORS NEWS COPYING
9c11e1
%{_libdir}/libhif.so.1*
9c11e1
%{_libdir}/girepository-1.0/*.typelib
9c11e1
9c11e1
%files devel
9c11e1
%{_libdir}/libhif.so
9c11e1
%{_libdir}/pkgconfig/libhif.pc
9c11e1
%dir %{_includedir}/libhif
9c11e1
%{_includedir}/libhif/*.h
9c11e1
%{_datadir}/gtk-doc
9c11e1
%{_datadir}/gir-1.0/*.gir
9c11e1
9c11e1
%changelog
9c11e1
* Mon Jul 27 2015 Richard Hughes <rhughes@redhat.com> 0.2.1-2
9c11e1
- Support enrollment engines such as subscription-manager.
9c11e1
- Resolves: #1223417
9c11e1
9c11e1
* Mon Jul 13 2015 Richard Hughes <rhughes@redhat.com> 0.2.1-1
9c11e1
- Rebase to latest upstream version to pick up upstreamed patches.
9c11e1
- Resolves: #1220484
9c11e1
9c11e1
* Thu May 28 2015 Richard Hughes <rhughes@redhat.com> 0.2.0-3
9c11e1
- Initial import
9c11e1
- Resolves: #1220484