Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37487069
en ru br
Репозитории ALT
5.1: 1.0.6-alt1
4.1: 1.0.6-alt0.M40.1
4.0: 1.0.6-alt0.M40.1
3.0: 1.0.3-alt5

Группа :: Архивирование/Сжатие
Пакет: bzip2

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

Name: bzip2
Version: 1.0.6
Release: alt0.M40.1
Epoch: 1

Summary: Extremely powerful file compression utility
License: BSD-style
Group: Archiving/Compression
Url: http://www.bzip.org/
Packager: Dmitry V. Levin <ldv at altlinux.org>

# http://www.bzip.org/%version/bzip2-%version.tar.gz

Source: bzip2-%version.tar
Source1: bzip2.texi

Patch1: bzip2-1.0.6-alt-autotools.patch
Patch2: bzip2-1.0.6-alt-versioning.patch
Patch3: bzip2-1.0.6-owl-bzdiff-tmp.patch
Patch4: bzip2-1.0.6-alt-owl-fopen.patch
Patch5: bzip2-1.0.6-alt-const.patch
Patch6: bzip2-1.0.6-alt-progname.patch
Patch7: bzip2-1.0.6-flok-show-progress.patch

PreReq: bzlib = %epoch:%version-%release
BuildPreReq: glibc-devel-static

%package -n bzlib
Summary: The bzlib compression and decompression library
Summary(ru_RU.UTF-8): п▒п╦п╠п╩п╦п╬я┌п╣п╨п╟ я│п╤п╟я┌п╦я▐ п╢п╟п╫п╫я▀я┘ bzlib
Group: System/Libraries

%package -n bzlib-devel
Summary: Include files for developing apps which will use bzip2
Group: Development/C
Provides: %name-devel = %version
Obsoletes: %name-devel
PreReq: bzlib = %epoch:%version-%release

%package -n bzlib-devel-static
Summary: Static library for developing apps which will use bzip2
Group: Development/C
Provides: %name-devel-static = %version
Obsoletes: %name-devel-static
Requires: bzlib-devel = %epoch:%version-%release

%package doc
Summary: Documentation for developing apps which will use bzip2
Group: Development/C
BuildArch: noarch
Requires: %name = %epoch:%version-%release

bzip2 is a freely available, patent-free, high quality data compressor.

bzip2 compresses files using the Burrows-Wheeler block sorting text
compression algorithm and Huffman coding.  Compression is generally
considerably better than that achieved by more conventional
LZ77/LZ78-based compressors (such as gzip), and approaches the
performance of the PPM family of statistical compressors.  bzip2 is
by far not the fastest compression utility, but it does strike a
balance between speed and compression capability.

The command-line options are deliberately very similar to those of
GNU Gzip, but they are not identical.

%description -n bzlib
The bzip2 compression library provides in-memory compression and
decompression functions, including integrity checks of the uncompressed
data.  The bzip2 library is used by many different system programs.

%description -n bzlib-devel
This package contains the include files needed to develop programs that
use the bzip2 compression and decompression library.

%description -n bzlib-devel-static
This package contains the static library needed to develop statically
linked programs that use the bzip2 compression and decompression

%description doc
This package contains additional documentation on bzip2 compression and
decompression library.

%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
find -type f -name \*.orig -delete
chmod a+x *.sh
install -pm644 %_sourcedir/bzip2.texi .

%define _optlevel 3
%add_optflags -Winline
%ifarch %ix86 x86_64
%add_optflags -momit-leaf-frame-pointer

autoreconf -fisv
%configure --enable-shared --enable-static
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}


# Relocate shared libraries from %_libdir/ to /%_lib/.

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

# Relocate binaries and manpages

pushd %buildroot
mkdir -p bin sbin
mv .%_bindir/* bin/

for f in bzip bunzip; do
ln -s ../../bin/bzip2 .%_bindir/$f
ln -s bzip2.1 .%_man1dir/$f.1
for f in bzip2 bunzip2 bzcat; do
ln -s ../../bin/bzip2 .%_bindir/$f
for f in bzip2recover; do
ln -s ../../bin/$f .%_bindir/$f
ln -s bzip2.1 .%_man1dir/$f.1

# Our bzless and bzmore live in less package.

rm bin/bz{less,more} .%_man1dir/bz{less,more}.*

# Our bzdiff, bzcmp and bz*grep live in gzip-utils package.

rm .{/bin,%_man1dir}/{bzdiff,bzcmp,bzgrep,bzfgrep,bzegrep}*

%define docdir %_docdir/%name-%version
rm -rf %buildroot%docdir
mkdir -p %buildroot%docdir
install -pm644 CHANGES LICENSE README *.html %buildroot%docdir/

%post -n bzlib-devel
%install_info bzip2.info

%preun -n bzlib-devel
%uninstall_info bzip2.info

%files -n bzlib
%dir %docdir

%files -n bzlib-devel

%files -n bzlib-devel-static

%dir %docdir

%files doc
%dir %docdir


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

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