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

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

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

Name: zlib
Version: 1.2.3
Release: alt1

Summary: The zlib compression and decompression library
Summary(ru_RU.KOI8-R): Библиотека сжатия данных zlib
License: BSD-like
Group: System/Libraries
Url: http://www.%name.net/

# http://prdownloads.sourceforge.net/libpng/%name-%version.tar.bz2

# http://alumnus.caltech.edu/~madler/%name-%version.tar.bz2
Source: %url/%name-%version.tar.bz2
Source1: zlib.map

Patch1: zlib-1.2.3-alt-gzio-z_err.patch
Patch2: zlib-1.2.2.3-alt-gzio-gzerror.patch
Patch3: zlib-1.2.2.3-alt-gzread-transparent.patch
Patch4: zlib-1.2.1.1-alt-Makefile-asm.patch
Patch5: zlib-1.2.1.2-alt-version-script.patch
Patch6: zlib-1.2.1.1-rh-make-test.patch

%def_enable static

%package devel
Summary: Header files for developing apps which will use zlib
Summary(ru_RU.KOI8-R): Файлы, необходимые для разработки приложений с использованием библиотеки сжатия данных zlib
Group: Development/C
Requires: %name = %version-%release
Requires: glibc-devel

%package devel-static
Summary: Static library for developing apps which will use zlib
Summary(ru_RU.KOI8-R): Файлы, необходимые для разработки статических приложений с использованием библиотеки сжатия данных zlib
Group: Development/C
Requires: %name-devel = %version-%release

%description
The zlib compression library provides in-memory compression and
decompression functions, including integrity checks of the uncompressed
data.  This version of the library supports only one compression method
(deflation), but other algorithms may be added later, which will have
the same stream interface.  The zlib library is used by many different
system programs.

%description devel
The zlib compression library provides in-memory compression and
decompression functions, including integrity checks of the uncompressed
data.  This version of the library supports only one compression method
(deflation), but other algorithms may be added later, which will have
the same stream interface.  The zlib library is used by many different
system programs.

This package contains the header files needed to develop programs
that use the zlib compression and decompression library.

%description devel-static
The zlib compression library provides in-memory compression and
decompression functions, including integrity checks of the uncompressed
data.  This version of the library supports only one compression method
(deflation), but other algorithms may be added later, which will have
the same stream interface.  The zlib library is used by many different
system programs.

This package contains the static library needed to develop statically linked
programs that use the zlib compression and decompression library.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
install -pm644 %SOURCE1 .
fgrep -B999  at  zlib.h >License
find -type f -name \*.orig -delete -print

%build
%define _optlevel 3

OBJA=
%ifarch %ix86
%{!?_enable_debug:%add_optflags -momit-leaf-frame-pointer}
%ifarch i686
%def_enable asm
%if_enabled asm
%add_optflags -DASMV
cp -p contrib/asm686/* .
OBJA=match.o
%endif # enabled asm
%endif # i686
%endif # %ix86

%if_enabled static
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
%make_build OBJA="$OBJA"
make test
rm -f *.s *.o
%endif # enabled static

CFLAGS="$RPM_OPT_FLAGS %optflags_shared" ./configure --prefix=%prefix --shared
%make_build OBJA="$OBJA"
make test

bzip2 -9fk README ChangeLog FAQ algorithm.txt

%install
%__mkdir_p $RPM_BUILD_ROOT{/%_lib,%_libdir,%_includedir,%_man3dir}

cp -a libz.so.* $RPM_BUILD_ROOT/%_lib/
v=`objdump -p libz.so |awk '/SONAME/ {print $2}'`
[ -n "$v" ]
%__ln_s ../../%_lib/$v $RPM_BUILD_ROOT%_libdir/libz.so

install -pm644 zlib.h zconf.h $RPM_BUILD_ROOT%_includedir/
install -pm644 zlib.3 $RPM_BUILD_ROOT%_man3dir/

%if_enabled static
install -pm644 libz.a $RPM_BUILD_ROOT%_libdir/
%endif # enabled static

%define docdir %_docdir/%name-%version
%__mkdir_p $RPM_BUILD_ROOT%docdir
%__install -pm644 License README {FAQ,ChangeLog,algorithm.txt}.bz2 example.c minigzip.c \
$RPM_BUILD_ROOT%docdir/
%__cp -a examples $RPM_BUILD_ROOT%docdir/

%post -p %post_ldconfig_sys
%postun -p %postun_ldconfig

%files
/%_lib/*
%dir %docdir
%docdir/License
%docdir/README

%files devel
%_libdir/*.so
%_includedir/*
%_mandir/man?/*
%docdir
%exclude %docdir/License
%exclude %docdir/README

%if_enabled static
%files devel-static
%_libdir/*.a
%endif

%changelog

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

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