2024-01-15 14:45:56 +00:00
|
|
|
%ifarch %{golang_arches}
|
|
|
|
%bcond man 1
|
|
|
|
%endif
|
|
|
|
|
2023-10-25 19:05:06 +00:00
|
|
|
Name: composefs
|
2024-11-13 10:55:30 +00:00
|
|
|
Version: 1.0.7
|
|
|
|
Release: 1%{?dist}
|
2023-10-25 19:05:06 +00:00
|
|
|
Summary: Tools to handle creating and mounting composefs images
|
|
|
|
|
2024-11-13 10:55:30 +00:00
|
|
|
License: LGPL-2.1-or-later AND (GPL-2.0-only OR Apache-2.0)
|
2023-10-25 19:05:06 +00:00
|
|
|
URL: https://github.com/containers/composefs
|
|
|
|
Source0: https://github.com/containers/composefs/releases/download/v%{version}/%{name}-%{version}.tar.xz
|
|
|
|
|
2024-09-26 13:23:30 +00:00
|
|
|
BuildRequires: gcc meson openssl-devel fuse3-devel
|
2024-01-15 14:45:56 +00:00
|
|
|
%if %{with man}
|
|
|
|
BuildRequires: go-md2man
|
|
|
|
%endif
|
2023-12-14 19:23:38 +00:00
|
|
|
|
2023-10-25 19:05:06 +00:00
|
|
|
Requires: %{name}-libs = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tools to handle creating and mounting composefs images. The composefs
|
|
|
|
project combines several underlying Linux features to provide a very
|
|
|
|
flexible mechanism to support read-only mountable filesystem trees,
|
|
|
|
stacking on top of an underlying "lower" Linux filesystem.
|
|
|
|
|
|
|
|
Please see https://github.com/containers/composefs for more information.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Devel files for %{name}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2023-11-06 19:41:59 +00:00
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
2023-10-25 19:05:06 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Devel files for %{name}.
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Libraries for %{name}
|
|
|
|
License: LGPL-2.1-or-later AND (GPL-2.0-only OR Apache-2.0)
|
|
|
|
|
|
|
|
%description libs
|
|
|
|
Library files for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2023-11-09 20:30:31 +00:00
|
|
|
%autosetup -p1
|
2023-10-25 19:05:06 +00:00
|
|
|
|
|
|
|
%build
|
2024-12-07 21:32:17 +00:00
|
|
|
%meson --default-library=shared -Dfuse=enabled \
|
|
|
|
%if %{with man}
|
|
|
|
-Dman=enabled
|
|
|
|
%endif
|
2024-09-26 13:23:30 +00:00
|
|
|
%meson_build
|
2023-10-25 19:05:06 +00:00
|
|
|
|
|
|
|
%install
|
2024-09-26 13:23:30 +00:00
|
|
|
%meson_install
|
|
|
|
rm -v $RPM_BUILD_ROOT/%{_libdir}/libcomposefs*.a
|
2023-10-25 19:05:06 +00:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/libcomposefs
|
|
|
|
%{_libdir}/libcomposefs.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
%files libs
|
2024-11-13 10:55:30 +00:00
|
|
|
%license COPYING* LICENSE.Apache-2.0 BSD-2-Clause.txt
|
2023-10-25 19:05:06 +00:00
|
|
|
%{_libdir}/libcomposefs.so.*
|
|
|
|
|
|
|
|
%files
|
2024-11-13 10:55:30 +00:00
|
|
|
%license COPYING* LICENSE.Apache-2.0 BSD-2-Clause.txt
|
2023-10-25 19:05:06 +00:00
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/mkcomposefs
|
|
|
|
%{_bindir}/composefs-info
|
|
|
|
%{_sbindir}/mount.composefs
|
2024-01-15 14:45:56 +00:00
|
|
|
%if %{with man}
|
2023-10-25 19:05:06 +00:00
|
|
|
%{_mandir}/man*/*
|
2024-01-15 14:45:56 +00:00
|
|
|
%endif
|
2023-10-25 19:05:06 +00:00
|
|
|
|
|
|
|
%changelog
|
2024-09-26 13:23:30 +00:00
|
|
|
%autochangelog
|