Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37840972
en ru br
ALT Linux repos
S:1.06-alt1
5.0: 0.91-alt1
4.1: 0.4-alt1
4.0: 0.4-alt1
3.0: 0.1-alt2

Group :: System/Libraries
RPM: libzio

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: libzio
Version: 0.91
Release: alt1

Summary: A library for accessing compressed text files
License: GPLv2+
Group: System/Libraries
Packager: Dmitry V. Levin <ldv at altlinux.org>

Source: libzio-%version.tar
Patch: %name-%version-%release.patch

BuildPreReq: zlib-devel bzlib-devel liblzmadec-devel lzma-utils

%package devel
Summary: Development files for the libzio library
Group: Development/C
Requires: %name = %version-%release

%description
Libzio provides a wrapper function for reading or writing gzip, bzip2
and lzma-compressed files with FILE streams.

%description devel
Libzio provides a wrapper function for reading or writing gzip, bzip2
and lzma-compressed files with FILE streams.

This package contains library and header files needed for
building libzio-aware applications.

%prep
%setup -q
%patch -p1

%build
%make_build libdir=/%_lib shared tests testt

for f in *; do
[ -f "$f" -a ! -L "$f" ] || continue
for comp in gzip bzip2 lzma; do
$comp -c <"$f" >sample
LD_LIBRARY_PATH=. ./testt sample |cmp "$f" -
cat sample |LD_LIBRARY_PATH=. ./tests ${comp:0:1} |cmp "$f" -
done
done

%install
%make_install install-shared install-data \
DESTDIR=%buildroot libdir=/%_lib mandir=%_mandir

# Relocate development library from /%_lib/ to %_libdir/.

mkdir -p %buildroot%_libdir
for f in %buildroot/%_lib/*.so; do
t=`objdump -p "$f" |awk '/SONAME/ {print $2}'`
[ -n "$t" ]
ln -snf ../../%_lib/"$t" "%buildroot%_libdir/${f##*/}"
rm -f "$f"
done

%files
%doc README
/%_lib/*.so.*

%files devel
%_libdir/*.so
%_includedir/*
%_man3dir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin