File mingw32-libzip.spec of Package mingw32-libzip
#
# spec file for package mingw32-libzip
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mingw32-libzip
Version: 1.0.1
Release: 0
Summary: C library for reading, creating, and modifying zip archives
License: BSD-3-Clause
Group: Development/Libaries/C and C++
Url: http://www.nih.at/libzip
Source: http://nih.at/libzip/libzip-%{version}.tar.xz
#!BuildIgnore: post-build-checks
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-pkg-config
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-zlib-devel
BuildRequires: xz
%_mingw32_package_header_debug
BuildArch: noarch
%description
This is libzip, a C library for reading, creating, and modifying zip
archives. Files can be added from data buffers, files, or compressed
data copied directly from other zip archives. Changes made without
closing the archive can be reverted. The API is documented by man
pages.
%package -n mingw32-libzip4
Summary: C library for reading, creating, and modifying zip archives (development files)
Group: System/Libraries
Obsoletes: mingw32-libzip
%description -n mingw32-libzip4
This is libzip, a C library for reading, creating, and modifying zip
archives. Files can be added from data buffers, files, or compressed
data copied directly from other zip archives. Changes made without
closing the archive can be reverted. The API is documented by man
pages.
%package devel
Summary: C library for reading, creating, and modifying zip archives (development files)
Group: Development/Libraries/C and C++
%description devel
libzip is a C library for reading, creating, and modifying zip
archives. This package contains devel files.
%package tools
Summary: C library for reading, creating, and modifying zip archives (tools)
Group: Productivity/Archiving/Compression
%description tools
libzip is a C library for reading, creating, and modifying zip
archives. Files can be added from data buffers, files, or compressed. This
package contains a set of small utilities built using libzip
* zipmerge - merge source zip archives into the target one
* zipcmp - compares the zip archives and check if they contains same files
* ziptorrent - manipulate with a restricted file format used for using bittorrent on zip files.
%_mingw32_debug_package
%prep
%setup -q -n libzip-%{version}
%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw32_cache}
%{_mingw32_configure} --disable-static
make %{?_smp_mflags}
%install
%make_install
cp lib/zipconf.h %{buildroot}/%{_mingw32_includedir}/zipconf.h
%files -n mingw32-libzip4
%defattr(-,root,root)
%{_mingw32_bindir}/libzip-4.dll
%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/zip.h
%{_mingw32_includedir}/zipconf.h
%{_mingw32_libdir}/libzip/
%{_mingw32_libdir}/libzip.dll.a
%{_mingw32_libdir}/pkgconfig/libzip.pc
%{_mingw32_mandir}/man3/*.3*
%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/zipcmp.exe
%{_mingw32_bindir}/zipmerge.exe
%{_mingw32_mandir}/man1/*.1*
%changelog