[ocaml-openin] OCaml 4.01.0 rebuild.

Richard W.M. Jones rjones at fedoraproject.org
Thu Sep 19 09:15:13 UTC 2013


commit 7b3ec87aa5185da074d006344444fed40930240a
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Sep 19 10:15:01 2013 +0100

    OCaml 4.01.0 rebuild.
    
    - Modernize the spec file.

 ocaml-openin.spec |   23 +++++++++--------------
 1 files changed, 9 insertions(+), 14 deletions(-)
---
diff --git a/ocaml-openin.spec b/ocaml-openin.spec
index c41432a..b678443 100644
--- a/ocaml-openin.spec
+++ b/ocaml-openin.spec
@@ -1,16 +1,15 @@
-%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
-%define debug_package %{nil}
+%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
+%global debug_package %{nil}
 
 Name:           ocaml-openin
 Version:        20070524
-Release:        18%{?dist}
+Release:        20%{?dist}
 Summary:        OCaml syntax to locally open modules
 
-Group:          Development/Libraries
 License:        Public Domain
 URL:            http://alain.frisch.fr/soft#openin
 Source0:        http://alain.frisch.fr/info/openin-20070524.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
 ExcludeArch:    sparc64 s390 s390x
 
 BuildRequires:  ocaml >= 3.10.0
@@ -18,9 +17,7 @@ BuildRequires:  ocaml-findlib-devel
 BuildRequires:  ocaml-ocamldoc
 BuildRequires:  ocaml-camlp4-devel
 
-%define _use_internal_dependency_generator 0
-%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh -i Asttypes -i Parsetree
-%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
+%global __ocaml_requires_opts -i Asttypes -i Parsetree
 
 
 %description
@@ -51,7 +48,6 @@ EOF
 
 
 %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
@@ -59,17 +55,16 @@ mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
 ocamlfind install openin META pa_openin.cmo
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files
-%defattr(-,root,root,-)
 %doc README
 %{_libdir}/ocaml/openin
 
 
 %changelog
+* Thu Sep 19 2013 Richard W.M. Jones <rjones at redhat.com> - 20070524-19
+- OCaml 4.01.0 rebuild.
+- Modernize the spec file.
+
 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 20070524-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
 


More information about the scm-commits mailing list