From cb9b4221be87cca9b8222e0e295437fc9107df59 Mon Sep 17 00:00:00 2001 From: Xuchun Shang Date: Wed, 12 Apr 2023 18:56:42 +0800 Subject: [PATCH] Update some description Signed-off-by: Xuchun Shang --- lzo.spec | 95 ++++++++++++++++++++++++++++++++++++-------------------- 1 file changed, 62 insertions(+), 33 deletions(-) diff --git a/lzo.spec b/lzo.spec index f83c81a..2c25f15 100644 --- a/lzo.spec +++ b/lzo.spec @@ -1,4 +1,4 @@ -%define anolis_release 3 +%define anolis_release 4 Name: lzo Version: 2.10 @@ -9,32 +9,51 @@ URL: http://www.oberhumer.com/opensource/lzo/ Source0: http://www.oberhumer.com/opensource/lzo/download/%{name}-%{version}.tar.gz -BuildRequires: make -BuildRequires: gcc +BuildRequires: make gcc BuildRequires: zlib-devel %description -LZO is a portable lossless data compression library written in ANSI C. -It offers pretty fast compression and very fast decompression. -Decompression requires no memory. In addition there are slower -compression levels achieving a quite competitive compression ratio -while still decompressing at this very high speed. - -%package doc -Summary: Documentation files for %{name} -Requires: %{name} = %{version}-%{release} -BuildArch: noarch - -%description doc -The %{name}-doc package contains documentation files for %{name}. +The LZO library is a powerful compression and decompression library that +is widely used in various applications due to its high speed, low memory +usage, and portability. It implements the Lempel-Ziv-Oberhumer algorithm +and provides a simple and easy-to-use API for compressing and decompressing data. + +The library offers several compression levels and algorithms, allowing +developers to choose the most appropriate combination of compression speed +and efficiency for their specific needs. It also supports streaming +compression and decompression, which is essential for applications that +require real-time data processing. + +Additionally, the LZO library operates on various platforms, including +embedded devices, desktop computers, and servers, making it highly portable. +It provides excellent error detection and recovery mechanisms, ensuring that +compressed data is decompressed without any loss or corruption. + +In summary, the LZO library is a reliable, efficient, and portable data +compression library that is suitable for various applications that require +fast data transfer and storage optimization. %package minilzo Summary: Mini version of lzo for apps which don't need the full version %description minilzo -A small (mini) version of lzo for embedding into applications which don't need -full blown lzo compression support. +Minilzo is a small, lightweight implementation of the Lempel-Ziv-Oberhumer (LZO) +compression algorithm. It is designed to provide fast and efficient compression +and decompression of data with a minimal memory footprint. +The library is written in C and is therefore highly portable, allowing it to be +used on a wide range of platforms and devices. It offers several compression +levels and algorithms, allowing developers to choose the most appropriate +combination of compression speed and efficiency for their specific needs. + +In addition to its small size and high performance, minilzo also includes error +detection and recovery mechanisms, ensuring that compressed data is decompressed +without any loss or corruption. + +Overall, minilzo is an ideal choice for applications that require fast and +efficient compression and decompression of data, particularly those with limited +memory resources or operating on embedded devices where space and processing +power are at a premium. %package devel Summary: Development files for the lzo library @@ -47,30 +66,35 @@ LZO is a portable lossless data compression library written in ANSI C. It offers pretty fast compression and very fast decompression. This package contains development files needed for lzo. +%package doc +Summary: Documentation files for %{name} +Requires: %{name} = %{version}-%{release} +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. %prep %autosetup -p1 -# mark asm files as NOT needing execstack for i in asm/i386/src_gas/*.S; do echo '.section .note.GNU-stack,"",@progbits' >> $i done - %build %configure --disable-dependency-tracking --disable-static --enable-shared %{make_build} CFLAGS+=-fno-strict-aliasing -# build minilzo too (bz 439979) +# This step is for building minilzo (bz 439979) gcc %{optflags} -fpic -Iinclude/lzo -o minilzo/minilzo.o -c minilzo/minilzo.c gcc -g -shared -Wl,-z,now -o libminilzo.so.0 -Wl,-soname,libminilzo.so.0 minilzo/minilzo.o - %install %{make_install} -install -m 755 libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir} +# Copy files to destination +install -m 0755 libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir} +install -m 0644 -p minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo ln -s libminilzo.so.0 $RPM_BUILD_ROOT%{_libdir}/libminilzo.so -install -p -m 644 minilzo/minilzo.h $RPM_BUILD_ROOT%{_includedir}/lzo #Remove doc rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/lzo @@ -80,29 +104,34 @@ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/lzo %check make check test +# Files for lzo package %files %dir %{abidir} -%license COPYING %{_libdir}/liblzo2.so.* %{abidir}/liblzo2.dump %{abidir}/libminilzo.dump - -%files doc -%doc AUTHORS THANKS NEWS - -%files minilzo %license COPYING -%doc minilzo/README.LZO -%{_libdir}/libminilzo.so.0 +# Files for devel package %files devel -%doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT %{_includedir}/lzo %{_libdir}/lib*lzo*.so %{_libdir}/pkgconfig/lzo2.pc +%doc doc/LZOAPI.TXT doc/LZO.FAQ doc/LZO.TXT +# Files for minilzo package +%files minilzo +%license COPYING +%doc minilzo/README.LZO +%{_libdir}/libminilzo.so.0 + +%files doc +%doc AUTHORS THANKS NEWS %changelog +* Wed Apr 12 2023 Xuchun Shang - 2.10-4 +- Update some description + * Wed Feb 08 2023 Xuchun Shang - 2.10-3 - add abi file -- Gitee