From 8a3d78b00fed7495001e1acd1f969fdd122fb3f8 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:05:21 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.3.3-1mamba;Sat Mar 24 2018] --- README.md | 2 ++ zstd.spec | 85 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 zstd.spec diff --git a/README.md b/README.md index 825f006..8bc04e2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # zstd +Zstandard - Fast real-time compression algorithm. + diff --git a/zstd.spec b/zstd.spec new file mode 100644 index 0000000..9471539 --- /dev/null +++ b/zstd.spec @@ -0,0 +1,85 @@ +Name: zstd +Version: 1.3.3 +Release: 1mamba +Summary: Zstandard - Fast real-time compression algorithm +Group: Applications/Archiving +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.zstd.net/ +## GITSOURCE https://github.com/facebook/zstd.git v1.3.3 +Source: https://github.com/facebook/zstd.git/v%{version}/zstd-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: liblzma-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Zstandard - Fast real-time compression algorithm. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%make prefix=%{_prefix} libdir=%{_libdir} + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall prefix=%{_prefix} libdir=%{_libdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/unzstd +%{_bindir}/zstd +%{_bindir}/zstdcat +%{_bindir}/zstdgrep +%{_bindir}/zstdless +%{_bindir}/zstdmt +%{_mandir}/man1/unzstd.1* +%{_mandir}/man1/zstd.1* +%{_mandir}/man1/zstdcat* +%doc COPYING LICENSE + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libzstd.so.* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/*.h +%{_libdir}/libzstd.a +%{_libdir}/libzstd.so +%{_libdir}/pkgconfig/libzstd.pc +%doc NEWS README.md + +%changelog +* Sat Mar 24 2018 Silvan Calarco 1.3.3-1mamba +- package created using the webbuild interface