simplify spec
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
36ed41423e
commit
5cf11704da
13
pbzip2.spec
13
pbzip2.spec
@ -4,13 +4,8 @@ Release: 7%{?dist}
|
||||
Summary: Parallel implementation of bzip2
|
||||
URL: http://www.compression.ca/pbzip2/
|
||||
License: BSD
|
||||
Group: Applications/File
|
||||
%if %{?suse_version:1}0
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: bzip2
|
||||
%else
|
||||
BuildRequires: bzip2-devel
|
||||
%endif
|
||||
Source0: http://www.compression.ca/pbzip2/%{name}-%{version}.tar.gz
|
||||
Patch0: %{name}-1.1.12-buildflags.patch
|
||||
|
||||
@ -29,15 +24,11 @@ f=AUTHORS; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 && mv $f.utf8 $f
|
||||
|
||||
|
||||
%build
|
||||
export CFLAGS="-fpic %{optflags}"
|
||||
export CXXFLAGS="-fpic %{optflags}"
|
||||
export LDFLAGS="%{?__global_ldflags}"
|
||||
|
||||
make %{?_smp_mflags}
|
||||
%set_build_flags
|
||||
%make_build
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}
|
||||
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
||||
ln -sf ./%{name} %{buildroot}%{_bindir}/pbunzip2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user