Blame SPECS/libhif.spec

9fd87f
Summary:   Simple package library built on top of hawkey and librepo
9fd87f
Name:      libhif
9fd87f
Version:   0.2.0
9fd87f
Release:   5.atomic.0%{?dist}
9fd87f
License:   LGPLv2+
9fd87f
URL:       https://github.com/hughsie/libhif
9fd87f
Source0:   http://people.freedesktop.org/~hughsient/releases/libhif-%{version}.tar.xz
9fd87f
# https://bugzilla.redhat.com/show_bug.cgi?id=1211991
9fd87f
Patch0:    0001-transaction-Remove-obsoleted-packages-when-committin.patch
9fd87f
# https://bugzilla.redhat.com/show_bug.cgi?id=1221158
9fd87f
Patch1:    0001-context-Fix-rpmdb-file-monitor-with-installs.patch
9fd87f
9fd87f
BuildRequires: glib2-devel >= 2.16.1
9fd87f
BuildRequires: libtool
9fd87f
BuildRequires: docbook-utils
9fd87f
BuildRequires: gtk-doc
9fd87f
BuildRequires: gobject-introspection-devel
9fd87f
BuildRequires: hawkey-devel >= 0.5.6
9fd87f
BuildRequires: rpm-devel >= 4.11.0
9fd87f
BuildRequires: librepo-devel >= 1.7.11
9fd87f
BuildRequires: libsolv-devel
9fd87f
9fd87f
# Bootstrap build requirements
9fd87f
BuildRequires: automake autoconf libtool
9fd87f
9fd87f
%description
9fd87f
This library provides a simple interface to hawkey and librepo and is currently
9fd87f
used by PackageKit and rpm-ostree.
9fd87f
9fd87f
%package devel
9fd87f
Summary: GLib Libraries and headers for libhif
9fd87f
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
9fd87f
9fd87f
%description devel
9fd87f
GLib headers and libraries for libhif.
9fd87f
9fd87f
%prep
9fd87f
%setup -q
9fd87f
%patch0 -p1
9fd87f
%patch1 -p1
9fd87f
9fd87f
%build
9fd87f
# Support builds of both git snapshots and tarballs
9fd87f
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
9fd87f
%configure \
9fd87f
        --enable-gtk-doc \
9fd87f
        --disable-static \
9fd87f
        --disable-silent-rules
9fd87f
)
9fd87f
9fd87f
make %{?_smp_mflags}
9fd87f
9fd87f
%install
9fd87f
make install DESTDIR=$RPM_BUILD_ROOT
9fd87f
9fd87f
rm -f $RPM_BUILD_ROOT%{_libdir}/libhif*.la
9fd87f
9fd87f
%post -p /sbin/ldconfig
9fd87f
9fd87f
%postun -p /sbin/ldconfig
9fd87f
9fd87f
%files
9fd87f
%doc README.md AUTHORS NEWS COPYING
9fd87f
%{_libdir}/libhif.so.1*
9fd87f
%{_libdir}/girepository-1.0/*.typelib
9fd87f
9fd87f
%files devel
9fd87f
%{_libdir}/libhif.so
9fd87f
%{_libdir}/pkgconfig/libhif.pc
9fd87f
%dir %{_includedir}/libhif
9fd87f
%{_includedir}/libhif/*.h
9fd87f
%{_datadir}/gtk-doc
9fd87f
%{_datadir}/gir-1.0/*.gir
9fd87f
9fd87f
%changelog
9fd87f
* Sun May 17 2015 Colin Walters <walters@redhat.com> - 0.2.0-5.atomic.0
9fd87f
- Rebuild against latest hawkey
9fd87f
9fd87f
* Fri May 15 2015 Colin Walters <walters@redhat.com> - 0.2.0-4.atomic.0
9fd87f
- Build for atomic
9fd87f
9fd87f
* Wed May 13 2015 Kalev Lember <kalevlember@gmail.com> 0.2.0-3
9fd87f
- context: Fix rpmdb file monitor with / installs (#1221158)
9fd87f
9fd87f
* Wed Apr 15 2015 Kalev Lember <kalevlember@gmail.com> 0.2.0-2
9fd87f
- Remove obsoleted packages when committing transaction (#1211991)
9fd87f
9fd87f
* Wed Apr 08 2015 Richard Hughes <richard@hughsie.com> 0.2.0-1
9fd87f
- Update to new upstream version
9fd87f
- Add new API required for ostree
9fd87f
9fd87f
* Sat Mar 28 2015 Kalev Lember <kalevlember@gmail.com> - 0.1.8-7
9fd87f
- Fix broken -devel package requires
9fd87f
9fd87f
* Mon Mar 16 2015 Than Ngo <than@redhat.com> - 0.1.8-6
9fd87f
- bump release and rebuild so that koji-shadow can rebuild it
9fd87f
  against new gcc on secondary arch
9fd87f
9fd87f
* Fri Feb 06 2015 Richard Hughes <richard@hughsie.com> 0.1.8-5
9fd87f
- Adapt to the new hawkey API.
9fd87f
9fd87f
* Tue Feb 03 2015 Richard Hughes <richard@hughsie.com> 0.1.8-4
9fd87f
- Do not crash when file:///tmp exists, but file:///tmp/repodata does not
9fd87f
9fd87f
* Tue Feb 03 2015 Richard Hughes <richard@hughsie.com> 0.1.8-3
9fd87f
- Do not add the source to the sack if it does not exist, which fixes a crash
9fd87f
  for repo files with things like baseurl=file:///notgoingtoexist
9fd87f
- Resolves: #1135740
9fd87f
9fd87f
* Tue Feb 03 2015 Richard Hughes <richard@hughsie.com> 0.1.8-2
9fd87f
- Ensure the mirror list is set before trying to download packages
9fd87f
- This works around a librepo behaviour change in the latest update
9fd87f
- Resolves: #1188600
9fd87f
9fd87f
* Mon Jan 19 2015 Richard Hughes <richard@hughsie.com> 0.1.8-1
9fd87f
- Update to new upstream version
9fd87f
- Do not attempt to read from a closed file descriptor
9fd87f
- Do not use hif_context_get_transaction() from multiple threads
9fd87f
- Ensure HifContext can be finalised to prevent rpmdb index corruption
9fd87f
- Resolves: #1183010
9fd87f
9fd87f
* Thu Jan 15 2015 Richard Hughes <richard@hughsie.com> 0.1.7-3
9fd87f
- Do not download the mirrorlists when checking for updates
9fd87f
- Resolves: #1181501
9fd87f
9fd87f
* Wed Jan 14 2015 Richard Hughes <richard@hughsie.com> 0.1.7-2
9fd87f
- Fix auto-importing of GPG keys during installing
9fd87f
- Resolves: #1182090 and #1182156
9fd87f
9fd87f
* Fri Dec 19 2014 Richard Hughes <richard@hughsie.com> 0.1.7-1
9fd87f
- Update to new upstream version
9fd87f
- Add the concept of metadata-only software sources
9fd87f
- Correctly update sources with baseurls ending with a slash
9fd87f
- Don't unref the HifSource when invalidating as this is not threadsafe
9fd87f
- Improve handling of local metadata
9fd87f
- Support appstream and appstream-icons metadata types
9fd87f
9fd87f
* Wed Nov 26 2014 Richard Hughes <richard@hughsie.com> 0.1.6-2
9fd87f
- Do not crash when trying to parse pathological files like bumblebee.repo
9fd87f
- Resolves: #1164330
9fd87f
9fd87f
* Mon Nov 11 2014 Richard Hughes <richard@hughsie.com> 0.1.6-1
9fd87f
- Update to new upstream version
9fd87f
- Add support for package reinstallation and downgrade
9fd87f
- Copy the vendor cache if present
9fd87f
- Ensure created directories are world-readable
9fd87f
- Support local repositories
9fd87f
9fd87f
* Mon Sep 22 2014 Richard Hughes <richard@hughsie.com> 0.1.5-1
9fd87f
- Update to new upstream version
9fd87f
- Add all native architectures for ARM and i386
9fd87f
- Check for libQtGui rather than libkde* to detect GUI apps
9fd87f
9fd87f
* Mon Sep 12 2014 Richard Hughes <richard@hughsie.com> 0.1.4-1
9fd87f
- Update to new upstream version
9fd87f
- Allow setting the default lock directory
9fd87f
- Ensure all the required directories exist when setting up the context
9fd87f
9fd87f
* Mon Sep 01 2014 Richard Hughes <richard@hughsie.com> 0.1.3-1
9fd87f
- Update to new upstream version
9fd87f
- Add an error path for when the sources are not valid
9fd87f
- Do not call hif_context_setup_sack() automatically
9fd87f
- Fix a logic error to fix refreshing with HIF_SOURCE_UPDATE_FLAG_FORCE
9fd87f
9fd87f
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.2-5
9fd87f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9fd87f
9fd87f
* Mon Jul 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.2-4
9fd87f
- Rebuilt for hawkey soname bump
9fd87f
9fd87f
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.1.2-3
9fd87f
- Rebuilt for gobject-introspection 1.41.4
9fd87f
9fd87f
* Sat Jul 19 2014 Kalev Lember <kalevlember@gmail.com> 0.1.2-2
9fd87f
- Fix a PK crash with locally mounted iso media (#1114207)
9fd87f
9fd87f
* Thu Jul 17 2014 Richard Hughes <richard@hughsie.com> 0.1.2-1
9fd87f
- Update to new upstream version
9fd87f
- Add HifContext accessor in -private for HifState
9fd87f
- Add name of failing repository
9fd87f
- Create an initial sack in HifContext
9fd87f
- Error if we can't find any package matching provided name
9fd87f
- Fix a mixup of HifStateAction and HifPackageInfo
9fd87f
- Improve rpm callback handling for packages in the cleanup state
9fd87f
- Only set librepo option if value is set
9fd87f
- Respect install root for rpmdb Packages monitor
9fd87f
9fd87f
* Mon Jun 23 2014 Richard Hughes <richard@hughsie.com> 0.1.1-1
9fd87f
- Update to new upstream version
9fd87f
- Fix a potential crash when removing software
9fd87f
- Only add system repository if it exists
9fd87f
- Pass install root to hawkey
9fd87f
9fd87f
* Tue Jun 10 2014 Richard Hughes <richard@hughsie.com> 0.1.0-1
9fd87f
- Initial version for Fedora package review
9fd87f