diff --git a/zziplib.spec b/zziplib.spec index 86c9afb1f62ee014cb5be139fb943b1866ee2248..e6c945d0480397106eb58f7535881dd61f4719c0 100644 --- a/zziplib.spec +++ b/zziplib.spec @@ -1,65 +1,59 @@ -%define anolis_release 1 -Summary: Lightweight library to easily extract data from zip files +%define anolis_release 2 Name: zziplib Version: 0.13.72 Release: %{anolis_release}%{?dist} +Summary: Lightweight library to easily extract data from zip files License: LGPLv2+ or MPLv1.1 URL: http://zziplib.sourceforge.net/ Source: https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz -BuildRequires: make -BuildRequires: gcc -BuildRequires: perl-interpreter -BuildRequires: python3-rpm-macros -BuildRequires: zip -BuildRequires: xmlto -BuildRequires: zlib-devel -BuildRequires: cmake +BuildRequires: make gcc cmake perl-interpreter python3-rpm-macros +BuildRequires: zip xmlto zlib-devel %description -The zziplib library is intentionally lightweight, it offers the ability to +The %{name} library is intentionally lightweight, it offers the ability to easily extract data from files archived in a single zip file. Applications can bundle files into a single zip archive and access them. The implementation is based only on the (free) subset of compression with the zlib algorithm which is actually used by the zip/unzip tools. %package utils -Summary: Utilities for the zziplib library +Summary: Utilities for the %{name} library Requires: %{name} = %{version}-%{release} %description utils -The zziplib library is intentionally lightweight, it offers the ability to +The %{name} library is intentionally lightweight, it offers the ability to easily extract data from files archived in a single zip file. Applications can bundle files into a single zip archive and access them. The implementation is based only on the (free) subset of compression with the zlib algorithm which is actually used by the zip/unzip tools. -This packages contains all the utilities that come with the zziplib library. +This packages contains all the utilities that come with the %{name} library. %package devel -Summary: Development files for the zziplib library +Summary: Development files for the %{name} library Requires: %{name} = %{version}-%{release} %description devel -The zziplib library is intentionally lightweight, it offers the ability to +The %{name} library is intentionally lightweight, it offers the ability to easily extract data from files archived in a single zip file. Applications can bundle files into a single zip archive and access them. The implementation is based only on the (free) subset of compression with the zlib algorithm which is actually used by the zip/unzip tools. This package contains files required to build applications that will use the -zziplib library. +%{name} library. %package doc -Summary: Documents for %{name} +Summary: Documentation files for %{name} BuildArch: noarch Requires: %{name} = %{version}-%{release} %description doc -Doc pages for %{name}. +Documentation files for %{name}. %prep -%setup -q +%autosetup -p1 %build %cmake @@ -75,18 +69,21 @@ Doc pages for %{name}. %files utils %{_bindir}/* -%files doc -%doc ChangeLog README TODO - %files devel -%doc docs/README.SDL docs/*.htm %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_datadir}/aclocal/*.m4 %{_mandir}/man3/* +%doc docs/README.SDL docs/*.htm + +%files doc +%doc README TODO ChangeLog %changelog +* Wed Apr 12 2023 Shawn Wang - 0.13.72-2 +- Optimize the spec file + * Tue Jan 24 2023 Funda Wang - 0.13.72-1 - Import for anolis 23 - Drop support for SDL, too old for upstream (#132) to port