[packages/minizip-ng] - new

qboosh qboosh at pld-linux.org
Fri Mar 17 19:24:12 CET 2023


commit 70df2a12b778b837b7d7dda63fddcd7b38f1b0b1
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 17 19:26:21 2023 +0100

    - new

 minizip-ng.spec | 102 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 102 insertions(+)
---
diff --git a/minizip-ng.spec b/minizip-ng.spec
new file mode 100644
index 0000000..c8b5a5e
--- /dev/null
+++ b/minizip-ng.spec
@@ -0,0 +1,102 @@
+#
+# Conditional build:
+%bcond_without	apidocs		# API documentation
+#
+Summary:	zip manipulation library written in C
+Summary(pl.UTF-8):	Biblioteka operacji na plikach zip napisana w C
+Name:		minizip-ng
+Version:	3.0.9
+Release:	1
+License:	MIT
+Group:		Libraries
+#Source0Download: https://github.com/zlib-ng/minizip-ng/releases
+Source0:	https://github.com/zlib-ng/minizip-ng/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	21ae30c9f1a96c9673709e17a254598a
+URL:		https://github.com/zlib-ng/minizip-ng
+BuildRequires:	bzip2-devel
+BuildRequires:	cmake >= 3.13
+BuildRequires:	openssl-devel
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	xz-devel
+BuildRequires:	zlib-devel
+BuildRequires:	zstd-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+minizip-ng is a zip manipulation library written in C that is
+supported on Windows, MacOS, and Linux.
+
+%description -l pl.UTF-8
+minizip-ng to napisana w C biblioteka do operacji na plikach zip,
+ze wsparciem na systemach Windows, MacOS i Linux.
+
+%package devel
+Summary:	Header files for minizip-ng library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki minizip-ng
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	bzip2-devel
+Requires:	openssl-devel
+Requires:	xz-devel
+Requires:	zlib-devel
+Requires:	zstd-devel
+
+%description devel
+Header files for minizip-ng library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki minizip-ng.
+
+%package apidocs
+Summary:	API documentation for minizip-ng library
+Summary(pl.UTF-8):	Dokumentacja API biblioteki minizip-ng
+Group:		Documentation
+BuildArch:	noarch
+
+%description apidocs
+API documentation for minizip-ng library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki minizip-ng.
+
+%prep
+%setup -q
+
+%build
+# disable compat and get minizip-ng names
+%cmake -B build \
+	-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/minizip-ng \
+	-DMZ_COMPAT=OFF
+
+%{__make} -C build
+
+%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 README.md
+%attr(755,root,root) %{_libdir}/libminizip-ng.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libminizip-ng.so.3
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libminizip-ng.so
+%{_includedir}/minizip-ng
+%{_pkgconfigdir}/minizip-ng.pc
+%{_libdir}/cmake/minizip-ng
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doc/{zip,*.md}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/minizip-ng.git/commitdiff/70df2a12b778b837b7d7dda63fddcd7b38f1b0b1



More information about the pld-cvs-commit mailing list