[11368] | 1 | %define _unpackaged_files_terminate_build 1 |
---|
| 2 | |
---|
[521] | 3 | Summary: C library for reading, creating, and modifying zip archives |
---|
| 4 | Name: libzip |
---|
[12428] | 5 | Version: 1.7.3 |
---|
[11368] | 6 | Release: 1%{?_dist_release} |
---|
[12428] | 7 | Group: System Environment/Libraries |
---|
| 8 | Vendor: Project Vine |
---|
| 9 | Distribution: Vine Linux |
---|
[521] | 10 | |
---|
| 11 | License: BSD |
---|
[11368] | 12 | URL: https://libzip.org/ |
---|
| 13 | Source0: https://libzip.org/download/%{name}-%{version}.tar.xz |
---|
[521] | 14 | |
---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[12428] | 16 | BuildRequires: zlib-devel |
---|
[11368] | 17 | BuildRequires: bzip2-devel |
---|
[12428] | 18 | BuildRequires: xz-devel |
---|
| 19 | BuildRequires: openssl-devel |
---|
[521] | 20 | BuildRequires: pkgconfig |
---|
[11368] | 21 | BuildRequires: cmake |
---|
[521] | 22 | |
---|
[12428] | 23 | BuildRequires: perl |
---|
| 24 | BuildRequires: perl(Cwd) |
---|
| 25 | BuildRequires: perl(File::Copy) |
---|
| 26 | BuildRequires: perl(File::Path) |
---|
| 27 | BuildRequires: perl(Getopt::Long) |
---|
| 28 | BuildRequires: perl(IPC::Open3) |
---|
| 29 | BuildRequires: perl(Storable) |
---|
| 30 | BuildRequires: perl(Symbol) |
---|
| 31 | BuildRequires: perl(UNIVERSAL) |
---|
| 32 | BuildRequires: perl(strict) |
---|
| 33 | BuildRequires: perl(warnings) |
---|
| 34 | |
---|
[521] | 35 | %description |
---|
| 36 | libzip is a C library for reading, creating, and modifying zip archives. Files |
---|
| 37 | can be added from data buffers, files, or compressed data copied directly from |
---|
| 38 | other zip archives. Changes made without closing the archive can be reverted. |
---|
| 39 | The API is documented by man pages. |
---|
| 40 | |
---|
| 41 | %package devel |
---|
| 42 | Summary: Development files for %{name} |
---|
| 43 | Group: Development/Libraries |
---|
| 44 | Requires: %{name} = %{version}-%{release} |
---|
| 45 | Requires: pkgconfig |
---|
| 46 | Requires: zlib-devel |
---|
| 47 | |
---|
| 48 | %description devel |
---|
| 49 | The %{name}-devel package contains libraries and header files for |
---|
| 50 | developing applications that use %{name}. |
---|
| 51 | |
---|
[12428] | 52 | |
---|
[521] | 53 | %prep |
---|
[11368] | 54 | %autosetup -p1 |
---|
[521] | 55 | |
---|
[12428] | 56 | |
---|
[521] | 57 | %build |
---|
[12428] | 58 | %cmake \ |
---|
| 59 | -DENABLE_COMMONCRYPTO:BOOL=OFF \ |
---|
| 60 | -DENABLE_GNUTLS:BOOL=OFF \ |
---|
| 61 | -DENABLE_MBEDTLS:BOOL=OFF \ |
---|
| 62 | -DENABLE_OPENSSL:BOOL=ON \ |
---|
| 63 | -DENABLE_WINDOWS_CRYPTO:BOOL=OFF \ |
---|
| 64 | -DENABLE_BZIP2:BOOL=ON \ |
---|
| 65 | -DENABLE_LZMA:BOOL=ON \ |
---|
| 66 | -DBUILD_TOOLS:BOOL=ON \ |
---|
| 67 | -DBUILD_REGRESS:BOOL=ON \ |
---|
| 68 | -DBUILD_EXAMPLES:BOOL=OFF \ |
---|
| 69 | -DBUILD_DOC:BOOL=ON \ |
---|
| 70 | . |
---|
| 71 | |
---|
[521] | 72 | make %{?_smp_mflags} |
---|
| 73 | |
---|
[12428] | 74 | |
---|
[521] | 75 | %install |
---|
| 76 | rm -rf $RPM_BUILD_ROOT |
---|
| 77 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
---|
| 78 | |
---|
| 79 | |
---|
[12428] | 80 | %check |
---|
| 81 | make check |
---|
| 82 | |
---|
| 83 | |
---|
[521] | 84 | %clean |
---|
| 85 | rm -rf $RPM_BUILD_ROOT |
---|
| 86 | |
---|
[12428] | 87 | |
---|
[521] | 88 | %post -p /sbin/ldconfig |
---|
| 89 | |
---|
| 90 | %postun -p /sbin/ldconfig |
---|
| 91 | |
---|
[12428] | 92 | |
---|
[521] | 93 | %files |
---|
| 94 | %defattr(-,root,root,-) |
---|
[12428] | 95 | %license LICENSE* |
---|
| 96 | %doc AUTHORS THANKS *.md |
---|
[11368] | 97 | %{_bindir}/* |
---|
| 98 | %{_libdir}/libzip.so.* |
---|
[521] | 99 | %{_mandir}/man1/*zip* |
---|
| 100 | |
---|
| 101 | %files devel |
---|
| 102 | %defattr(-,root,root,-) |
---|
[11368] | 103 | %{_includedir}/* |
---|
[521] | 104 | %{_libdir}/libzip.so |
---|
| 105 | %{_libdir}/pkgconfig/libzip.pc |
---|
[12428] | 106 | %dir %{_libdir}/cmake |
---|
| 107 | %{_libdir}/cmake/libzip |
---|
[11368] | 108 | %{_mandir}/man3/* |
---|
[521] | 109 | |
---|
| 110 | |
---|
| 111 | %changelog |
---|
[12428] | 112 | * Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.3-1 |
---|
| 113 | - new upstream release. |
---|
| 114 | |
---|
| 115 | * Sat Jul 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.7.1-1 |
---|
| 116 | - new upstream release. |
---|
| 117 | - dropped all patches. |
---|
| 118 | |
---|
[11368] | 119 | * Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1 |
---|
| 120 | - new upstream release. |
---|
| 121 | - import patches from rawhide. |
---|
| 122 | |
---|
[1901] | 123 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2 |
---|
| 124 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 125 | |
---|
[521] | 126 | * Sat Mar 6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.3-1 |
---|
| 127 | - new upstream release |
---|
| 128 | - built with new toolchain |
---|
| 129 | |
---|
| 130 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-5 |
---|
| 131 | - fixed %%changelog based on libzip-0.9-1vl5(VinePlus/5.0) package |
---|
| 132 | |
---|
| 133 | * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-4 |
---|
| 134 | - Initial build for Vine Linux |
---|
| 135 | |
---|
| 136 | * Sat Feb 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9-1 |
---|
| 137 | - initial release |
---|
| 138 | |
---|