diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4039717 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/erofs-utils-1.0.tar.gz +/mkfs.erofs.1 diff --git a/erofs-utils.spec b/erofs-utils.spec new file mode 100644 index 0000000..3a81a8f --- /dev/null +++ b/erofs-utils.spec @@ -0,0 +1,51 @@ +%bcond_without lz4 + +Name: erofs-utils +Version: 1.0 +Release: 1%{?dist} + +Summary: Utilities for working with EROFS +License: GPLv2+ +URL: https://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs-utils.git + +Source0: %{url}/snapshot/%{name}-%{version}.tar.gz +Source1: %{url}/plain/man/mkfs.erofs.1?id=a34f86beb16b25cb0f44c85934acb93749fc844c#/mkfs.erofs.1 + +BuildRequires: gcc +BuildRequires: libtool +%if %{with lz4} +BuildRequires: lz4-devel +%endif + +%description +EROFS stands for Enhanced Read-Only File System. Different from other +read-only file systems, it is designed for flexibility, scalability, and +simplicity for high performance. + +The %{name} package includes mkfs.erofs to create EROFS images. + + +%prep +%autosetup +autoreconf -fi + +%build +%configure \ + %{?with_lz4:--enable-lz4} %{!?with_lz4:--disable-lz4} +%make_build + +%install +%make_install +install -Dpm 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/mkfs.erofs.1 + + +%files +%{_bindir}/mkfs.erofs +%{_mandir}/man1/mkfs.erofs.1* +%doc AUTHORS ChangeLog README +%license COPYING + + +%changelog +* Mon Nov 25 2019 David Michael - 1.0-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..346ddad --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +SHA512 (erofs-utils-1.0.tar.gz) = e9223bb967feeec7a01644d3c3956c07db2990bcb8bf81db4b13f96429e02f609c8054f07bc01536d879c5e4f90df5579045ed1567461ce3177ad2423f7a8a40 +SHA512 (mkfs.erofs.1) = dff0eaf73fc1a2181ddf83170ab501fb0e9101028a373ca1cf77314b3a6302440bfee3941bd0760335a110faeed39d6280ea5f69e16924d7e65fe469e624bc69