ocaml-num/ocaml-num.spec

161 lines
4.6 KiB
RPMSpec
Raw Permalink Normal View History

2017-11-08 12:40:42 +00:00
Name: ocaml-num
Version: 1.1
2020-04-21 15:48:43 +00:00
Release: 24%{?dist}
2017-11-08 12:40:42 +00:00
Summary: Legacy Num library for arbitrary-precision integer and rational arithmetic
License: LGPLv2+ with exceptions
URL: https://github.com/ocaml/num
Source0: https://github.com/ocaml/num/archive/v%{version}/%{name}-%{version}.tar.gz
# Downstream patch to make DESTDIR installs work.
Patch1: 0001-install-Use-DESTDIR.patch
# Downstream patches to add -g flag.
Patch2: 0002-toplevel-Add-g-flag.patch
Patch3: 0003-src-Add-g-flag-to-mklib.patch
2017-11-08 12:40:42 +00:00
BuildRequires: ocaml
BuildRequires: ocaml-findlib-devel
%description
This library implements arbitrary-precision arithmetic on big integers
and on rationals.
This is a legacy library. It used to be part of the core OCaml
distribution (in otherlibs/num) but is now distributed separately. New
applications that need arbitrary-precision arithmetic should use the
Zarith library (https://github.com/ocaml/Zarith) instead of the Num
library, and older applications that already use Num are encouraged to
switch to Zarith. Zarith delivers much better performance than Num and
has a nicer API.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
%setup -q -n num-%{version}
%autopatch -p1
2017-11-08 12:40:42 +00:00
%build
make %{?_smp_mflags} all
%check
make -j1 test
%install
export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
mkdir -p $OCAMLFIND_DESTDIR/stublibs
2017-11-08 12:40:42 +00:00
make install
find $OCAMLFIND_DESTDIR -name '*.cmti' -delete
2017-11-08 12:40:42 +00:00
%files
%doc Changelog README.md
%license LICENSE
%{_libdir}/ocaml/*.cmi
%{_libdir}/ocaml/*.cma
%{_libdir}/ocaml/*.cmxs
%{_libdir}/ocaml/num
%{_libdir}/ocaml/num-top
%{_libdir}/ocaml/stublibs/dll*.so
2017-11-08 12:40:42 +00:00
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/*.a
%exclude %{_libdir}/ocaml/*.cmxa
%exclude %{_libdir}/ocaml/*.cmx
2017-11-08 12:40:42 +00:00
%endif
%exclude %{_libdir}/ocaml/*.mli
2017-11-08 12:40:42 +00:00
%files devel
%license LICENSE
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/*.a
%{_libdir}/ocaml/*.cmxa
%{_libdir}/ocaml/*.cmx
2017-11-08 12:40:42 +00:00
%endif
%{_libdir}/ocaml/*.mli
2017-11-08 12:40:42 +00:00
%changelog
2020-04-21 15:48:43 +00:00
* Tue Apr 21 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1-24
- OCaml 4.11.0 pre-release attempt 2
2020-04-17 20:22:45 +00:00
* Fri Apr 17 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1-23
- OCaml 4.11.0 pre-release
* Thu Apr 02 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1-22
- Update all OCaml dependencies for RPM 4.16.
2020-02-26 10:56:21 +00:00
* Wed Feb 26 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1-21
- OCaml 4.10.0 final.
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-19 11:51:05 +00:00
* Sun Jan 19 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1-19
- OCaml 4.10.0+beta1 rebuild.
2020-01-10 14:16:42 +00:00
* Fri Jan 10 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1-18
- Bump release and rebuild.
2020-01-09 17:09:54 +00:00
* Thu Jan 09 2020 Richard W.M. Jones <rjones@redhat.com> - 1.1-17
- OCaml 4.09.0 for riscv64
2019-12-05 21:44:16 +00:00
* Thu Dec 05 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1-16
- OCaml 4.09.0 (final) rebuild.
2019-08-16 10:33:14 +00:00
* Fri Aug 16 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1-15
- OCaml 4.08.1 (final) rebuild.
2019-07-31 10:27:05 +00:00
* Wed Jul 31 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1-14
- OCaml 4.08.1 (rc2) rebuild.
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2019-06-27 15:16:13 +00:00
* Thu Jun 27 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1-12
- OCaml 4.08.0 (final) rebuild.
2019-04-29 16:59:30 +00:00
* Mon Apr 29 2019 Richard W.M. Jones <rjones@redhat.com> - 1.1-11
- OCaml 4.08.0 (beta 3) rebuild.
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2018-07-11 11:41:35 +00:00
* Wed Jul 11 2018 Richard W.M. Jones <rjones@redhat.com> - 1.1-8
- OCaml 4.07.0 (final) rebuild.
2018-06-19 20:24:04 +00:00
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 1.1-7
- Bump release and rebuild.
2018-06-19 19:23:56 +00:00
* Tue Jun 19 2018 Richard W.M. Jones <rjones@redhat.com> - 1.1-6
- OCaml 4.07.0-rc1 rebuild.
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2017-11-08 22:34:48 +00:00
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.1-4
- OCaml 4.06.0 rebuild.
* Wed Nov 8 2017 Richard W.M. Jones <rjones@redhat.com> - 1.1-3
2017-11-08 12:40:42 +00:00
- Initial RPM version.
- Fix Source0 to use nice package name.
- Fix DESTDIR installs again.