From b324bab93e213a4a7f1b61def8970744b02556e7 Mon Sep 17 00:00:00 2001 From: Richard W.M. Jones Date: Sep 19 2013 13:51:14 +0000 Subject: OCaml 4.01.0 rebuild. - Modernize the spec file. --- diff --git a/ocaml-sexplib.spec b/ocaml-sexplib.spec index 5b686bd..9e8b140 100644 --- a/ocaml-sexplib.spec +++ b/ocaml-sexplib.spec @@ -1,18 +1,17 @@ -%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} -%define dlnode 832 +%global dlnode 832 Name: ocaml-sexplib Version: 7.0.5 -Release: 6%{?dist} +Release: 7%{?dist} Summary: OCaml library for converting OCaml values to S-expressions - -Group: Development/Libraries License: LGPLv2+ with exceptions and BSD + URL: http://forge.ocamlcore.org/projects/sexplib Source0: http://forge.ocamlcore.org/frs/download.php/%{dlnode}/sexplib-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + ExcludeArch: sparc64 s390 s390x # Fix ocamlbuild for ocaml 4.00.0. @@ -24,10 +23,6 @@ BuildRequires: ocaml-ocamldoc BuildRequires: ocaml-type-conv >= 3.0.5 BuildRequires: ocaml-camlp4-devel -%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 library contains functionality for parsing and pretty-printing @@ -45,7 +40,6 @@ sub-expressions in S-expressions. %package devel Summary: Development files for %{name} -Group: Development/Libraries Requires: %{name} = %{version}-%{release} @@ -80,19 +74,13 @@ ocaml setup.ml -test %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 ocaml setup.ml -install -%clean -rm -rf $RPM_BUILD_ROOT - - %files -%defattr(-,root,root,-) %doc LICENSE LICENSE.Tywith %{_libdir}/ocaml/sexplib %if %opt @@ -104,7 +92,6 @@ rm -rf $RPM_BUILD_ROOT %files devel -%defattr(-,root,root,-) %doc LICENSE LICENSE.Tywith Changelog COPYRIGHT README.txt %if %opt %{_libdir}/ocaml/sexplib/*.a @@ -115,6 +102,10 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Sep 19 2013 Richard W.M. Jones - 7.0.5-7 +- OCaml 4.01.0 rebuild. +- Modernize the spec file. + * Sat Aug 03 2013 Fedora Release Engineering - 7.0.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild