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

Revision 11368, 2.5 KB checked in by tomop, 6 years ago (diff)

libzip-1.4.0-1

Line 
1%define _unpackaged_files_terminate_build 1
2
3Summary:        C library for reading, creating, and modifying zip archives
4Name:           libzip
5Version:        1.4.0
6Release:        1%{?_dist_release}
7
8Group:          System Environment/Libraries
9License:        BSD
10URL:            https://libzip.org/
11Source0:        https://libzip.org/download/%{name}-%{version}.tar.xz
12
13# allow path customization (lib64)
14Patch0:  libzip-upstream.patch
15# drop RPATH from installed binaries
16Patch1:  libzip-rpath.patch
17# fix multi-lib issue
18Patch2:  libzip-multilib.patch
19
20BuildRoot:      %{_tmppath}/%{name}-%{version}-root
21BuildRequires:  zlib-devel >= 1.2.2
22BuildRequires:  bzip2-devel
23BuildRequires:  pkgconfig
24BuildRequires:  cmake
25
26%description
27libzip is a C library for reading, creating, and modifying zip archives. Files
28can be added from data buffers, files, or compressed data copied directly from
29other zip archives. Changes made without closing the archive can be reverted.
30The API is documented by man pages.
31
32%package devel
33Summary: Development files for %{name}
34Group: Development/Libraries
35Requires: %{name} = %{version}-%{release}
36Requires: pkgconfig
37Requires: zlib-devel
38
39%description devel
40The %{name}-devel package contains libraries and header files for
41developing applications that use %{name}.
42
43%prep
44%autosetup -p1
45
46%build
47%cmake .
48make %{?_smp_mflags}
49
50%install
51rm -rf $RPM_BUILD_ROOT
52make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
53
54find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
55
56%clean
57rm -rf $RPM_BUILD_ROOT
58
59%post -p /sbin/ldconfig
60
61%postun -p /sbin/ldconfig
62
63%files
64%defattr(-,root,root,-)
65%doc LICENSE* AUTHORS* NEWS* README* THANKS* TODO*
66%{_bindir}/*
67%{_libdir}/libzip.so.*
68%{_mandir}/man1/*zip*
69
70%files devel
71%defattr(-,root,root,-)
72%{_includedir}/*
73%{_libdir}/libzip.so
74%{_libdir}/pkgconfig/libzip.pc
75%{_mandir}/man3/*
76
77
78%changelog
79* Mon Jan 08 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.0-1
80- new upstream release.
81- import patches from rawhide.
82
83* Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.3-2
84- rebuild with rpm-4.8.1 for pkg-config file
85
86* Sat Mar  6 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9.3-1
87- new upstream release
88- built with new toolchain
89
90* Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-5
91- fixed %%changelog based on libzip-0.9-1vl5(VinePlus/5.0) package
92
93* Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.9-4
94- Initial build for Vine Linux
95
96* Sat Feb 14 2009 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.9-1
97- initial release
98
Note: See TracBrowser for help on using the repository browser.