Search
j0ke.net Open Build Service
>
Projects
>
oldschool
>
zziplib
> zziplib.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File zziplib.spec of Package zziplib (Revision 2)
Currently displaying revision
2
,
show latest
%define lib lib010 Summary: ZZipLib - libZ-based ZIP-access Library Name: zziplib Version: 0.10.82 Release: 1 Serial: 1 Copyright: LGPL Group: Development/Libraries URL: http://zziplib.sf.net Vendor: Guido Draheim <guidod@gmx.de> Source0: http://prdownloads.sf.net/%{name}/%{name}-%{version}.tar.bz2 BuildRoot: /var/tmp/%{name}-%{version}-%{release} Distribution: Original Packager: Guido Draheim <guidod@gmx.de> Requires: libz BuildRequires: libz BuildRequires: SDL-devel %package %lib Summary: ZZipLib - Documentation Files Group: Development/Libraries Provides: zziplib Provides: libzzip0 %package doc Summary: ZZipLib - Documentation Files Group: Development/Libraries %package devel Summary: ZZipLib - Development Files Group: Development/Libraries Requires: zziplib-%lib = %version # Requires: pkgconfig (not yet) %description : zziplib provides read access to zipped files in a zip-archive, : using compression based solely on free algorithms provided by zlib. %description %lib : zziplib provides read access to zipped files in a zip-archive, : using compression based solely on free algorithms provided by zlib. zziplib provides an additional API to transparently access files being either real files or zipped files with the same filepath argument. This is handy to package many files being shared data into a single zip file - as it is sometimes used with gamedata or script repositories. The library itself is fully multithreaded, and it is namespace clean using the zzip_ prefix for its exports and declarations. %description doc : zziplib provides read access to zipped files in a zip-archive, : using compression based solely on free algorithms provided by zlib. these are the (html) docs, mostly generated actually. %description devel : zziplib provides read access to zipped files in a zip-archive, : using compression based solely on free algorithms provided by zlib. these are the header files needed to develop programs using zziplib. there are test binaries to hint usage of the library in user programs. %prep %setup # fixing relink problems during install too LDFLAGS="-L%buildroot%_libdir" \ CFLAGS="$RPM_OPT_FLAGS" \ sh configure --prefix=%{_prefix} --enable-sdl --disable-builddir \ --with-docdir=%{_docdir} --mandir=%{_mandir} TIMEOUT=9 cp -a zzip zzip64 %build %define _FILE_OFFSET64 -D_ZZIP_LARGEFILE -D_FILE_OFFSET_BITS=64 %define _RELEASEINFO64 "RELEASE_INFO=-release 0-64" %define _CFLAGS_OFFSET64 "AM_CFLAGS=%_FILE_OFFSET64" make (cd zzip64 && make %_CFLAGS_OFFSET64 %_RELEASEINFO64) make doc %install rm -rf %{buildroot} (cd zzip64 && make install %_RELEASEINFO64 DESTDIR=%{buildroot}) (cd %buildroot/%_libdir && mv libzzip.so libzzip64.so) (cd %buildroot/%_libdir && mv libzzip.a libzzip64.a) (cd %buildroot/%_libdir && \ sed -e 's/zzip.so/zzip64.so/' -e 's/zzip.a/zzip64.a/' libzzip.la >libzzip64.la) (cd %buildroot/%_libdir/pkgconfig && \ sed -e 's/largefile=/largefile= %_FILE_OFFSET64/' \ -e 's/-lzzip/-lzzip64/' -e 's/zziplib/zziplib64/' zziplib.pc >zziplib64.pc) make install DESTDIR=%{buildroot} (cd %buildroot/%_libdir && mv libzzip.so libzzip32.so) (cd %buildroot/%_libdir && mv libzzip.a libzzip32.a) (cd %buildroot/%_libdir && ln -s libzzip32.so libzzip.so) (cd %buildroot/%_libdir && ln -s libzzip32.a libzzip.a) (cd %buildroot/%_libdir && \ sed -e 's/zzip.so/zzip32.so/' -e 's/zzip.a/zzip32.a/' libzzip.la >libzzip32.la) (cd %buildroot/%_libdir/pkgconfig && \ sed -e 's/-lzzip/-lzzip32/' -e 's/zziplib/zziplib32/' zziplib.pc >zziplib32.pc) make install-doc DESTDIR=%{buildroot} make install-man3 DESTDIR=%{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf %{buildroot} %files %lib %defattr(-,root,root) %{_libdir}/lib*.so.* %files doc %defattr(-,root,root) %{_datadir}/groups/* %dir %{_datadir}/omf/%{name} %{_datadir}/omf/%{name}/* %post doc test ! -f /usr/bin/scrollkeeper-update || /usr/bin/scrollkeeper-update %postun doc test ! -f /usr/bin/scrollkeeper-update || /usr/bin/scrollkeeper-update %files devel %defattr(-,root,root) %{_bindir}/* %dir %{_includedir}/zzip %{_includedir}/zzip/* %{_includedir}/*.h %{_libdir}/lib*.so %{_libdir}/lib*.a %{_libdir}/lib*.la %{_libdir}/pkgconfig/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_datadir}/aclocal/%{name}*.m4 %{_mandir}/man3/*