[ocaml-gsl] Exclude armv7hl (not supported by upstream C code).

Richard W.M. Jones rjones at fedoraproject.org
Sun Aug 4 22:10:06 UTC 2013


commit a914e42dc1e0f862d3a30ad7e0ddc5817e3b7763
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Sun Aug 4 23:09:49 2013 +0100

    Exclude armv7hl (not supported by upstream C code).
    
    - Modernize the spec file.

 ocaml-gsl.spec |   23 +++++++----------------
 1 files changed, 7 insertions(+), 16 deletions(-)
---
diff --git a/ocaml-gsl.spec b/ocaml-gsl.spec
index 2a85af8..367e875 100644
--- a/ocaml-gsl.spec
+++ b/ocaml-gsl.spec
@@ -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 at 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 at lists.fedoraproject.org> - 0.6.0-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list