libzip/libzip.spec

88 lines
2.4 KiB
RPMSpec
Raw Normal View History

2019-11-19 11:50:32 +08:00
Name: libzip
2022-01-13 18:00:54 +08:00
Version: 1.8.0
Release: 3
2019-11-19 11:50:32 +08:00
Summary: A C library for reading, creating, and modifying zip archives
License: BSD
URL: https://libzip.org/
Source0: https://libzip.org/download/libzip-%{version}.tar.xz
Patch6000: backport-Return-false-instead-of-1.patch
2022-01-14 15:33:02 +08:00
BuildRequires: gcc zlib-devel bzip2-devel openssl-devel cmake
2019-11-19 11:50:32 +08:00
BuildRequires: perl-interpreter perl(Cwd) perl(File::Copy) perl(File::Path) perl(Getopt::Long)
BuildRequires: perl(IPC::Open3) perl(Storable) perl(Symbol) perl(UNIVERSAL) perl(strict) perl(warnings)
Provides: libzip-tools = %{version}-%{release}
Provides: libzip-tools%{?_isa} = %{version}-%{release}
Obsoletes: libzip-tools < %{version}-%{release}
%description
libzip is 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: Development files for libzip
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains libraries and header files for developing applications
that use libcap.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%cmake .
make %{?_smp_mflags}
%install
%make_install
%check
make test
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%license LICENSE
%{_bindir}/zip*
%{_libdir}/libzip.so.5*
2022-01-13 18:00:54 +08:00
%{_libdir}/cmake/libzip/libzip-config-version.cmake
%{_libdir}/cmake/libzip/libzip-config.cmake
%{_libdir}/cmake/libzip/libzip-targets-noconfig.cmake
%{_libdir}/cmake/libzip/libzip-targets.cmake
2019-11-19 11:50:32 +08:00
%files devel
%defattr(-,root,root)
%{_libdir}/libzip.so
%{_libdir}/pkgconfig/libzip.pc
%{_includedir}/*.h
%files help
%defattr(-,root,root)
%doc *.md AUTHORS THANKS
%{_mandir}/man1/*1*
%{_mandir}/man3/*3*
2022-01-13 18:00:54 +08:00
2019-11-19 11:50:32 +08:00
%changelog
* Mon Jul 31 2023 Bolehu <heyaohua@xfusion.com> - 1.8.0-3
- Return false instead of -1
* Thu Apr 21 2022 Yangping <yangping69@h-partners.com> -1.8.0-2
- remove 1.5.1.tar.gz
2022-01-13 18:00:54 +08:00
* Thu Jan 13 2022 Yangping <yangping69@huawei.com> - 1.8.0-1
- Update to 1.8.0
2019-11-19 11:50:32 +08:00
* Tue Nov 12 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.5.1-3
- Package init