###############################################################################
name = bzip2
-version = 1.0.6
-release = 7
+version = 1.0.8
+release = 1
groups = Applications/Compression
-url = http://www.bzip.org/
+url = https://sourceware.org/bzip2/
license = GPLv2+
-summary = Bzip2 is a data compressor.
+summary = Bzip2 is a data compressor
description
bzip2 is a freely available, patent free (see below), high-quality data
compressor that is an alternative to the GNU zip compressor.
end
-source_dl = http://www.bzip.org/%{version}/
-
-CFLAGS += -fPIC -D_FILE_OFFSET_BITS=64
+source_dl = https://sourceware.org/pub/bzip2/
build
- prepare_cmds
- sed -i 's@\(ln -s -f \)\$(PREFIX)/bin/@\1@' Makefile
- sed -e "s/\$(CC) -shared/& %{CFLAGS}/" -i Makefile-libbz2_so
- end
-
build
- %{DO_FIX_LIBTOOL}
make -f Makefile-libbz2_so %{PARALLELISMFLAGS} \
CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}"
packages
package %{name}
- groups += Build
- # Provide older soname to fix problem with
- # older version of the package.
- if "%{DISTRO_ARCH}" == "i686"
- provides += libbz2.so.1.0
- end
+ package %{name}-libs
+ template LIBS
end
package %{name}-devel