%bcond_without bundled_libhif Summary: Client side upgrade program and server side compose tool Name: rpm-ostree Version: 2016.3 Release: 1%{?dist} #VCS: https://github.com/cgwalters/rpm-ostree # This tarball is generated via "make -f Makefile.dist-packaging dist-snapshot" Source0: rpm-ostree-%{version}.tar.xz # https://github.com/rpm-software-management/libhif # Bundled because the library is API/ABI unstable, and we're trying to # avoid being version locked with PackageKit/dnf right now. # This source is generated via # git archive --format=tar --prefix=libhif/ %if %{with bundled_libhif} Source1: libhif.tar.gz Provides: bundled(libhif) = 0.7.0 %endif License: LGPLv2+ URL: https://github.com/projectatomic/rpm-ostree # We always run autogen.sh BuildRequires: autoconf automake libtool git # For docs BuildRequires: chrpath BuildRequires: gtk-doc BuildRequires: gnome-common BuildRequires: gobject-introspection # Core requirements BuildRequires: pkgconfig(ostree-1) >= 2015.1 BuildRequires: pkgconfig(libgsystem) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(rpm) BuildRequires: pkgconfig(libarchive) BuildRequires: libcap-devel BuildRequires: libattr-devel # We currently interact directly with librepo BuildRequires: pkgconfig(librepo) %if %{with bundled_libhif} BuildRequires: cmake BuildRequires: pkgconfig(expat) BuildRequires: pkgconfig(check) BuildRequires: python-devel BuildRequires: python-sphinx %if (0%{?rhel} != 0 && 0%{?rhel} <= 7) BuildRequires: libsolv-devel %else BuildRequires: pkgconfig(libsolv) %endif %else BuildRequires: pkgconfig(libhif) %endif Requires: ostree >= 2014.6 # In CentOS7/RHEL the package is client-only right now, but we can do both %if 0%{?rhel} != 0 && 0%{?rhel} <= 7 Provides: rpm-ostree-client %endif # We're using RPATH to pick up our bundled version %global __requires_exclude ^libhif[.]so[.].*$ %description This tool binds together the world of RPM packages with the OSTree model of bootable filesystem trees. It provides commands usable both on client systems as well as server-side composes. %package devel Summary: Development headers for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package includes the header files for the %{name} library. %prep %autosetup -Sgit -n %{name}-%{version} %if %{with bundled_libhif} tar xf %{SOURCE1} %endif %build %if %{with bundled_libhif} (cd libhif cmake \ -DCMAKE_INSTALL_PREFIX:PATH=%{_libexecdir}/rpm-ostree \ -DINCLUDE_INSTALL_DIR:PATH=%{_libexecdir}/rpm-ostree/include \ -DLIB_INSTALL_DIR:PATH=%{_libexecdir}/rpm-ostree \ -DSYSCONF_INSTALL_DIR:PATH=%{_libexecdir}/rpm-ostree/etc \ -DSHARE_INSTALL_PREFIX:PATH=%{_libexecdir}/rpm-ostree/share \ -DLIB_SUFFIX=64 \ -DBUILD_SHARED_LIBS:BOOL=ON . make %{?_smp_mflags} cat > libhif/libhif.pc< autofiles.py < 0: sys.stderr.write('{0} matched {1} files\n'.format(line, len(files))) sys.stdout.write(line + '\n') else: sys.stderr.write('{0} did not match any files\n'.format(line)) EOF python autofiles.py > files \ '%{_bindir}/*' \ '%{_libdir}/%{name}' \ '%{_libdir}/*.so.*' \ '%{_mandir}/man*/*' \ '%{_libdir}/girepository-1.0/*.typelib' \ '%{_sysconfdir}/dbus-1/system.d/*' \ '%{_prefix}/lib/systemd/system/*' \ '%{_libexecdir}/rpm-ostree*' \ '%{_datadir}/dbus-1/system-services' python autofiles.py > files.devel \ '%{_libdir}/lib*.so' \ '%{_includedir}/*' \ '%{_libdir}/pkgconfig/*' \ '%{_datadir}/gtk-doc/html/*' \ '%{_datadir}/gir-1.0/*-1.0.gir' %files -f files %doc COPYING README.md %files devel -f files.devel %changelog * Fri May 20 2016 Colin Walters - 2016.3-2 - New upstream version * Thu Mar 31 2016 Colin Walters - 2016.1-3 - Backport patch to fix Fedora composes writing data into source file:/// URIs * Thu Mar 24 2016 Colin Walters - 2016.1-2 - New upstream version * Tue Feb 23 2016 Colin Walters - 2015.11.43.ga2c052b-2 - New git snapshot, just getting some new code out there - We are now bundling a copy of libhif, as otherwise coordinated releases with PackageKit/dnf would be required, and we are not ready for that yet. * Wed Feb 10 2016 Matthew Barnes - 2015.11-3 - Fix URL: https://github.com/projectatomic/rpm-ostree * Thu Feb 04 2016 Fedora Release Engineering - 2015.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Dec 15 2015 Colin Walters - 2015.11-1 - New upstream version * Sat Nov 21 2015 Colin Walters - 2015.10-1 - New upstream version * Mon Nov 09 2015 Colin Walters - 2015.9-4 - Fix files list for -devel, which should in turn fix Anaconda builds which pull in rpm-ostree, but should not have devel bits. * Sat Oct 31 2015 Colin Walters - 2015.9-3 - Add patch that should fix bodhis use of --workdir-tmpfs * Sat Sep 05 2015 Kalev Lember - 2015.9-2 - Rebuilt for librpm soname bump * Wed Aug 26 2015 Colin Walters - 2015.9-2 - New upstream version * Tue Aug 04 2015 Colin Walters - 2015.8-1 - New upstream version * Mon Jul 27 2015 Colin Walters - 2015.7-5 - rebuilt * Mon Jul 20 2015 Colin Walters - 2015.7-4 - Rebuild for CentOS update to libhif * Tue Jun 16 2015 Colin Walters - 2015.7-3 - Rebuild to pick up hif_source_set_required() * Mon Jun 15 2015 Colin Walters - 2015.7-2 - New upstream version * Tue Jun 09 2015 Colin Walters - 2015.6-2 - New upstream version * Tue May 12 2015 Colin Walters - 2015.5-3 - Add patch to fix rawhide composes * Mon May 11 2015 Colin Walters - 2015.5-2 - New upstream release Adds shared library and -devel subpackage * Fri Apr 10 2015 Colin Walters - 2015.4-2 - New upstream release Port to libhif, drops dependency on yum. * Thu Apr 09 2015 Colin Walters - 2015.3-8 - Cherry pick f21 patch to disable read only /etc with yum which breaks when run inside docker * Wed Apr 08 2015 Colin Walters - 2015.3-7 - Add patch to use yum-deprecated Resolves: #1209695 * Fri Feb 27 2015 Colin Walters - 2015.3-5 - Drop /usr/bin/atomic, now provided by the "atomic" package * Fri Feb 06 2015 Dennis Gilmore - 2015.3-4 - add git to BuildRequires * Thu Feb 05 2015 Colin Walters - 2015.3-3 - Adapt to Hawkey 0.5.3 API break * Thu Feb 05 2015 Dennis Gilmore - 2015.3-3 - rebuild for libhawkey soname bump * Fri Jan 23 2015 Colin Walters - 2015.3-2 - New upstream release * Thu Jan 08 2015 Colin Walters - 2015.2-1 - New upstream release * Wed Dec 17 2014 Colin Walters - 2014.114-2 - New upstream release * Tue Nov 25 2014 Colin Walters - 2014.113-1 - New upstream release * Mon Nov 24 2014 Colin Walters - 2014.112-1 - New upstream release * Mon Nov 17 2014 Colin Walters - 2014.111-1 - New upstream release * Fri Nov 14 2014 Colin Walters - 2014.110-1 - New upstream release * Fri Oct 24 2014 Colin Walters - 2014.109-1 - New upstream release * Sat Oct 04 2014 Colin Walters - 2014.107-2 - New upstream release * Mon Sep 08 2014 Colin Walters - 2014.106-3 - New upstream release - Bump requirement on ostree * Mon Aug 18 2014 Fedora Release Engineering - 2014.105-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Aug 08 2014 Colin Walters - 2014.105-2 - New upstream release * Sun Jul 13 2014 Colin Walters - New upstream release * Sat Jun 21 2014 Colin Walters - New upstream release - Bump OSTree requirements - Enable hawkey package diff, we have new enough versions of libsolv/hawkey - Enable /usr/bin/atomic symbolic link * Tue Jun 10 2014 Colin Walters - New upstream git snapshot * Sun Jun 08 2014 Fedora Release Engineering - 2014.101-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri May 30 2014 Colin Walters - New upstream release * Fri May 23 2014 Colin Walters - Previous autobuilder code is split off into rpm-ostree-toolbox * Sun Apr 13 2014 Colin Walters - New upstream release * Tue Apr 08 2014 Colin Walters - Drop requires on yum to allow minimal images without it * Mon Mar 31 2014 Colin Walters - New upstream release * Sat Mar 22 2014 Colin Walters - 2014.6.3.g5707fa7-2 - Bump ostree version requirement * Sat Mar 22 2014 Colin Walters - 2014.6.3.g5707fa7-1 - New git snapshot, add rpm-ostree-sign to file list * Sat Mar 22 2014 Colin Walters - 2014.6-1 - New upstream version * Fri Mar 07 2014 Colin Walters - 2014.5-1 - Initial package