source: projects/specs/trunk/lib/libz/libzip/libzip-vl.spec @ 12428

Revision 12428, 3.3 KB checked in by tomop, 4 years ago (diff)

updated 5 packages

cmake-3.18.0-1

jsoncpp-1.9.3-1

libarchive-3.4.3-1

libzip-1.7.3-1

xz-5.2.5-1

Line 
1%define _unpackaged_files_terminate_build 1
2
3Summary:        C library for reading, creating, and modifying zip archives
4Name:           libzip
5Version:        1.7.3
6Release:        1%{?_dist_release}
7Group:          System Environment/Libraries
8Vendor:         Project Vine
9Distribution:   Vine Linux
10
11License:        BSD
12URL:            https://libzip.org/
13Source0:        https://libzip.org/download/%{name}-%{version}.tar.xz
14
15BuildRoot:      %{_tmppath}/%{name}-%{version}-root
16BuildRequires:  zlib-devel
17BuildRequires:  bzip2-devel
18BuildRequires:  xz-devel
19BuildRequires:  openssl-devel
20BuildRequires:  pkgconfig
21BuildRequires:  cmake
22
23BuildRequires:  perl
24BuildRequires:  perl(Cwd)
25BuildRequires:  perl(File::Copy)
26BuildRequires:  perl(File::Path)
27BuildRequires:  perl(Getopt::Long)
28BuildRequires:  perl(IPC::Open3)
29BuildRequires:  perl(Storable)
30BuildRequires:  perl(Symbol)
31BuildRequires:  perl(UNIVERSAL)
32BuildRequires:  perl(strict)
33BuildRequires:  perl(warnings)
34
35%description
36libzip is a C library for reading, creating, and modifying zip archives. Files
37can be added from data buffers, files, or compressed data copied directly from
38other zip archives. Changes made without closing the archive can be reverted.
39The API is documented by man pages.
40
41%package devel
42Summary: Development files for %{name}
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
45Requires: pkgconfig
46Requires: zlib-devel
47
48%description devel
49The %{name}-devel package contains libraries and header files for
50developing 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
72make %{?_smp_mflags}
73
74
75%install
76rm -rf $RPM_BUILD_ROOT
77make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
78
79
80%check
81make check
82
83
84%clean
85rm -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
Note: See TracBrowser for help on using the repository browser.