Репозитории ALT
S: | 1.0.8-alt2 |
5.1: | 1.0.6-alt1 |
4.1: | 1.0.6-alt0.M40.1 |
4.0: | 1.0.6-alt0.M40.1 |
+updates: | 1.0.5-alt2 |
3.0: | 1.0.3-alt5 |
Группа :: Архивирование/Сжатие
Пакет: bzip2
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: bzip2
Version: 1.0.5
Release: alt2
Serial: 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.4-alt-autotools.patch
Patch2: bzip2-1.0.4-alt-versioning.patch
Patch3: bzip2-1.0.4-owl-bzdiff-tmp.patch
Patch4: bzip2-1.0.4-alt-owl-fopen.patch
Patch5: bzip2-1.0.4-alt-const.patch
Patch6: bzip2-1.0.4-alt-progname.patch
Patch7: bzip2-1.0.4-flok-show-progress.patch
PreReq: bzlib = %serial:%version-%release
BuildPreReq: glibc-devel-static
%package -n bzlib
Summary: The bzlib compression and decompression library
Summary(ru_RU.KOI8-R): Библиотека сжатия данных 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 = %serial:%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 = %serial:%version-%release
%package doc
Summary: Documentation for developing apps which will use bzip2
Group: Development/C
Requires: %name = %serial:%version-%release
%description
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 library.
%description doc
This package contains additional documentation on bzip2 compression and
decompression library.
%prep
%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 .
%build
%define _optlevel 3
%add_optflags -Winline
%ifarch %ix86 x86_64
%add_optflags -momit-leaf-frame-pointer
%endif
autoreconf -fisv
%configure --enable-shared --enable-static
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}
%install
%makeinstall
# 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"
done
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
done
for f in bzip2 bunzip2 bzcat; do
ln -s ../../bin/bzip2 .%_bindir/$f
done
for f in bzip2recover; do
ln -s ../../bin/$f .%_bindir/$f
ln -s bzip2.1 .%_man1dir/$f.1
done
# 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}*
popd
%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
%post -n bzlib -p %post_ldconfig_sys
%postun -n bzlib -p %postun_ldconfig
%files -n bzlib
/%_lib/*
%dir %docdir
%docdir/LICENSE
%files -n bzlib-devel
%_libdir/*.so
%_includedir/*
%_infodir/*.info*
%files -n bzlib-devel-static
%_libdir/*.a
%files
/bin/*
%_bindir/b*zip*
%_bindir/bzcat
%_man1dir/b*zip*.*
%_man1dir/bzcat.*
%dir %docdir
%docdir/[CR]*
%files doc
%dir %docdir
%docdir/*.html
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.0.5
Release: alt2
Serial: 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.4-alt-autotools.patch
Patch2: bzip2-1.0.4-alt-versioning.patch
Patch3: bzip2-1.0.4-owl-bzdiff-tmp.patch
Patch4: bzip2-1.0.4-alt-owl-fopen.patch
Patch5: bzip2-1.0.4-alt-const.patch
Patch6: bzip2-1.0.4-alt-progname.patch
Patch7: bzip2-1.0.4-flok-show-progress.patch
PreReq: bzlib = %serial:%version-%release
BuildPreReq: glibc-devel-static
%package -n bzlib
Summary: The bzlib compression and decompression library
Summary(ru_RU.KOI8-R): Библиотека сжатия данных 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 = %serial:%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 = %serial:%version-%release
%package doc
Summary: Documentation for developing apps which will use bzip2
Group: Development/C
Requires: %name = %serial:%version-%release
%description
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 library.
%description doc
This package contains additional documentation on bzip2 compression and
decompression library.
%prep
%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 .
%build
%define _optlevel 3
%add_optflags -Winline
%ifarch %ix86 x86_64
%add_optflags -momit-leaf-frame-pointer
%endif
autoreconf -fisv
%configure --enable-shared --enable-static
%make_build
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%make_build -k check}}}
%install
%makeinstall
# 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"
done
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
done
for f in bzip2 bunzip2 bzcat; do
ln -s ../../bin/bzip2 .%_bindir/$f
done
for f in bzip2recover; do
ln -s ../../bin/$f .%_bindir/$f
ln -s bzip2.1 .%_man1dir/$f.1
done
# 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}*
popd
%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
%post -n bzlib -p %post_ldconfig_sys
%postun -n bzlib -p %postun_ldconfig
%files -n bzlib
/%_lib/*
%dir %docdir
%docdir/LICENSE
%files -n bzlib-devel
%_libdir/*.so
%_includedir/*
%_infodir/*.info*
%files -n bzlib-devel-static
%_libdir/*.a
%files
/bin/*
%_bindir/b*zip*
%_bindir/bzcat
%_man1dir/b*zip*.*
%_man1dir/bzcat.*
%dir %docdir
%docdir/[CR]*
%files doc
%dir %docdir
%docdir/*.html
%changelog
…
Полный changelog можно просмотреть здесь