Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37041578
en ru br
Репозитории ALT
S:1.06-alt1
5.1: 0.99-alt4
4.1: 0.4-alt1
4.0: 0.4-alt1
3.0: 0.1-alt2
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libzio

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: libzio
Version: 0.99
Release: alt4

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

# http://downloads.sourceforge.net/libzio/libzio-%version.tar.bz2

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

BuildPreReq: zlib-devel bzlib-devel liblzma-devel xz

%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 noweak tests testt testw

%check
for s in gz bz2 lzma xz; do
ln -s sample sample.$s
done
for f in *; do
[ -f "$f" -a ! -L "$f" ] || continue
for comp in gzip bzip2 lzma xz; do
$comp -c <"$f" >sample
for s in '' .gz .bz2 .lzma .xz; do
LD_LIBRARY_PATH=%buildroot/%_lib ./testt sample$s |
cmp "$f" -
cat sample$s |
LD_LIBRARY_PATH=%buildroot/%_lib ./tests ${comp:0:1} |
cmp "$f" -
done
done
done
rm sample*
for f in *; do
[ -f "$f" -a ! -L "$f" ] || continue
rm -f sample*
LD_LIBRARY_PATH=%buildroot/%_lib ./testw sample <"$f"
cmp "$f" sample
LD_LIBRARY_PATH=%buildroot/%_lib ./testw sample.gz <"$f"
gzip -dc <sample.gz |cmp "$f" -
LD_LIBRARY_PATH=%buildroot/%_lib ./testw sample.bz2 <"$f"
bzip2 -dc <sample.bz2 |cmp "$f" -
LD_LIBRARY_PATH=%buildroot/%_lib ./testw sample.xz <"$f"
xz -dc <sample.xz |cmp "$f" -
LD_LIBRARY_PATH=%buildroot/%_lib ./testw sample.lzma <"$f"
lzma -dc <sample.lzma |cmp "$f" -
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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin