Add tag to mode options for libtool (fixes FTBFS on ARM)
This commit is contained in:
parent
5e9d869874
commit
1843df9975
23
ntl.spec
23
ntl.spec
@ -7,14 +7,13 @@
|
||||
Summary: High-performance algorithms for vectors, matrices, and polynomials
|
||||
Name: ntl
|
||||
Version: 5.5.2
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
|
||||
License: GPLv2+
|
||||
URL: http://shoup.net/ntl/
|
||||
Source0: http://shoup.net/ntl/ntl-%{version}.tar.gz
|
||||
Group: System Environment/Libraries
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
Source0: http://shoup.net/ntl/ntl-%{version}.tar.gz
|
||||
Source1: multilib_template.h
|
||||
|
||||
BuildRequires: gmp-devel
|
||||
@ -57,6 +56,13 @@ Requires: %{name}-devel%{?_isa} = %{version}-%{release}
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
# Specify tag with mode for libtool.
|
||||
sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/def_makefile
|
||||
sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/makefile
|
||||
sed -i.mode 's/ --mode=compile/ --tag=CC --mode=compile/' src/mfile
|
||||
sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/def_makefile
|
||||
sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/makefile
|
||||
sed -i.mode 's/ --mode=link/ --tag=LD --mode=link/' src/mfile
|
||||
|
||||
%build
|
||||
pushd src
|
||||
@ -74,7 +80,7 @@ pushd src
|
||||
popd
|
||||
|
||||
# not smp-safe
|
||||
make -C src
|
||||
make -C src V=1
|
||||
|
||||
|
||||
%check
|
||||
@ -83,8 +89,6 @@ make -C src
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
make -C src install \
|
||||
PREFIX=%{buildroot}%{_prefix} \
|
||||
DOCDIR=%{buildroot}%{_docdir} \
|
||||
@ -112,10 +116,6 @@ done
|
||||
%endif
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README doc/copying.txt
|
||||
@ -135,6 +135,9 @@ rm -rf %{buildroot}
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Aug 1 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 5.5.2-6
|
||||
- Add tag to mode options for libtool (fixes FTBFS on ARM)
|
||||
|
||||
* Tue Jul 31 2012 Rex Dieter <rdieter@fedoraproject.org> - 5.5.2-5
|
||||
- better multilib conflict handling (%%{__isa_bits})
|
||||
- tighten subpkg deps (%%{?_isa})
|
||||
|
Loading…
Reference in New Issue
Block a user