2013-01-17 15:14:32 +00:00
|
|
|
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
|
|
|
|
|
|
|
Name: ocaml-tplib
|
2013-02-19 21:41:53 +00:00
|
|
|
Version: 1.3
|
2014-09-19 21:16:15 +00:00
|
|
|
Release: 13%{?dist}
|
2013-01-17 15:14:32 +00:00
|
|
|
Summary: Tropical Polyhedra Library
|
|
|
|
|
|
|
|
License: LGPLv2+
|
|
|
|
URL: https://gforge.inria.fr/projects/tplib
|
2013-02-19 21:41:53 +00:00
|
|
|
Source0: https://gforge.inria.fr/frs/download.php/32084/tplib-%{version}.tar.gz
|
2013-01-17 15:14:32 +00:00
|
|
|
# Man pages written by Jerry James using text from the sources; i.e., I
|
|
|
|
# contributed only the formatting. Thus, the license and copyright for these
|
|
|
|
# files is the same as for the sources.
|
|
|
|
Source1: compute_ext_rays.1
|
|
|
|
Source2: compute_ext_rays_polar.1
|
|
|
|
Source3: compute_halfspaces.1
|
2013-02-19 21:41:53 +00:00
|
|
|
Source4: compute_minimal_external_representations.1
|
|
|
|
Source5: compute_tangent_hypergraph.1
|
|
|
|
Source6: compute_tropical_complex.1
|
2014-09-19 21:16:15 +00:00
|
|
|
# Upstream patch to adapt to new ocamlbuild behavior. See
|
|
|
|
# https://github.com/ocaml/opam-repository/blob/master/packages/tplib/tplib.1.3/files/fix-makefile.diff
|
|
|
|
Patch0: %{name}-ocamlbuild.patch
|
2013-01-17 15:14:32 +00:00
|
|
|
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-camlidl-devel
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-zarith-devel
|
|
|
|
|
|
|
|
# This is an internal symbol that winds up in Requires, but not Provides
|
|
|
|
%global __requires_exclude ocaml\\\(Numeric_plugin\\\)
|
|
|
|
|
|
|
|
# Don't advertise the numeric plugins
|
|
|
|
%global __provides_exclude plugin
|
|
|
|
|
|
|
|
%description
|
|
|
|
TPLib computes a description by means of vertices and rays of tropical
|
|
|
|
polyhedra defined by means of inequalities, and conversely.
|
|
|
|
|
|
|
|
It also provides a numerical abstract domain based on tropical
|
|
|
|
polyhedra, in order to infer min-/max- invariants over programs.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Library files and headers for developing with TPLib
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Library files and headers for developing applications that use TPLib.
|
|
|
|
|
|
|
|
%package tools
|
|
|
|
Summary: Tools that use TPLib
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools that use TPLib.
|
|
|
|
|
|
|
|
%prep
|
2013-02-19 21:41:53 +00:00
|
|
|
%setup -q -n tplib-%{version}
|
2014-09-19 21:16:15 +00:00
|
|
|
%patch0
|
2013-01-17 15:14:32 +00:00
|
|
|
|
2013-09-16 17:59:29 +00:00
|
|
|
# Enable debuginfo generation
|
|
|
|
sed -i 's/@OCAMLBUILD@/& -cflag -g -lflag -g/' Makefile.in
|
|
|
|
|
2013-01-17 15:14:32 +00:00
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
# Don't use %%{?_smp_mflags}; it leads to build failures
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR
|
|
|
|
mkdir -p %{buildroot}%{_includedir}
|
|
|
|
make install bindir=%{buildroot}%{_bindir} libdir=%{buildroot}%{_libdir} \
|
|
|
|
includedir=%{buildroot}%{_includedir}
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_mandir}/man1
|
2013-02-19 21:41:53 +00:00
|
|
|
cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} \
|
|
|
|
%{buildroot}%{_mandir}/man1
|
2013-01-17 15:14:32 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
_build/tests/test_tplib_double
|
|
|
|
_build/tests/test_tplib_rational
|
|
|
|
|
|
|
|
%files
|
2014-09-19 21:16:15 +00:00
|
|
|
%doc README
|
|
|
|
%license LICENSE
|
2013-01-17 15:14:32 +00:00
|
|
|
%{_libdir}/ocaml/tplib/
|
|
|
|
%exclude %{_libdir}/ocaml/tplib/*.a
|
|
|
|
%exclude %{_libdir}/ocaml/tplib/*.cmxa
|
|
|
|
%exclude %{_libdir}/ocaml/tplib/*.mli
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/tplib_*.h
|
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/ocaml/tplib/*.a
|
|
|
|
%{_libdir}/ocaml/tplib/*.cmxa
|
|
|
|
%{_libdir}/ocaml/tplib/*.mli
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%{_bindir}/*
|
|
|
|
%doc %{_mandir}/man1/*
|
|
|
|
|
|
|
|
%changelog
|
2014-09-19 21:16:15 +00:00
|
|
|
* Fri Sep 19 2014 Jerry James <loganjerry@gmail.com> - 1.3-13
|
|
|
|
- Add -ocamlbuild patch to fix build with ocaml 4.02.0
|
|
|
|
- Fix license handling
|
|
|
|
|
2014-08-24 13:55:44 +00:00
|
|
|
* Sun Aug 24 2014 Richard W.M. Jones <rjones@redhat.com> - 1.3-12
|
|
|
|
- Bump release and rebuild.
|
|
|
|
|
2014-08-23 23:24:50 +00:00
|
|
|
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 1.3-11
|
|
|
|
- ocaml-4.02.0+rc1 rebuild.
|
|
|
|
|
2014-08-17 13:09:55 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-08-02 18:05:31 +00:00
|
|
|
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 1.3-9
|
|
|
|
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
|
|
|
|
|
2014-07-25 11:19:31 +00:00
|
|
|
* Fri Jul 25 2014 Richard W.M. Jones <rjones@redhat.com> - 1.3-8
|
|
|
|
- OCaml 4.02.0 beta rebuild.
|
|
|
|
|
2014-06-07 15:51:31 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-04-18 20:12:49 +00:00
|
|
|
* Fri Apr 18 2014 Jerry James <loganjerry@gmail.com> - 1.3-6
|
|
|
|
- Remove ocaml_arches macro (bz 1087794)
|
|
|
|
- Drop unnecessary gmp-devel BR
|
|
|
|
|
2013-09-16 17:59:29 +00:00
|
|
|
* Mon Sep 16 2013 Jerry James <loganjerry@gmail.com> - 1.3-5
|
|
|
|
- Rebuild for OCaml 4.01.0
|
|
|
|
- Enable debuginfo
|
|
|
|
|
2013-08-03 15:04:21 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-21 16:31:11 +00:00
|
|
|
* Fri Jun 21 2013 Jerry James <loganjerry@gmail.com> - 1.3-3
|
|
|
|
- Rebuild for ocaml-zarith 1.2.1
|
|
|
|
|
2013-05-23 15:44:57 +00:00
|
|
|
* Thu May 23 2013 Jerry James <loganjerry@gmail.com> - 1.3-2
|
|
|
|
- Rebuild for ocaml-zarith 1.2
|
|
|
|
|
2013-02-19 21:41:53 +00:00
|
|
|
* Tue Feb 19 2013 Jerry James <loganjerry@gmail.com> - 1.3-1
|
|
|
|
- New upstream release
|
|
|
|
- Upstream dropped MLGMPIDL support in favor of MLGMP, which we don't ship
|
|
|
|
|
2013-02-14 09:04:42 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2013-01-17 15:14:32 +00:00
|
|
|
* Wed Jan 16 2013 Jerry James <loganjerry@gmail.com> - 1.2-2
|
|
|
|
- Add man pages
|
|
|
|
- Don't Provide the numeric plugins
|
|
|
|
- Make -devel also Provide -static
|
|
|
|
|
|
|
|
* Wed Oct 31 2012 Jerry James <loganjerry@gmail.com> - 1.2-1
|
|
|
|
- Initial RPM
|