package created using the webbuild interface [release 1.3.3-1mamba;Sat Mar 24 2018]

This commit is contained in:
Silvan Calarco 2024-01-05 20:05:21 +01:00
parent 8777457242
commit 8a3d78b00f
2 changed files with 87 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# zstd
Zstandard - Fast real-time compression algorithm.

85
zstd.spec Normal file
View File

@ -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 <silvan.calarco@mambasoft.it>
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 <silvan.calarco@mambasoft.it> 1.3.3-1mamba
- package created using the webbuild interface