Exclude armv7hl (not supported by upstream C code).

- Modernize the spec file.
This commit is contained in:
Richard W.M. Jones 2013-08-04 23:09:49 +01:00
parent b187a6c8ae
commit a914e42dc1

View File

@ -3,24 +3,20 @@
Name: ocaml-gsl
Version: 0.6.0
Release: 18%{?dist}
Release: 19%{?dist}
Summary: Interface to GSL (GNU scientific library) for OCaml
Group: Development/Libraries
License: GPLv2
URL: http://oandrieu.nerim.net/ocaml/gsl/
Source0: http://oandrieu.nerim.net/ocaml/gsl/ocamlgsl-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ExcludeArch: sparc64 s390 s390x
ExcludeArch: armv7hl sparc64 s390 s390x
BuildRequires: ocaml >= 3.07
BuildRequires: ocaml-findlib-devel
BuildRequires: gsl-devel >= 1.9
BuildRequires: /usr/bin/awk
%define _use_internal_dependency_generator 0
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
%description
This is an interface to GSL (GNU scientific library), for the
@ -29,7 +25,6 @@ Objective Caml language.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: /sbin/install-info
@ -49,8 +44,6 @@ strip dllmlgsl.so
%install
rm -rf $RPM_BUILD_ROOT
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
@ -64,10 +57,6 @@ mkdir -p $RPM_BUILD_ROOT%{_infodir}
install -m 644 ocamlgsl.info* $RPM_BUILD_ROOT%{_infodir}
%clean
rm -rf $RPM_BUILD_ROOT
%post devel
/sbin/install-info %{_infodir}/ocamlgsl.info %{_infodir}/dir
@ -77,7 +66,6 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/ocaml/gsl
%if %opt
@ -91,7 +79,6 @@ rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root,-)
%doc COPYING README NEWS NOTES doc
%if %opt
%{_libdir}/ocaml/gsl/*.a
@ -103,6 +90,10 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Sun Aug 4 2013 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-19
- Exclude armv7hl (not supported by upstream C code).
- Modernize the spec file.
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild