2016-07-07 14:08:22 +00:00
|
|
|
#
|
2019-05-21 08:29:17 +00:00
|
|
|
# spec file for package zipios
|
2016-07-07 14:08:22 +00:00
|
|
|
#
|
2023-08-09 09:38:05 +00:00
|
|
|
# Copyright (c) 2023 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-07-07 14:08:22 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-05-21 08:29:17 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2016-07-07 14:08:22 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2019-05-21 08:29:17 +00:00
|
|
|
%define so_ver 2
|
2016-07-07 14:08:22 +00:00
|
|
|
Name: zipios
|
2024-01-02 08:27:19 +00:00
|
|
|
Version: 2.3.2
|
2016-07-07 14:08:22 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: C++ Library for Reading and Writing Zip Files
|
2019-05-21 08:29:17 +00:00
|
|
|
License: LGPL-2.1-or-later
|
2016-07-07 14:08:22 +00:00
|
|
|
Group: System/Libraries
|
2023-08-09 09:38:05 +00:00
|
|
|
URL: https://github.com/Zipios/Zipios
|
|
|
|
Source0: https://github.com/Zipios/Zipios/archive/refs/tags/%{version}.tar.gz#/zipios-%{version}.tar.gz
|
2019-05-21 08:29:17 +00:00
|
|
|
# PATCH-FEATURE-OPENSUSE zipios-docpath.patch aloisio@gmx.com -- use correct package path
|
|
|
|
Patch0: zipios-docpath.patch
|
2024-01-02 08:27:19 +00:00
|
|
|
# PATCH-FIX-UPSTREAM
|
|
|
|
Patch1: https://github.com/Zipios/Zipios/commit/60b8c7bf79e6a4458e4c0d78f5fb14a81f4feac7.patch#/fix_cstdint_include.patch
|
|
|
|
BuildRequires: cmake >= 3.10.2
|
2016-07-07 14:08:22 +00:00
|
|
|
BuildRequires: doxygen
|
2023-08-09 09:38:05 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: graphviz-gd
|
2016-07-07 14:08:22 +00:00
|
|
|
BuildRequires: gcc-c++
|
2024-01-02 08:27:19 +00:00
|
|
|
BuildRequires: cmake(Catch2)
|
2019-05-21 08:29:17 +00:00
|
|
|
BuildRequires: pkgconfig(zlib)
|
2016-07-07 14:08:22 +00:00
|
|
|
|
|
|
|
%description
|
2019-05-21 08:29:17 +00:00
|
|
|
Zipios is a java.util.zip-like C++ library for reading and writing Zip files.
|
2016-07-07 14:08:22 +00:00
|
|
|
Access to individual entries is provided through standard C++ iostreams. A
|
|
|
|
simple read-only virtual file system that mounts regular directories and zip
|
|
|
|
files is also provided.
|
|
|
|
|
|
|
|
%package devel
|
2019-05-21 08:29:17 +00:00
|
|
|
Summary: Zipios Header Files
|
2016-07-07 14:08:22 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libzipios%{so_ver} = %{version}
|
2019-05-21 08:29:17 +00:00
|
|
|
Requires: pkgconfig(zlib)
|
2023-08-09 09:38:05 +00:00
|
|
|
Suggests: %{name}-devel-doc
|
2016-07-07 14:08:22 +00:00
|
|
|
|
|
|
|
%description devel
|
2023-08-09 09:38:05 +00:00
|
|
|
Header files for zipios development.
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
Summary: Zipios API documentation
|
|
|
|
Group: Documentation/HTML
|
|
|
|
# Package split
|
|
|
|
Provides: %{name}-devel:%{_defaultdocdir}/zipios
|
|
|
|
Conflicts: %{name}-devel < 2.2.6
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
API documentation for zipios.
|
2016-07-07 14:08:22 +00:00
|
|
|
|
|
|
|
%package -n libzipios%{so_ver}
|
|
|
|
Summary: C++ Library for Reading and Writing Zip Files
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libzipios%{so_ver}
|
2019-05-21 08:29:17 +00:00
|
|
|
Zipios is a java.util.zip-like C++ library for reading and writing Zip files.
|
2016-07-07 14:08:22 +00:00
|
|
|
Access to individual entries is provided through standard C++ iostreams. A
|
|
|
|
simple read-only virtual file system that mounts regular directories and zip
|
|
|
|
files is also provided.
|
|
|
|
|
|
|
|
%prep
|
2023-08-09 09:38:05 +00:00
|
|
|
%autosetup -p1 -n Zipios-%{version}
|
2016-07-07 14:08:22 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake
|
2023-08-09 09:38:05 +00:00
|
|
|
%cmake_build
|
2016-07-07 14:08:22 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
2023-08-09 09:38:05 +00:00
|
|
|
# Remove the fairly pointless metainfo for a library
|
|
|
|
rm %{buildroot}%{_datadir}/metainfo/zipios.metainfo.xml
|
|
|
|
|
|
|
|
%fdupes %{buildroot}%{_defaultdocdir}
|
2016-07-07 14:08:22 +00:00
|
|
|
|
|
|
|
%post -n libzipios%{so_ver} -p /sbin/ldconfig
|
|
|
|
%postun -n libzipios%{so_ver} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files devel
|
2019-05-21 08:29:17 +00:00
|
|
|
%license COPYING
|
2024-01-02 08:27:19 +00:00
|
|
|
%doc AUTHORS NEWS README.md TODO.md
|
2019-05-21 08:29:17 +00:00
|
|
|
%{_bindir}/appendzip
|
|
|
|
%{_bindir}/dosdatetime
|
2024-01-02 08:27:19 +00:00
|
|
|
%{_bindir}/zcrc32
|
|
|
|
%{_bindir}/zipdir
|
2019-05-21 08:29:17 +00:00
|
|
|
%{_bindir}/zipios
|
|
|
|
%{_datadir}/cmake/ZipIos
|
2016-07-07 14:08:22 +00:00
|
|
|
%{_includedir}/zipios
|
|
|
|
%{_libdir}/libzipios.so
|
2019-05-21 08:29:17 +00:00
|
|
|
%{_mandir}/man3/%{name}*.3%{?ext_man}
|
2016-07-07 14:08:22 +00:00
|
|
|
|
2023-08-09 09:38:05 +00:00
|
|
|
%files devel-doc
|
|
|
|
%doc %{_defaultdocdir}/zipios
|
|
|
|
|
2016-07-07 14:08:22 +00:00
|
|
|
%files -n libzipios%{so_ver}
|
|
|
|
%{_libdir}/libzipios.so.*
|
|
|
|
|
|
|
|
%changelog
|