[packages/zlib-ng] - new

qboosh qboosh at pld-linux.org
Fri Mar 17 20:48:51 CET 2023


commit a4144f75e1a5be50eb08cc91caa59e1390b80119
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 17 20:51:02 2023 +0100

    - new

 zlib-ng.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)
---
diff --git a/zlib-ng.spec b/zlib-ng.spec
new file mode 100644
index 0000000..608a5a4
--- /dev/null
+++ b/zlib-ng.spec
@@ -0,0 +1,70 @@
+Summary:	zlib data compression library for the next generation systems
+Summary(pl.UTF-8):	Biblioteka kompresji danych zlib dla systemów nowej generacji
+Name:		zlib-ng
+Version:	2.0.6
+Release:	1
+License:	Zlib
+Group:		Libraries
+#Source0Download: https://github.com/zlib-ng/zlib-ng/releases
+Source0:	https://github.com/zlib-ng/zlib-ng/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	4ba0da231291632799948c5568906ce4
+URL:		https://github.com/zlib-ng/zlib-ng
+BuildRequires:	cmake >= 3.5.1
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+zlib data compression library for the next generation systems.
+
+%description -l pl.UTF-8
+Biblioteka kompresji danych zlib dla systemów nowej generacji.
+
+%package devel
+Summary:	Header files for zlib-ng library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki zlib-ng
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files for zlib-ng library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki zlib-ng.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+# no ZLIB_COMPAT to get z-ng names
+%cmake .. \
+	-DCMAKE_INSTALL_INCLUDEDIR=include/zlib-ng \
+	-DCMAKE_INSTALL_LIBDIR=%{_lib}
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.md PORTING.md README.md
+%attr(755,root,root) %{_libdir}/libz-ng.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libz-ng.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%doc doc/*.txt
+%attr(755,root,root) %{_libdir}/libz-ng.so
+%{_includedir}/zlib-ng
+%{_pkgconfigdir}/zlib-ng.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/zlib-ng.git/commitdiff/a4144f75e1a5be50eb08cc91caa59e1390b80119



More information about the pld-cvs-commit mailing list