2023-09-01 17:09:26 +00:00
|
|
|
# We haven't tried to ship the tests on RHEL
|
|
|
|
%if 0%{?rhel}
|
2018-10-17 14:19:46 +00:00
|
|
|
%bcond_with tests
|
|
|
|
%else
|
|
|
|
%bcond_without tests
|
|
|
|
%endif
|
2023-12-04 18:35:36 +00:00
|
|
|
%if 0%{?rhel} < 10
|
|
|
|
%bcond_with composefs
|
|
|
|
%else
|
|
|
|
%bcond_without composefs
|
|
|
|
%endif
|
2018-10-17 14:19:46 +00:00
|
|
|
|
2014-10-24 17:35:47 +00:00
|
|
|
Summary: Tool for managing bootable, immutable filesystem trees
|
2012-11-19 21:05:28 +00:00
|
|
|
Name: ostree
|
2024-01-21 16:03:23 +00:00
|
|
|
Version: 2024.1
|
2024-01-04 20:50:12 +00:00
|
|
|
Release: %autorelease
|
2017-02-07 19:27:17 +00:00
|
|
|
Source0: https://github.com/ostreedev/%{name}/releases/download/v%{version}/libostree-%{version}.tar.xz
|
2023-06-13 21:02:00 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2016-10-27 07:45:11 +00:00
|
|
|
URL: https://ostree.readthedocs.io/en/latest/
|
2013-09-12 18:21:27 +00:00
|
|
|
|
2023-12-04 18:45:29 +00:00
|
|
|
# Conditional to ELN right now to reduce blast radius; xref
|
|
|
|
# https://github.com/containers/composefs/pull/229#issuecomment-1838735764
|
|
|
|
%if 0%{?rhel} >= 10
|
|
|
|
ExcludeArch: %{ix86}
|
|
|
|
%endif
|
|
|
|
|
2021-01-07 06:48:20 +00:00
|
|
|
BuildRequires: make
|
2015-04-30 17:57:30 +00:00
|
|
|
BuildRequires: git
|
2012-11-19 21:05:28 +00:00
|
|
|
# We always run autogen.sh
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
# For docs
|
|
|
|
BuildRequires: gtk-doc
|
2013-09-12 18:21:27 +00:00
|
|
|
# Core requirements
|
2017-03-07 21:56:10 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2017-03-07 21:49:04 +00:00
|
|
|
BuildRequires: pkgconfig(libcurl)
|
2017-09-04 16:19:47 +00:00
|
|
|
BuildRequires: openssl-devel
|
2023-09-01 17:09:26 +00:00
|
|
|
%if %{with tests}
|
2023-07-12 02:18:22 +00:00
|
|
|
BuildRequires: pkgconfig(libsoup-3.0)
|
2023-09-01 17:09:26 +00:00
|
|
|
%endif
|
2013-10-15 21:27:10 +00:00
|
|
|
BuildRequires: libattr-devel
|
2021-12-06 02:22:44 +00:00
|
|
|
# The tests require attr
|
|
|
|
BuildRequires: attr
|
2013-10-15 21:27:10 +00:00
|
|
|
# Extras
|
|
|
|
BuildRequires: pkgconfig(libarchive)
|
2014-06-09 22:42:38 +00:00
|
|
|
BuildRequires: pkgconfig(liblzma)
|
2014-03-01 20:16:19 +00:00
|
|
|
BuildRequires: pkgconfig(libselinux)
|
2017-01-18 22:57:46 +00:00
|
|
|
BuildRequires: pkgconfig(mount)
|
2022-05-19 15:00:50 +00:00
|
|
|
%if 0%{?fedora} <= 36
|
|
|
|
BuildRequires: pkgconfig(fuse)
|
|
|
|
%else
|
2022-04-01 22:23:49 +00:00
|
|
|
BuildRequires: pkgconfig(fuse3)
|
2022-05-19 15:00:50 +00:00
|
|
|
%endif
|
2014-06-09 23:58:05 +00:00
|
|
|
BuildRequires: pkgconfig(e2p)
|
2015-03-10 13:38:19 +00:00
|
|
|
BuildRequires: libcap-devel
|
2013-10-15 21:27:10 +00:00
|
|
|
BuildRequires: gpgme-devel
|
2016-06-23 14:26:48 +00:00
|
|
|
BuildRequires: pkgconfig(libsystemd)
|
2013-09-12 18:21:27 +00:00
|
|
|
BuildRequires: /usr/bin/g-ir-scanner
|
2013-07-08 01:51:28 +00:00
|
|
|
BuildRequires: dracut
|
2015-12-07 15:53:31 +00:00
|
|
|
BuildRequires: bison
|
2023-12-04 18:35:36 +00:00
|
|
|
%if %{with composefs}
|
2023-12-03 19:59:28 +00:00
|
|
|
BuildRequires: pkgconfig(composefs)
|
2023-12-04 18:35:36 +00:00
|
|
|
%endif
|
2012-11-19 21:05:28 +00:00
|
|
|
|
2013-09-12 18:21:27 +00:00
|
|
|
# Runtime requirements
|
2013-07-08 01:51:28 +00:00
|
|
|
Requires: dracut
|
2014-03-07 12:47:27 +00:00
|
|
|
Requires: /usr/bin/gpgv2
|
2013-08-17 22:05:33 +00:00
|
|
|
Requires: systemd-units
|
2018-10-11 20:25:23 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2023-12-03 19:59:28 +00:00
|
|
|
# Strictly speaking, this is not a current hard requirement, but it will
|
|
|
|
# be in the future.
|
2023-12-04 18:35:36 +00:00
|
|
|
%if %{with composefs}
|
2023-12-03 19:59:28 +00:00
|
|
|
Requires: composefs
|
2023-12-04 18:35:36 +00:00
|
|
|
%endif
|
2012-11-19 21:05:28 +00:00
|
|
|
|
|
|
|
%description
|
2017-12-04 19:08:36 +00:00
|
|
|
libostree is a shared library designed primarily for
|
|
|
|
use by higher level tools to manage host systems (e.g. rpm-ostree),
|
|
|
|
as well as container tools like flatpak and the atomic CLI.
|
2012-11-19 21:05:28 +00:00
|
|
|
|
2017-02-07 18:23:03 +00:00
|
|
|
%package libs
|
2022-04-13 18:58:17 +00:00
|
|
|
Summary: C shared libraries %{name}
|
2017-02-07 18:23:03 +00:00
|
|
|
|
|
|
|
%description libs
|
|
|
|
The %{name}-libs provides shared libraries for %{name}.
|
|
|
|
|
2013-08-17 22:05:33 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Development headers for %{name}
|
2018-10-11 20:25:23 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2013-08-17 22:05:33 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package includes the header files for the %{name} library.
|
|
|
|
|
2018-08-11 16:06:46 +00:00
|
|
|
%ifnarch s390 s390x
|
2014-10-16 22:19:11 +00:00
|
|
|
%package grub2
|
|
|
|
Summary: GRUB2 integration for OSTree
|
2018-08-11 16:06:46 +00:00
|
|
|
%ifnarch aarch64 %{arm}
|
2014-10-16 22:19:11 +00:00
|
|
|
Requires: grub2
|
2016-05-08 11:17:07 +00:00
|
|
|
%else
|
|
|
|
Requires: grub2-efi
|
|
|
|
%endif
|
2017-02-07 20:38:33 +00:00
|
|
|
Requires: ostree
|
2014-10-16 22:19:11 +00:00
|
|
|
|
|
|
|
%description grub2
|
|
|
|
GRUB2 integration for OSTree
|
2015-03-30 11:00:14 +00:00
|
|
|
%endif
|
2014-10-16 22:19:11 +00:00
|
|
|
|
2018-10-17 14:19:46 +00:00
|
|
|
%if %{with tests}
|
2017-09-14 16:50:40 +00:00
|
|
|
%package tests
|
|
|
|
Summary: Tests for the %{name} package
|
2018-10-11 20:25:23 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
|
2017-09-14 16:50:40 +00:00
|
|
|
|
|
|
|
%description tests
|
|
|
|
This package contains tests that can be used to verify
|
|
|
|
the functionality of the installed %{name} package.
|
2018-10-17 14:19:46 +00:00
|
|
|
%endif
|
2017-09-14 16:50:40 +00:00
|
|
|
|
2012-11-19 21:05:28 +00:00
|
|
|
%prep
|
2017-02-07 19:27:17 +00:00
|
|
|
%autosetup -Sgit -n libostree-%{version}
|
2012-11-19 21:05:28 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
env NOCONFIGURE=1 ./autogen.sh
|
|
|
|
%configure --disable-silent-rules \
|
2017-12-14 03:27:52 +00:00
|
|
|
--enable-gtk-doc \
|
|
|
|
--with-selinux \
|
|
|
|
--with-curl \
|
|
|
|
--with-openssl \
|
2023-12-04 18:42:27 +00:00
|
|
|
--without-soup \
|
2023-12-04 18:35:36 +00:00
|
|
|
%{?with_composefs:--with-composefs} \
|
2023-09-07 13:46:34 +00:00
|
|
|
%{?with_tests:--with-soup3} \
|
2023-12-08 20:00:45 +00:00
|
|
|
%{?!with_tests:--without-soup3} \
|
2018-10-17 14:19:46 +00:00
|
|
|
%{?with_tests:--enable-installed-tests=exclusive} \
|
2019-02-09 18:11:30 +00:00
|
|
|
--with-dracut=yesbutnoconf
|
2016-10-27 07:50:01 +00:00
|
|
|
%make_build
|
2012-11-19 21:05:28 +00:00
|
|
|
|
|
|
|
%install
|
2016-10-27 07:50:01 +00:00
|
|
|
%make_install INSTALL="install -p -c"
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
2012-11-19 21:05:28 +00:00
|
|
|
|
2017-08-22 19:59:38 +00:00
|
|
|
# Needed to enable the service at compose time currently
|
|
|
|
%post
|
|
|
|
%systemd_post ostree-remount.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun ostree-remount.service
|
|
|
|
|
2012-11-19 21:05:28 +00:00
|
|
|
%files
|
2016-05-08 11:17:07 +00:00
|
|
|
%{!?_licensedir:%global license %%doc}
|
|
|
|
%license COPYING
|
|
|
|
%doc README.md
|
2012-11-19 21:05:28 +00:00
|
|
|
%{_bindir}/ostree
|
2016-02-17 15:05:35 +00:00
|
|
|
%{_bindir}/rofiles-fuse
|
2017-08-12 19:43:30 +00:00
|
|
|
%{_datadir}/ostree
|
2017-08-16 19:20:57 +00:00
|
|
|
%{_datadir}/bash-completion/completions/*
|
2013-07-08 01:51:28 +00:00
|
|
|
%dir %{_prefix}/lib/dracut/modules.d/98ostree
|
2018-10-16 15:37:31 +00:00
|
|
|
%{_prefix}/lib/systemd/system/ostree*.*
|
2013-07-08 01:51:28 +00:00
|
|
|
%{_prefix}/lib/dracut/modules.d/98ostree/*
|
2014-03-31 21:41:56 +00:00
|
|
|
%{_mandir}/man*/*.gz
|
2017-05-16 17:00:24 +00:00
|
|
|
%{_prefix}/lib/systemd/system-generators/ostree-system-generator
|
2015-03-30 11:00:14 +00:00
|
|
|
%exclude %{_sysconfdir}/grub.d/*ostree
|
2017-02-03 19:14:47 +00:00
|
|
|
%exclude %{_libexecdir}/libostree/grub2*
|
2017-08-17 21:07:19 +00:00
|
|
|
%{_prefix}/lib/tmpfiles.d/*
|
2018-03-20 20:31:18 +00:00
|
|
|
%{_prefix}/lib/ostree
|
2017-01-05 14:00:11 +00:00
|
|
|
# Moved in git master
|
2017-02-03 19:14:47 +00:00
|
|
|
%{_libexecdir}/libostree/*
|
2012-11-19 21:05:28 +00:00
|
|
|
|
2017-02-07 18:23:03 +00:00
|
|
|
%files libs
|
|
|
|
%{_sysconfdir}/ostree
|
|
|
|
%{_libdir}/*.so.1*
|
|
|
|
%{_libdir}/girepository-1.0/OSTree-1.0.typelib
|
|
|
|
|
2013-08-17 22:05:33 +00:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
%dir %{_datadir}/gtk-doc/html/ostree
|
|
|
|
%{_datadir}/gtk-doc/html/ostree
|
2013-09-12 18:21:27 +00:00
|
|
|
%{_datadir}/gir-1.0/OSTree-1.0.gir
|
2013-08-17 22:05:33 +00:00
|
|
|
|
2018-08-11 16:06:46 +00:00
|
|
|
%ifnarch s390 s390x
|
2014-10-16 22:19:11 +00:00
|
|
|
%files grub2
|
|
|
|
%{_sysconfdir}/grub.d/*ostree
|
2017-08-22 17:58:12 +00:00
|
|
|
%dir %{_libexecdir}/libostree
|
2017-02-03 19:14:47 +00:00
|
|
|
%{_libexecdir}/libostree/grub2*
|
2015-03-30 11:00:14 +00:00
|
|
|
%endif
|
2014-10-16 22:19:11 +00:00
|
|
|
|
2018-10-17 14:19:46 +00:00
|
|
|
%if %{with tests}
|
2017-09-14 16:50:40 +00:00
|
|
|
%files tests
|
|
|
|
%{_libexecdir}/installed-tests
|
|
|
|
%{_datadir}/installed-tests
|
2018-10-17 14:19:46 +00:00
|
|
|
%endif
|
2017-09-14 16:50:40 +00:00
|
|
|
|
2012-11-19 21:05:28 +00:00
|
|
|
%changelog
|
2024-01-04 20:50:12 +00:00
|
|
|
%autochangelog
|