[packages/libzippp] new
atler
atler at pld-linux.org
Fri Mar 20 14:28:58 CET 2026
commit 335a841d8748ab7f46525eee282e4a15c0d5c588
Author: Jan Palus <atler at pld-linux.org>
Date: Fri Mar 20 14:28:37 2026 +0100
new
libzippp.spec | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
soname.patch | 10 +++++++++
2 files changed, 77 insertions(+)
---
diff --git a/libzippp.spec b/libzippp.spec
new file mode 100644
index 0000000..21271eb
--- /dev/null
+++ b/libzippp.spec
@@ -0,0 +1,67 @@
+%define libzip_ver 1.10.1
+
+Summary: C++ wrapper for libzip
+Name: libzippp
+Version: 7.1
+Release: 1
+License: BSD
+Group: Libraries
+Source0: https://github.com/ctabin/libzippp/archive/libzippp-v%{version}-%{libzip_ver}/%{name}-%{version}.tar.gz
+# Source0-md5: dd6e9cc5ddcd287d669159a36ac63055
+Patch0: soname.patch
+URL: https://github.com/ctabin/libzippp
+BuildRequires: cmake >= 3.16.0
+BuildRequires: libstdc++-devel >= 6:4.8.1
+BuildRequires: libzip-devel >= %{libzip_ver}
+BuildRequires: rpmbuild(macros) >= 1.605
+Requires: libzip%{?_isa} >= %{libzip_ver}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libzippp is a simple basic C++ wrapper around the libzip library. It
+is meant to be a portable and easy-to-use library for ZIP handling.
+
+%package devel
+Summary: Development files for libzippp
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This package contains the header files for developing applications
+that use libzippp.
+
+%prep
+%setup -q -n libzippp-libzippp-v%{version}-%{libzip_ver}
+%patch -P0 -p1
+
+%build
+%cmake -B build \
+ -DLIBZIPPP_GNUINSTALLDIRS:BOOL=ON
+
+%{__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 LICENCE README.md
+%attr(755,root,root) %{_libdir}/libzippp.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libzippp.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libzippp.so
+%dir %{_includedir}/libzippp
+%{_includedir}/libzippp/libzippp.h
+%{_libdir}/cmake/libzippp
+%{_pkgconfigdir}/libzippp.pc
diff --git a/soname.patch b/soname.patch
new file mode 100644
index 0000000..a8b34d7
--- /dev/null
+++ b/soname.patch
@@ -0,0 +1,10 @@
+--- libzippp-libzippp-v7.1-1.10.1/CMakeLists.txt.orig 2024-01-23 16:25:17.000000000 +0100
++++ libzippp-libzippp-v7.1-1.10.1/CMakeLists.txt 2026-03-20 12:44:38.303672224 +0100
+@@ -73,6 +73,7 @@
+
+ if (BUILD_SHARED_LIBS)
+ target_compile_definitions(libzippp PRIVATE LIBZIPPP_EXPORTS)
++ set_target_properties(libzippp PROPERTIES VERSION 0.0.0 SOVERSION 0)
+ else()
+ set_target_properties(libzippp PROPERTIES OUTPUT_NAME "libzippp_static")
+ endif()
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libzippp.git/commitdiff/335a841d8748ab7f46525eee282e4a15c0d5c588
More information about the pld-cvs-commit
mailing list