Rebuild for OCaml 4.01.0.
- Enable debuginfo. - Modernize spec file.
This commit is contained in:
parent
354bd64737
commit
aa462f1b0f
|
@ -1,18 +1,15 @@
|
|||
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%global debug_package %{nil}
|
||||
|
||||
%define dlnode 822
|
||||
|
||||
Name: ocaml-bin-prot
|
||||
Version: 2.0.9
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Read and write OCaml values in a type-safe binary protocol
|
||||
|
||||
Group: Development/Libraries
|
||||
License: LGPLv2+ with exceptions
|
||||
|
||||
URL: http://forge.ocamlcore.org/projects/bin-prot
|
||||
Source0: http://forge.ocamlcore.org/frs/download.php/%{dlnode}/bin_prot-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: ocaml >= 3.12.0
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
|
@ -39,7 +36,6 @@ substantial increase in memory footprint when they are read back in.
|
|||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
|
||||
|
@ -72,22 +68,15 @@ 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
|
||||
|
||||
strip $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||
chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYRIGHT LICENSE LICENSE.Tywith
|
||||
%{_libdir}/ocaml/bin_prot
|
||||
%if %opt
|
||||
|
@ -100,7 +89,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changelog README.txt
|
||||
%if %opt
|
||||
%{_libdir}/ocaml/bin_prot/*.a
|
||||
|
@ -110,6 +98,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||
|
||||
|
||||
%changelog
|
||||
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 2.0.9-6
|
||||
- Rebuild for OCaml 4.01.0.
|
||||
- Enable debuginfo.
|
||||
- Modernize spec file.
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.9-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue