zziplib/zziplib.spec

91 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# spec file for package zziplib (Version 0.13.58)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: zziplib
Summary: ZZipLib: Free Zip Compression Library with an Easy-to-Use API
Version: 0.13.58
Release: 1
License: LGPLv2.1+
Group: System/Libraries
AutoReqProv: on
Url: http://zziplib.sourceforge.net
Source0: http://prdownloads.sourceforge.net/zziplib/%{name}-%{version}.tar.bz2
Patch: zziplib-0.13.49.patch
Patch1: zziplib-0.13.58-wronglinking.patch
BuildRequires: pkgconfig python zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
ZZipLib is a library for dealing with zip and zip-like archives by
using free algorithms of zlib.
%package devel
License: LGPLv2.1+
Summary: ZZipLib: free zip compression library with easy to use API
Group: Development/Libraries/C and C++
Requires: %{name} = %{version} zlib-devel
%description devel
That are the header files needed for developing applications using
ZZipLib.
%prep
%setup -q
%patch
%patch1
%build
autoreconf -fiv
%configure --enable-largefile --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
make doc
%install
%{__make} DESTDIR=%{buildroot} install
%{__rm} -f docs/Make* docs/zziplib-manpages.ar
%{__rm} -f %{buildroot}%{_libdir}/*.la
%check
%{__make} check || exit 0
%clean
%{__rm} -rf %{buildroot}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libzzip*-*.so.*
%files devel
%defattr(-,root,root)
%doc docs/README* docs/* ChangeLog README TODO
%{_bindir}/unzzip*
%{_bindir}/zz*
%{_bindir}/unzip-mem
%{_libdir}/libzzip*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*
%{_datadir}/aclocal/*.m4
%changelog