From d12ffad2de3f71160f00bf44050a4a7efbe7707c Mon Sep 17 00:00:00 2001 From: Abhi Das Date: Wed, 17 Jul 2024 15:52:20 -0500 Subject: [PATCH] erofs-utils: import erofs-utils-1.7.1 into RHEL JIRA: https://issues.redhat.com/browse/RHEL-39331 Added support for erofs in RHEL10. This patch imports the userspace erofs-utils bits. Resolves: RHEL-39331 Signed-off-by: Abhi Das --- .gitignore | 1 + erofs-utils.spec | 164 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 166 insertions(+) create mode 100644 erofs-utils.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..a8c8b40 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/erofs-utils-1.7.1.tar.gz diff --git a/erofs-utils.spec b/erofs-utils.spec new file mode 100644 index 0000000..f178973 --- /dev/null +++ b/erofs-utils.spec @@ -0,0 +1,164 @@ +%bcond deflate %[ 0%{?fedora} >= 34 || (0%{?rhel} >= 8 && 0%{?rhel} <= 9) ] +%bcond fuse 1 +%bcond lz4 %[ 0%{?fedora} >= 34 || 0%{?rhel} >= 9 ] +%bcond lzma %[ 0%{?fedora} >= 36 || 0%{?rhel} >= 10 ] +%bcond selinux 1 +%bcond uuid 1 +%bcond zlib 1 + +Name: erofs-utils +Version: 1.7.1 +Release: 4%{?dist} + +Summary: Utilities for working with EROFS +License: GPL-2.0-only AND GPL-2.0-or-later AND (GPL-2.0-only OR Apache-2.0) AND (GPL-2.0-or-later OR Apache-2.0) AND (GPL-2.0-only OR BSD-2-Clause) AND (GPL-2.0-or-later OR BSD-2-Clause) AND Unlicense +URL: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git + +Source: %{url}/snapshot/%{name}-%{version}.tar.gz + +BuildRequires: %[ "%{toolchain}" == "clang" ? "clang compiler-rt" : "gcc" ] +BuildRequires: libtool +BuildRequires: make +%{?with_deflate:BuildRequires: pkgconfig(libdeflate)} +%{?with_fuse:BuildRequires: pkgconfig(fuse) >= 2.6} +%{?with_lz4:BuildRequires: lz4-devel >= 1.9.3} +%{?with_lzma:BuildRequires: xz-devel >= 5.4} +%{?with_selinux:BuildRequires: pkgconfig(libselinux)} +%{?with_uuid:BuildRequires: pkgconfig(uuid)} +%{?with_zlib:BuildRequires: pkgconfig(zlib)} + +%description +EROFS stands for Enhanced Read-Only File System. It aims to be a general +read-only file system solution for various use cases instead of just focusing +on saving storage space without considering runtime performance. + +This package includes tools to create, check, and extract EROFS images. + +%if %{with fuse} +%package -n erofs-fuse +Summary: FUSE support for mounting EROFS images +Requires: fuse + +%description -n erofs-fuse +EROFS stands for Enhanced Read-Only File System. It aims to be a general +read-only file system solution for various use cases instead of just focusing +on saving storage space without considering runtime performance. + +This package includes erofsfuse to mount EROFS images. +%endif + + +%prep +%autosetup +autoreconf -fi + +%build +%configure \ + --%{?with_deflate:with}%{!?with_deflate:without}-libdeflate \ + --%{?with_fuse:enable}%{!?with_fuse:disable}-fuse \ + --%{?with_lz4:enable}%{!?with_lz4:disable}-lz4 \ + --%{?with_lzma:enable}%{!?with_lzma:disable}-lzma \ + --%{?with_selinux:with}%{!?with_selinux:without}-selinux \ + --%{?with_uuid:with}%{!?with_uuid:without}-uuid \ + --%{?with_zlib:with}%{!?with_zlib:without}-zlib +%make_build + +%install +%make_install + + +%files +%{_bindir}/dump.erofs +%{_bindir}/fsck.erofs +%{_bindir}/mkfs.erofs +%{_mandir}/man1/dump.erofs.1* +%{_mandir}/man1/fsck.erofs.1* +%{_mandir}/man1/mkfs.erofs.1* +%doc AUTHORS ChangeLog README docs/PERFORMANCE.md docs/compress-hints.example +%license LICENSES/Apache-2.0 LICENSES/GPL-2.0 + +%if %{with fuse} +%files -n erofs-fuse +%{_bindir}/erofsfuse +%{_mandir}/man1/erofsfuse.1* +%doc AUTHORS ChangeLog README +%license LICENSES/Apache-2.0 LICENSES/GPL-2.0 +%endif + + +%changelog +* Wed Jul 17 2024 Abhi Das - 1.7.1-4 +- Import 1.7.1 to RHEL + +* Wed Jan 24 2024 Fedora Release Engineering - 1.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Oct 20 2023 David Michael - 1.7.1-1 +- Update to the 1.7.1 release. + +* Thu Sep 21 2023 David Michael - 1.7-1 +- Update to the 1.7 release. + +* Tue Aug 29 2023 David Michael - 1.6-3 +- Backport patches for CVE-2023-33551 and CVE-2023-33552. +- Change conditional build feature defaults for supporting EPEL 9. + +* Wed Jul 19 2023 Fedora Release Engineering - 1.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Mar 11 2023 David Michael - 1.6-1 +- Update to the 1.6 release. + +* Wed Jan 25 2023 David Michael - 1.5-4 +- Enable MicroLZMA support. +- Switch the License tag to SPDX, and ship matching noneffective license files. + +* Thu Jan 19 2023 Fedora Release Engineering - 1.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 1.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 David Michael - 1.5-1 +- Update to the 1.5 release. + +* Thu Jan 20 2022 Fedora Release Engineering - 1.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Nov 25 2021 David Michael - 1.4-2 +- Backport the patch to install a man page for fsck. +- Backport the patch to fix dump output. + +* Sun Nov 21 2021 David Michael - 1.4-1 +- Update to the 1.4 release. + +* Wed Jul 21 2021 Fedora Release Engineering - 1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 31 2021 David Michael - 1.3-1 +- Update to the 1.3 release. + +* Tue Jan 26 2021 Fedora Release Engineering - 1.2.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Jan 09 2021 David Michael - 1.2.1-1 +- Update to the 1.2.1 release. + +* Thu Dec 10 2020 David Michael - 1.2-1 +- Update to the 1.2 release. +- Split FUSE support into an independent subpackage. + +* Mon Jul 27 2020 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Apr 13 2020 David Michael - 1.1-1 +- Update to the 1.1 release. + +* Tue Jan 28 2020 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Nov 25 2019 David Michael - 1.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..449842b --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (erofs-utils-1.7.1.tar.gz) = f5fc08d8d70e3e06c06aaa5a36e9b16ca1ff7c722fc88dba1f5c46fa86914be02e45e948c59504bd0fd4a3a4050ad7a27a5da2657ffbf40ec20ef0d1bfb832ff