1 | %define _unpackaged_files_terminate_build 1 |
---|
2 | |
---|
3 | Summary: C library for reading, creating, and modifying zip archives |
---|
4 | Name: libzip |
---|
5 | Version: 1.7.3 |
---|
6 | Release: 1%{?_dist_release} |
---|
7 | Group: System Environment/Libraries |
---|
8 | Vendor: Project Vine |
---|
9 | Distribution: Vine Linux |
---|
10 | |
---|
11 | License: BSD |
---|
12 | URL: https://libzip.org/ |
---|
13 | Source0: https://libzip.org/download/%{name}-%{version}.tar.xz |
---|
14 | |
---|
15 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildRequires: zlib-devel |
---|
17 | BuildRequires: bzip2-devel |
---|
18 | BuildRequires: xz-devel |
---|
19 | BuildRequires: openssl-devel |
---|
20 | BuildRequires: pkgconfig |
---|
21 | BuildRequires: cmake |
---|
22 | |
---|
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 | |
---|
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 | |
---|
52 | |
---|
53 | %prep |
---|
54 | %autosetup -p1 |
---|
55 | |
---|
56 | |
---|
57 | %build |
---|
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 | |
---|
72 | make %{?_smp_mflags} |
---|
73 | |
---|
74 | |
---|
75 | %install |
---|
76 | rm -rf $RPM_BUILD_ROOT |
---|
77 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' |
---|
78 | |
---|
79 | |
---|
80 | %check |
---|
81 | make check |
---|
82 | |
---|
83 | |
---|
84 | %clean |
---|
85 | rm -rf $RPM_BUILD_ROOT |
---|
86 | |
---|
87 | |
---|
88 | %post -p /sbin/ldconfig |
---|
89 | |
---|
90 | %postun -p /sbin/ldconfig |
---|
91 | |
---|
92 | |
---|
93 | %files |
---|
94 | %defattr(-,root,root,-) |
---|
95 | %license LICENSE* |
---|
96 | %doc AUTHORS THANKS *.md |
---|
97 | %{_bindir}/* |
---|
98 | %{_libdir}/libzip.so.* |
---|
99 | %{_mandir}/man1/*zip* |
---|
100 | |
---|
101 | %files devel |
---|
102 | %defattr(-,root,root,-) |
---|
103 | %{_includedir}/* |
---|
104 | %{_libdir}/libzip.so |
---|
105 | %{_libdir}/pkgconfig/libzip.pc |
---|
106 | %dir %{_libdir}/cmake |
---|
107 | %{_libdir}/cmake/libzip |
---|
108 | %{_mandir}/man3/* |
---|
109 | |
---|
110 | |
---|
111 | %changelog |
---|
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 | |
---|
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 | |
---|
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 | |
---|
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 | |
---|