ocaml-ocplib-simplex/ocaml-ocplib-simplex.spec

136 lines
4.1 KiB
RPMSpec
Raw Normal View History

2019-06-06 00:52:50 +00:00
%ifnarch %{ocaml_native_compiler}
2016-11-29 15:09:48 +00:00
%global debug_package %{nil}
%endif
%global pkgname ocplib-simplex
Name: ocaml-%{pkgname}
2019-06-06 00:52:50 +00:00
Version: 0.4
2019-06-27 20:02:07 +00:00
Release: 2%{?dist}
2016-11-29 15:09:48 +00:00
Summary: Simplex algorithm for solving systems of linear inequalities
# The same exception to clause 6 as provided by ocaml applies to this package.
License: LGPLv2 with exceptions
URL: https://github.com/OCamlPro-Iguernlala/ocplib-simplex
2019-06-06 00:52:50 +00:00
Source0: https://github.com/OCamlPro-Iguernlala/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
# Upstream patch to fix the tests
Patch0: %{name}-tests.patch
# Upstream patch to fix DESTDIR
Patch1: %{name}-destdir.patch
2016-11-29 15:09:48 +00:00
BuildRequires: autoconf
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-num-devel
2016-11-29 15:09:48 +00:00
%description
This package contains a library implementing a simplex algorithm, in a
functional style, for solving systems of linear inequalities and
optimizing linear objective functions.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.
%prep
2019-06-06 00:52:50 +00:00
%autosetup -p0 -n %{pkgname}-%{version}
2016-11-29 15:09:48 +00:00
autoconf
2019-06-06 00:52:50 +00:00
# Upstream's attempt to set OCAMLFIND_DESTDIR interferes with ours
sed -i '/OCAMLFIND_DESTDIR/d' Makefile.in
2016-11-29 15:09:48 +00:00
%build
%configure
2019-06-06 00:52:50 +00:00
%ifarch %{ocaml_native_compiler}
2016-11-29 15:09:48 +00:00
make %{?_smp_mflags} opt
%else
make %{?_smp_mflags} byte
%endif
%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
make install
%check
make local-tests
%files
%doc README.md
%license LICENSE
%{_libdir}/ocaml/%{pkgname}/
2019-06-06 00:52:50 +00:00
%ifarch %{ocaml_native_compiler}
2016-11-29 15:09:48 +00:00
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
%endif
%exclude %{_libdir}/ocaml/*/*.mli
%files devel
%doc extra/simplex_invariants.txt
2019-06-06 00:52:50 +00:00
%ifarch %{ocaml_native_compiler}
2016-11-29 15:09:48 +00:00
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmx
%endif
%{_libdir}/ocaml/*/*.mli
%changelog
2019-06-27 20:02:07 +00:00
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 0.4-2
- OCaml 4.08.0 (final) rebuild.
2019-06-06 00:52:50 +00:00
* Wed Jun 5 2019 Jerry James <loganjerry@gmail.com> - 0.4-1
- New upstream version
2019-04-29 19:08:09 +00:00
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 0.3-15
- OCaml 4.08.0 (beta 3) rebuild.
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-07-11 15:51:50 +00:00
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 0.3-12
- OCaml 4.07.0 (final) rebuild.
2018-06-20 09:26:51 +00:00
* Wed Jun 20 2018 Richard W.M. Jones <rjones@redhat.com> - 0.3-11
- OCaml 4.07.0-rc1 rebuild.
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-11-08 18:29:46 +00:00
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 0.3-9
- OCaml 4.06.0 rebuild.
2017-08-07 22:49:05 +00:00
* Mon Aug 07 2017 Richard W.M. Jones <rjones@redhat.com> - 0.3-8
- OCaml 4.05.0 rebuild.
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-06-26 20:20:10 +00:00
* Mon Jun 26 2017 Richard W.M. Jones <rjones@redhat.com> - 0.3-5
- OCaml 4.04.2 rebuild.
2017-05-12 21:05:34 +00:00
* Fri May 12 2017 Richard W.M. Jones <rjones@redhat.com> - 0.3-4
- OCaml 4.04.1 rebuild.
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2016-11-29 15:09:48 +00:00
* Mon Nov 28 2016 Jerry James <loganjerry@gmail.com> - 0.3-2
- Use the _isa macro in the -devel dependency on the main package
- Let the install step create META implicitly
- Use a more verbose Source0 URL
* Mon Nov 28 2016 Jerry James <loganjerry@gmail.com> - 0.3-1
- Initial RPM