name: bzip2
version: 1.0.6
release: 2
sources: https://downloads.sourceforge.net/project/bzip2/bzip2-%{version}.tar.gz
options:
- make install: PREFIX='%{pkg}%{prefix}'
@configure
sed -i.orig -e '/^CFLAGS=/s/.*/CFLAGS = -O2 -fPIC/' bzip2-%{version}/Makefile