Репозиторий Sisyphus
Последнее обновление: 6 июля 2020 | Пакетов: 17685 | Посещений: 18841989
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.8
Release: alt1
Epoch: 1

Summary: A file compression utility
License: bzip2-1.0.6
Group: Archiving/Compression
Url: https://www.sourceware.org/bzip2/

# git://git.altlinux.org/gears/b/bzip2.git

Source: %name-%version-%release.tar

Requires: bzlib = %EVR
BuildPreReq: glibc-devel-static makeinfo

%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
Requires: bzlib = %EVR

%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 = %EVR

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

%setup -n %name-%version-%release

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

%configure --enable-shared --enable-static

%make_build -k check


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

mkdir %buildroot/%_lib
for f in %buildroot%_libdir/*.so; do
t=$(readlink "$f")
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}*

# Package pkgconfig file

mkdir -p %buildroot%_pkgconfigdir
cat > %buildroot%_pkgconfigdir/%name.pc <<'EOF'

Name: %name
Version: %version
Description: bzlib compression and decompression library
Libs: -lbz2

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

%set_verify_elf_method strict
%define _unpackaged_files_terminate_build 1

%files -n bzlib
%dir %docdir/

%files -n bzlib-devel

%files -n bzlib-devel-static

%dir %docdir/


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

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