OSDN Git Service

xz %install
authorHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 15:24:47 +0000 (23:24 +0800)
committerHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 15:24:47 +0000 (23:24 +0800)
xz.spec [new file with mode: 0644]

diff --git a/xz.spec b/xz.spec
new file mode 100644 (file)
index 0000000..af40941
--- /dev/null
+++ b/xz.spec
@@ -0,0 +1,43 @@
+Summary: A Program for Compressing Files with the Lempel–Ziv–Markov algorithm
+Name: xz
+Version: 5.2.5
+Release: 0
+License: GPLv2 AND GPLv3 AND LGPLv2.1 AND Public Domain
+URL: https://tukaani.org/xz/
+Source0:        https://tukaani.org/xz/%{name}-%{version}.tar.gz
+Source1:        https://tukaani.org/xz/%{name}-%{version}.tar.gz.sig
+# from http://tukaani.org/misc/lasse_collin_pubkey.txt
+Source2:        xz.keyring
+%description
+XZ Utils is free general-purpose data compression software with a high
+compression ratio. XZ Utils were written for POSIX-like systems, but also work
+on some not-so-POSIX systems. XZ Utils are the successor to LZMA Utils.
+The primary compression algorithm is currently LZMA2, which is used inside the
+.xz container format. With typical files, XZ Utils create 30 % smaller output
+than gzip and 15 % smaller output than bzip2.
+
+%lang_package
+
+%prep
+%setup -q
+
+%build
+%configure \
+  --with-pic \
+  --docdir=%{_docdir}/%{name}
+make %{?_smp_mflags}
+
+%check
+make %{?_smp_mflags} check
+
+%install
+%make_install
+find %{buildroot} -type f -name "*.la" -delete -print
+%find_lang %{name}
+rm -vf %{buildroot}%{_docdir}/%{name}/{COPYING,COPYING.GPLv2}
+
+
+%files
+
+
+%changelog