Blame SPECS/ostree.spec

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