From: Jaehoon Chung Date: Sun, 8 Dec 2024 23:52:22 +0000 (+0900) Subject: packaging: Add erofs-utils spec file X-Git-Tag: accepted/tizen/unified/20241216.010808^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e28ef62daf181eae2bc2153a0244bf3ca53812d;p=platform%2Fupstream%2Ferofs-utils.git packaging: Add erofs-utils spec file Add erofs-utils spec file to use the utils for Tizen. This patch is packing only executable files. Change-Id: I39e7572e849c16bae1f86a79064ee003c842b557 Signed-off-by: Jaehoon Chung --- diff --git a/packaging/erofs-utils.manifest b/packaging/erofs-utils.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/erofs-utils.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/erofs-utils.spec b/packaging/erofs-utils.spec new file mode 100644 index 0000000..d55f877 --- /dev/null +++ b/packaging/erofs-utils.spec @@ -0,0 +1,52 @@ +Name: erofs-utils +Version: 1.8.2 +Release: 0 +Summary: Utilities for the Extendable Read-Only Filesystem (EROFS) +License: GPL-2.0 +Group: System/Kernel +URL: https://git.kernel.org +Source0: %{name}-%{version}.tar.gz +Source1001: %{name}.manifest +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: lz4-devel +BuildRequires: libtool +BuildRequires: libuuid-devel +BuildRequires: libzstd-devel +BuildRequires: m4 +BuildRequires: pkg-config +BuildRequires: xz +BuildRequires: pkgconfig(liblzma) +BuildRequires: pkgconfig(zlib) +BuildRequires: pkgconfig(blkid) + +%description +mkfs.erofs is a user-space tool to create erofs filesystem images. It +can create two main types of erofs images, compressed and +uncompressed: + +* For compressed images, it is able to integrate several compression + algorithms, LZ4 is supported according to the current erofs kernel + implementation. +* For uncompressed images, it can decide whether the last page of a + file should be inlined or not properly. + +%prep +%autosetup -p1 +cp %{SOURCE1001} . + +%build +export CFLGAS="${CFLAGS} -fPIE" +export LDFLAGS="${LDFLAGS} -fPIE" +autoreconf -fiv +%configure --bindir="%_sbindir" --enable-lzma +%make_build + +%install +%make_install +rm -rf %{buildroot}/usr/share/man/man1/* + +%files +%manifest %{name}.manifest +%license COPYING +%_sbindir/*erofs