diff --git a/README.md b/README.md index f265721..c4bb25c 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libdeflate +Heavily optimized library for DEFLATE/zlib/gzip compression and decompression. + diff --git a/libdeflate.spec b/libdeflate.spec new file mode 100644 index 0000000..acdb57e --- /dev/null +++ b/libdeflate.spec @@ -0,0 +1,77 @@ +Name: libdeflate +Version: 1.20 +Release: 1mamba +Summary: Heavily optimized library for DEFLATE/zlib/gzip compression and decompression +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/ebiggers/libdeflate +Source: https://github.com/ebiggers/libdeflate.git/v%{version}/libdeflate-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: cmake + +%description +Heavily optimized library for DEFLATE/zlib/gzip compression and decompression. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package tools +Group: Applications/Archiving +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%debug_package + +%prep +%setup -q + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libdeflate.so.* +%doc COPYING + +%files devel +%defattr(-,root,root) +%{_includedir}/libdeflate.h +%{_libdir}/libdeflate.a +%{_libdir}/libdeflate.so +%{_libdir}/pkgconfig/libdeflate.pc +%dir %{_libdir}/cmake/libdeflate +%{_libdir}/cmake/libdeflate/libdeflate*.cmake +%doc README.md + +%files tools +%defattr(-,root,root) +%{_bindir}/libdeflate-gunzip +%{_bindir}/libdeflate-gzip + +%changelog +* Sun Aug 04 2024 Silvan Calarco 1.20-1mamba +- package created using the webbuild interface