Blame SPECS/ostree.spec

16ba32
Summary: Tool for managing bootable, immutable filesystem trees
16ba32
Name: ostree
2e1338
Version: 2018.1
2e1338
Release: 4%{?dist}
16ba32
#VCS: git:https://github.com/ostreedev/ostree
16ba32
# The source tarball is generated via make -C packaging dist-snapshot
16ba32
# which handles git submodules.
16ba32
Source0: https://github.com/ostreedev/%{name}/releases/download/v%{version}/libostree-%{version}.tar.xz
16ba32
Source1: 91-ostree.preset
16ba32
License: LGPLv2+
16ba32
URL: https://github.com/ostreedev/ostree
16ba32
2e1338
# https://bugzilla.redhat.com/show_bug.cgi?id=1498281
2e1338
Patch0: 0001-switchroot-Ensure-sysroot-is-set-to-private-propagat.patch
2e1338
# https://bugzilla.redhat.com/show_bug.cgi?id=1536991
2e1338
Patch1: 0001-deploy-SELinux-relabel-installed-kernel-initramfs-da.patch
2e1338
16ba32
# For autosetup
16ba32
BuildRequires: git
16ba32
# We always run autogen.sh
16ba32
BuildRequires: autoconf automake libtool
16ba32
# For docs
16ba32
BuildRequires: gtk-doc
16ba32
# Core requirements
16ba32
BuildRequires: pkgconfig(zlib)
16ba32
BuildRequires: pkgconfig(libcurl)
16ba32
BuildRequires: pkgconfig(openssl)
16ba32
BuildRequires: pkgconfig(libsoup-2.4)
16ba32
BuildRequires: libattr-devel
16ba32
# Extras
16ba32
BuildRequires: pkgconfig(libarchive)
16ba32
BuildRequires: pkgconfig(liblzma)
16ba32
BuildRequires: pkgconfig(libselinux)
16ba32
BuildRequires: pkgconfig(mount)
16ba32
BuildRequires: pkgconfig(fuse)
16ba32
BuildRequires: pkgconfig(e2p)
16ba32
BuildRequires: libcap-devel
16ba32
BuildRequires: gpgme-devel
16ba32
BuildRequires: pkgconfig(libsystemd)
16ba32
BuildRequires: /usr/bin/g-ir-scanner
16ba32
BuildRequires: dracut
16ba32
BuildRequires:  bison
16ba32
16ba32
# Runtime requirements
16ba32
Requires: dracut
16ba32
Requires: systemd-units
16ba32
16ba32
# this ideally should match to the glib2 version from the buildroot:
16ba32
# https://bugzilla.redhat.com/show_bug.cgi?id=1371704
16ba32
Requires: glib2 >= 2.50
16ba32
16ba32
%description
16ba32
OSTree is a tool for managing bootable, immutable, versioned
16ba32
filesystem trees. While it takes over some of the roles of tradtional
16ba32
"package managers" like dpkg and rpm, it is not a package system; nor
16ba32
is it a tool for managing full disk images. Instead, it sits between
16ba32
those levels, offering a blend of the advantages (and disadvantages)
16ba32
of both.
16ba32
16ba32
%package devel
16ba32
Summary: Development headers for %{name}
16ba32
Group: Development/Libraries
16ba32
Requires: %{name} = %{version}-%{release}
16ba32
16ba32
%description devel
16ba32
The %{name}-devel package includes the header files for the %{name} library.
16ba32
16ba32
%ifnarch s390 s390x %{arm}
16ba32
%package grub2
16ba32
Summary: GRUB2 integration for OSTree
16ba32
Group: Development/Libraries
16ba32
%ifnarch aarch64
16ba32
Requires: grub2
16ba32
%else
16ba32
Requires: grub2-efi
16ba32
%endif
16ba32
Requires: ostree
16ba32
16ba32
%description grub2
16ba32
GRUB2 integration for OSTree
16ba32
%endif
16ba32
16ba32
%package fuse
16ba32
Summary: FUSE utilities for ostree
16ba32
Requires: fuse
16ba32
16ba32
%description fuse
16ba32
%{summary}
16ba32
16ba32
%prep
16ba32
%autosetup -n libostree-%{version} -Sgit
16ba32
16ba32
%build
16ba32
env NOCONFIGURE=1 ./autogen.sh
16ba32
%configure --disable-silent-rules \
16ba32
	   --enable-gtk-doc \
16ba32
	   --with-selinux \
16ba32
	   --with-curl \
16ba32
	   --with-openssl \
16ba32
	   --with-dracut=yesbutnoconf
16ba32
make %{?_smp_mflags}
16ba32
16ba32
%install
16ba32
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c"
16ba32
find $RPM_BUILD_ROOT -name '*.la' -delete
16ba32
install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_prefix}/lib/systemd/system-preset/91-ostree.preset
16ba32
# Right now we aren't doing installed tests here
16ba32
rm -f %{buildroot}%{_libexecdir}/libostree/ostree-trivial-httpd
16ba32
16ba32
%clean
16ba32
rm -rf $RPM_BUILD_ROOT
16ba32
16ba32
%post
16ba32
%systemd_post ostree-remount.service
16ba32
16ba32
%preun
16ba32
%systemd_preun ostree-remount.service
16ba32
16ba32
%files
16ba32
%{!?_licensedir:%global license %%doc}
16ba32
%license COPYING
16ba32
%doc README.md
16ba32
%{_bindir}/ostree
16ba32
%{_datadir}/ostree/trusted.gpg.d
16ba32
%{_sysconfdir}/ostree
16ba32
%{_datadir}/bash-completion/completions/*
16ba32
%dir %{_prefix}/lib/dracut/modules.d/98ostree
16ba32
%{_prefix}/lib/systemd/system/ostree*.service
16ba32
%{_prefix}/lib/dracut/modules.d/98ostree/*
16ba32
%{_libdir}/*.so.1*
16ba32
%{_libdir}/girepository-1.0/OSTree-1.0.typelib
16ba32
%{_mandir}/man*/*.gz
16ba32
%{_prefix}/lib/systemd/system-generators/ostree-system-generator
16ba32
%{_prefix}/lib/systemd/system-preset/91-ostree.preset
16ba32
%exclude %{_sysconfdir}/grub.d/*ostree
16ba32
%exclude %{_libexecdir}/libostree/grub2*
16ba32
%{_prefix}/lib/ostree/ostree-prepare-root
16ba32
%{_prefix}/lib/ostree/ostree-remount
16ba32
%{_prefix}/lib/tmpfiles.d/*
16ba32
%{_libexecdir}/libostree/*
16ba32
16ba32
%files fuse
16ba32
%{_bindir}/rofiles-fuse
16ba32
16ba32
%files devel
16ba32
%{_libdir}/lib*.so
16ba32
%{_includedir}/*
16ba32
%{_libdir}/pkgconfig/*
16ba32
%{_datadir}/gtk-doc/html/ostree
16ba32
%{_datadir}/gir-1.0/OSTree-1.0.gir
16ba32
16ba32
%ifnarch s390 s390x %{arm}
16ba32
%files grub2
16ba32
%{_sysconfdir}/grub.d/*ostree
16ba32
%{_libexecdir}/libostree/grub2*
16ba32
%endif
16ba32
16ba32
%changelog
2e1338
* Mon Feb 05 2018 Colin Walters <walters@redhat.com> - 2018.1-4
2e1338
- Backport patch for SELinux labels of kernels in /boot
2e1338
- Resolves: #1536991
2e1338
2e1338
* Tue Jan 30 2018 Colin Walters <walters@redhat.com> - 2018.1-3
2e1338
- Backport patch to fix mount propagation of /sysroot
2e1338
- Resolves: #1498281
2e1338
2e1338
* Fri Jan 19 2018 Colin Walters <walters@redhat.com> - 2018.1-2
2e1338
- New upstream version for 7.5.0
2e1338
- https://github.com/ostreedev/ostree/releases/tag/v2018.1
2e1338
- https://github.com/ostreedev/ostree/releases/tag/v2017.15
16ba32
16ba32
* Tue Dec 05 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.14-1
16ba32
- New upstream version for 7.4.4
16ba32
16ba32
* Mon Sep 25 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.11-1
16ba32
- New upstream version for 7.4.2
16ba32
16ba32
* Mon Aug 21 2017 Colin Walters <walters@redhat.com> - 2017.10-2
16ba32
- Switch to libcurl
16ba32
  Resolves: #1444903
16ba32
16ba32
* Mon Jun 19 2017 Colin Walters <walters@verbum.org> - 2017.7-1
16ba32
- New upstream version for 7.4
16ba32
16ba32
* Tue Jun 06 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.6-3
16ba32
- Add versioned runtime req on glib2 (RHBZ#1371704)
16ba32
16ba32
* Mon May 22 2017 Colin Walters <walters@verbum.org> - 2017.6-2
16ba32
- New upstream version
16ba32
16ba32
* Mon May 08 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.5-2
16ba32
- Rebuild for 7.4
16ba32
16ba32
* Mon May 01 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.5-1
16ba32
- New release
16ba32
  Resolves: #1447077
16ba32
16ba32
* Wed Apr 12 2017 Colin Walters <walters@verbum.org> - 2017.3-3
16ba32
- Rebuild for 7.4
16ba32
16ba32
* Thu Apr 06 2017 David Marlin <dmarlin@redhat.com>
16ba32
- Patch spec to get non-grub archs working again
16ba32
  Resolves: #1439395
16ba32
16ba32
* Wed Mar 29 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.3-2
16ba32
- Backport fix for ovl selinux labeling
16ba32
  Resolves: #1436751
16ba32
16ba32
* Tue Mar 21 2017 Colin Walters <walters@verbum.org> - 2017.3-1
16ba32
- New upstream version
16ba32
  Resolves: #1433422
16ba32
16ba32
* Thu Mar 09 2017 Colin Walters <walters@verbum.org> - 2017.1-4.atomic
16ba32
- grub2: Add a requires on ostree
16ba32
16ba32
* Thu Feb 23 2017 Colin Walters <walters@redhat.com> - 2017.1-3.atomic
16ba32
- Backport libmount unref patch
16ba32
  Resolves: #1426280
16ba32
16ba32
* Tue Jan 24 2017 Colin Walters <walters@verbum.org>
16ba32
- New upstream version
16ba32
  Resolves: #1416089
16ba32
- Drop BR/requires on libgsystem, we do not use it anymore
16ba32
- Enable libmount code so we handle /boot being ro
16ba32
16ba32
* Mon Dec 12 2016 walters@redhat.com - 2016.15-1.atomic
16ba32
- New upstream version
16ba32
- Resolves: #1403933
16ba32
16ba32
* Thu Nov 10 2016 Jonathan Lebon <jlebon@redhat.com> - 2016.11-2.atomic
16ba32
- Add ostree proxy patch (RHBZ: #1370558)
16ba32
16ba32
* Mon Oct 24 2016 Colin Walters <walters@redhat.com>
16ba32
- New upstream version
16ba32
16ba32
* Thu Sep 08 2016 walters@redhat.com - 2016.10-1
16ba32
- New upstream version
16ba32
16ba32
* Fri Jul 08 2016 walters@redhat.com - 2016.7-3.atomic
16ba32
- New upstream version
16ba32
- Add ostree-fuse -> fuse requirement so people can unmount the result
16ba32
16ba32
* Tue Apr 19 2016 Colin Walters <walters@redhat.com> - 2016.5-2.atomic
16ba32
- New upstream version
16ba32
- Backport patch for detected race conditions in pull
16ba32
- Split off new fuse package with rofiles-fuse
16ba32
16ba32
* Tue Feb 09 2016 Colin Walters <walters@redhat.com> - 2016.1-2.atomic
16ba32
- Backport patch to fix GTlsInteraction
16ba32
16ba32
* Tue Jan 12 2016 Colin Walters <walters@redhat.com> - 2016.1-1.atomic
16ba32
- New upstream version
16ba32
- Apply patch to fix /tmp permission regression: Resolves: #1297745
16ba32
16ba32
* Tue Dec 08 2015 Colin Walters <walters@redhat.com> - 2015.11-2.atomic
16ba32
- New upstream version
16ba32
- Continuation of: #1265756
16ba32
16ba32
* Wed Sep 23 2015 Colin Walters <walters@redhat.com> - 2015.9-2.atomic
16ba32
- New upstream version
16ba32
16ba32
* Sun May 31 2015 Colin Walters <walters@redhat.com> - 2015.6-4.atomic
16ba32
- Backport complete patch: Resolves: #1225088
16ba32
16ba32
* Fri May 29 2015 Colin Walters <walters@redhat.com> - 2015.6-3.atomic
16ba32
- Backport patches from Fedora rawhide
16ba32
  Ensure bootloader ordering: Resolves: #1225088
16ba32
  Close sysroot FD (would affect RHEL if we respun the installer)
16ba32
16ba32
* Fri Apr 17 2015 Colin Walters <walters@redhat.com> - 2015.6-2.atomic
16ba32
- New upstream release
16ba32
16ba32
* Tue Apr 07 2015 Colin Walters <walters@redhat.com> - 2015.5-2.atomic
16ba32
- New upstream release
16ba32
16ba32
* Fri Jan 23 2015 Colin Walters <walters@redhat.com> - 2015.3-2.atomic
16ba32
- New upstream release
16ba32
- Disable static deltas until they are stable
16ba32
16ba32
* Thu Jan 08 2015 Colin Walters <walters@redhat.com> - 2015.2-1.atomic
16ba32
- New upstream release
16ba32
16ba32
* Fri Dec 19 2014 Colin Walters <walters@redhat.com> - 2014.9-4.atomic
16ba32
- Rebuild for 7.1
16ba32
16ba32
* Mon Oct 27 2014 Colin Walters <walters@redhat.com> - 2014.9-3.atomic
16ba32
- Add patch to fix crasher on UEFI
16ba32
16ba32
* Fri Oct 24 2014 Colin Walters <walters@redhat.com> - 2014.9-2.atomic
16ba32
- New upstream release
16ba32
16ba32
* Fri Oct 17 2014 Colin Walters <walters@redhat.com> - 2014.8-2.atomic
16ba32
- Add patch for anaconda work
16ba32
16ba32
* Thu Oct 16 2014 Colin Walters <walters@redhat.com> - 2014.8-1.atomic
16ba32
- New upstream source
16ba32
16ba32
* Fri Oct 03 2014 Colin Walters <walters@redhat.com> - 2014.7-1.atomic
16ba32
- New upstream source
16ba32
16ba32
* Sat Sep 20 2014 Colin Walters <walters@redhat.com> - 2014.6-3.atomic
16ba32
- Backport patches for /etc merging
16ba32
16ba32
* Mon Sep 08 2014 Colin Walters <walters@redhat.com> - 2014.6-2.atomic
16ba32
- New upstream release
16ba32
16ba32
* Fri Jun 27 2014 Colin Walters <walters@redhat.com>
16ba32
- Add patch for tls-ca-path to enable restricting to Red Hat CDN CA
16ba32
16ba32
* Thu Jun 26 2014 Colin Walters <walters@redhat.com>
16ba32
- Add patch to hard require client certs, use it.  This ensures
16ba32
  that the functionality is available in the buildroot, and we
16ba32
  do not silently compile without it.
16ba32
16ba32
* Thu Jun 26 2014 Colin Walters <walters@redhat.com>
16ba32
- Rebuild to pick up tagged libsoup for client-side certs
16ba32
16ba32
* Thu Jun 12 2014 Colin Walters <walters@redhat.com>
16ba32
- New atomic build
16ba32
16ba32
* Sat Mar 22 2014 Colin Walters <walters@verbum.org> - 2014.3-1.collider.0
16ba32
- New upstream release
16ba32
16ba32
* Sat Mar 01 2014 Colin Walters <walters@verbum.org> - 2014.2-1
16ba32
- New upstream release
16ba32
- Depend on libselinux
16ba32
- Explicitly depend on libarchive too, we were actually failing
16ba32
  to disable it before
16ba32
16ba32
* Fri Jan 24 2014 Colin Walters <walters@verbum.org> - 2014.1-1
16ba32
- New upstream release
16ba32
16ba32
* Mon Jan 13 2014 Colin Walters <walters@verbum.org> - 2013.7-2
16ba32
- Add preset file so ostree-remount is enabled by default, since
16ba32
  it needs to be.
16ba32
16ba32
* Tue Oct 15 2013 Colin Walters <walters@verbum.org> - 2013.7-1
16ba32
- New upstream release
16ba32
- Now LGPLv2+ only
16ba32
- Enable libarchive since it might be useful for people
16ba32
- Enable new gpgme dependency
16ba32
16ba32
* Thu Sep 12 2013 Colin Walters <walters@verbum.org> - 2013.6-3
16ba32
- Enable introspection
16ba32
16ba32
* Mon Sep 09 2013 Colin Walters <walters@verbum.org> - 2013.6-2
16ba32
- Tweak description
16ba32
16ba32
* Mon Sep 09 2013 Colin Walters <walters@verbum.org> - 2013.6-1
16ba32
- New upstream release
16ba32
16ba32
* Sat Aug 24 2013 Colin Walters <walters@verbum.org> - 2013.5-3
16ba32
- And actually while we are here, drop all the embedded dependency
16ba32
  goop from this spec file; it may live on in the EPEL branch.
16ba32
16ba32
* Sat Aug 24 2013 Colin Walters <walters@verbum.org> - 2013.5-2
16ba32
- Drop requirement on linux-user-chroot
16ba32
  We now require triggers to be processed on the build server
16ba32
  by default, so ostree does not runtime-depend on linux-user-chroot.
16ba32
16ba32
* Sat Aug 17 2013 Colin Walters <walters@verbum.org> - 2013.5-1
16ba32
- New upstream release
16ba32
- Add devel package
16ba32
16ba32
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2013.4-2
16ba32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
16ba32
16ba32
* Tue Jul 16 2013 Colin Walters <walters@verbum.org> - 2013.4-1
16ba32
- New upstream release
16ba32
16ba32
* Sun Jul 07 2013 Colin Walters <walters@verbum.org> - 2013.3-1
16ba32
- New upstream release
16ba32
16ba32
* Mon Apr 01 2013 Colin Walters <walters@verbum.org> - 2013.1-1
16ba32
- New upstream release
16ba32
16ba32
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2012.13-2
16ba32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
16ba32
16ba32
* Sun Dec 23 2012 Colin Walters <walters@verbum.org> - 2012.13-1
16ba32
- New upstream release
16ba32
16ba32
* Tue Dec 18 2012 Colin Walters <walters@verbum.org> - 2012.12-2
16ba32
- Explicitly enable grub2 hook; otherwise we pick up whatever
16ba32
  the buildroot has, which is not what we want.
16ba32
16ba32
* Mon Nov 19 2012 Colin Walters <walters@verbum.org> - 2012.12-1
16ba32
- Initial import; thanks to Michel Alexandre Salim for review
16ba32
  https://bugzilla.redhat.com/show_bug.cgi?id=819951
16ba32