81e94ed
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
f1b270c
f1b270c
Name:           ocaml-gsl
86c3675
Version:        1.19.1
ac9dad4
Release:        2%{?dist}
f1b270c
Summary:        Interface to GSL (GNU scientific library) for OCaml
f1b270c
License:        GPLv2
81e94ed
7fafa09
# "Architectures with double-word alignment for doubles are not supported"
7fafa09
# Specifically you should look at this file:
7fafa09
# %{_libdir}/ocaml/caml/config.h
7fafa09
# and if it has '#define ARCH_ALIGN_DOUBLE' then it is not supported,
7fafa09
# but if it has '#undef ARCH_ALIGN_DOUBLE' then it is OK.
7fafa09
ExcludeArch:    armv7hl
7fafa09
7fafa09
URL:            https://github.com/mmottl/gsl-ocaml
88dad0c
Source0:        https://github.com/mmottl/gsl-ocaml/releases/download/v%{version}/gsl-ocaml-%{version}.tar.gz
a914e42
f1b270c
f1b270c
BuildRequires:  ocaml >= 3.07
75c8e1b
BuildRequires:  ocaml-ocamlbuild
f1b270c
BuildRequires:  ocaml-findlib-devel
97b723c
BuildRequires:  ocaml-ocamldoc
ae3097a
BuildRequires:  ocaml-camlp4-devel
f1b270c
BuildRequires:  gsl-devel >= 1.9
f1b270c
BuildRequires:  /usr/bin/awk
995dbb5
BuildRequires:  atlas-devel
f1b270c
f1b270c
f1b270c
%description
f1b270c
This is an interface to GSL (GNU scientific library), for the
f1b270c
Objective Caml language.
f1b270c
f1b270c
f1b270c
%package        devel
f1b270c
Summary:        Development files for %{name}
f1b270c
Requires:       %{name} = %{version}-%{release}
f1b270c
Requires:       /sbin/install-info
f1b270c
f1b270c
f1b270c
%description    devel
f1b270c
The %{name}-devel package contains libraries and signature files for
f1b270c
developing applications that use %{name}.
f1b270c
f1b270c
f1b270c
%prep
81e94ed
%setup -q -n gsl-ocaml-%{version}
f1b270c
f1b270c
f1b270c
%build
995dbb5
export GSL_CBLAS_LIB="-lgsl -L%{_libdir}/atlas -lsatlas"
f1b270c
make
f1b270c
f1b270c
f1b270c
%install
f1b270c
export DESTDIR=$RPM_BUILD_ROOT
f1b270c
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
f1b270c
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
81e94ed
make install
f1b270c
f1b270c
f1b270c
%files
81e94ed
%doc COPYING.txt
f1b270c
%{_libdir}/ocaml/gsl
f1b270c
%if %opt
f1b270c
%exclude %{_libdir}/ocaml/gsl/*.a
81e94ed
%exclude %{_libdir}/ocaml/gsl/*.cmxs
f1b270c
%exclude %{_libdir}/ocaml/gsl/*.cmxa
f1b270c
%endif
f1b270c
%exclude %{_libdir}/ocaml/gsl/*.mli
f1b270c
%{_libdir}/ocaml/stublibs/*.so
f1b270c
%{_libdir}/ocaml/stublibs/*.so.owner
f1b270c
f1b270c
f1b270c
%files devel
81e94ed
%doc COPYING.txt AUTHORS.txt CHANGES.txt README.md NOTES.md
f1b270c
%if %opt
f1b270c
%{_libdir}/ocaml/gsl/*.a
81e94ed
%{_libdir}/ocaml/gsl/*.cmxs
f1b270c
%{_libdir}/ocaml/gsl/*.cmxa
f1b270c
%endif
f1b270c
%{_libdir}/ocaml/gsl/*.mli
f1b270c
f1b270c
f1b270c
%changelog
ac9dad4
* Wed Nov 09 2016 Dan HorĂ¡k <dan@danny.cz> - 1.19.1-2
ac9dad4
- rebuild for s390x codegen bug
ac9dad4
86c3675
* Mon Nov 07 2016 Richard W.M. Jones <rjones@redhat.com> - 1.19.1-1
86c3675
- New upstream version 1.19.1.
75c8e1b
- Add explicit dependency on ocamlbuild.
86c3675
Orion Poplawski b914a60
* Mon Feb 22 2016 Orion Poplawski <orion@cora.nwra.com> - 1.19.0-3
Orion Poplawski b914a60
- Rebuild for gsl 2.1
Orion Poplawski b914a60
e6b4f9f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.19.0-2
e6b4f9f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e6b4f9f
Orion Poplawski 9f0e7b2
* Tue Nov 17 2015 Orion Poplawski <orion@cora.nwra.com> - 1.19.0-1
Orion Poplawski 9f0e7b2
- Update to 1.19.0 for gsl 2
Orion Poplawski 9f0e7b2
7fafa09
* Wed Jul 29 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.4-1
7fafa09
- New upstream version 1.18.4.
7fafa09
- Exclude armv7hl because it uses double-word alignment for doubles.
7fafa09
e2aad71
* Tue Jul 28 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.2-7
e2aad71
- OCaml 4.02.3 rebuild.
e2aad71
a52dedb
* Mon Jul 27 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.2-6
a52dedb
- Remove ExcludeArch since bytecode build should now work.
a52dedb
f58d9ec
* Wed Jun 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.2-5
f58d9ec
- ocaml-4.02.2 final rebuild.
f58d9ec
c09e334
* Thu Jun 18 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.2-4
c09e334
- ocaml-4.02.2 rebuild.
c09e334
2ca2436
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.18.2-3
2ca2436
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2ca2436
995dbb5
* Tue Feb 24 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.2-2
995dbb5
- Link against ATLAS for improved performance.
995dbb5
  https://lists.fedoraproject.org/pipermail/devel/2015-February/thread.html#208146
995dbb5
c206eaf
* Sun Feb 22 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.2-1
c206eaf
- New upstream version 1.18.2.
c206eaf
- Remove the patch, now upstream.
c206eaf
379adb5
* Tue Feb 17 2015 Richard W.M. Jones <rjones@redhat.com> - 1.18.1-1
379adb5
- New upstream version 1.18.1.
379adb5
- Include a fix for use of uint32, sent upstream.
5887e15
- ocaml-4.02.1 rebuild.
5887e15
62f2d26
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 1.17.2-7
62f2d26
- Bump release and rebuild.
62f2d26
d875db7
* Sun Aug 31 2014 Richard W.M. Jones <rjones@redhat.com> - 1.17.2-6
d875db7
- ocaml-4.02.0 final rebuild.
d875db7
30f7213
* Sat Aug 23 2014 Richard W.M. Jones <rjones@redhat.com> - 1.17.2-5
30f7213
- ocaml-4.02.0+rc1 rebuild.
30f7213
a190b2a
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.17.2-4
a190b2a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a190b2a
ee11e00
* Sat Aug 02 2014 Richard W.M. Jones <rjones@redhat.com> - 1.17.2-3
ee11e00
- ocaml-4.02.0-0.8.git10e45753.fc22 rebuild.
ee11e00
a2f9ec2
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.17.2-2
a2f9ec2
- Bump release and rebuild.
a2f9ec2
88dad0c
* Mon Jul 21 2014 Richard W.M. Jones <rjones@redhat.com> - 1.17.2-1
88dad0c
- New upstream version 1.17.2.
88dad0c
- OCaml 4.02.0 beta rebuild.
88dad0c
e7a02cb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13.0-2
e7a02cb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e7a02cb
81e94ed
* Sat Sep 14 2013 Richard W.M. Jones <rjones@redhat.com> - 1.13.0-1
81e94ed
- New upstream version 1.13.0.
81e94ed
- Switched to Markus Mottl semi-official upstream version which is
81e94ed
  much livelier than the official upstream.
81e94ed
- Rebuild for OCaml 4.01.0.
81e94ed
- Enable debuginfo.
81e94ed
- Info files disappeared from upstream source, probably for the better.
97b723c
- Missing BR ocamldoc.
ae3097a
- Missing BR ocaml-camlp4-devel.
81e94ed
a914e42
* Sun Aug  4 2013 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-19
a914e42
- Exclude armv7hl (not supported by upstream C code).
a914e42
- Modernize the spec file.
a914e42
b187a6c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-18
b187a6c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
b187a6c
269917e
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-17
269917e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
269917e
d38150e
* Sun Dec 02 2012 Bruno Wolff III <bruno@wolff.to> - 0.6.0-16
d38150e
- Rebuild for ocaml 4.0.1.
d38150e
01ebd89
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-15
01ebd89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
01ebd89
5f04146
* Sun Jun 10 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-14
5f04146
- Rebuild for OCaml 4.00.0.
5f04146
bf06c11
* Sat Jan 07 2012 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-13
bf06c11
- Rebuild for OCaml 3.12.1.
bf06c11
7e4a3a3
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-12
7e4a3a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7e4a3a3
006882a
* Thu Jan 06 2011 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-11
006882a
- Rebuild for OCaml 3.12 (http://fedoraproject.org/wiki/Features/OCaml3.12).
006882a
cb345ae
* Wed Dec 30 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-10
cb345ae
- Rebuild for OCaml 3.11.2.
cb345ae
f0142e0
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-9
f0142e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f0142e0
d1405c2
* Sat May 23 2009 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-8
d1405c2
- Rebuild for OCaml 3.11.1
d1405c2
a20d072
* Thu Apr 16 2009 S390x secondary arch maintainer <fedora-s390x@lists.fedoraproject.org>
a20d072
- ExcludeArch sparc64, s390, s390x as we don't have OCaml on those archs
a20d072
  (added sparc64 per request from the sparc maintainer)
a20d072
eb05a5c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.0-7
eb05a5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
eb05a5c
407405a
* Fri Dec  5 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-6
407405a
- Force rebuild.
407405a
5e726ad
* Thu Dec  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-5
5e726ad
- Rebuild.
5e726ad
c50dbae
* Wed Nov 19 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-4
c50dbae
- Rebuild for OCaml 3.11.0
c50dbae
f1b270c
* Fri Apr 25 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-3
f1b270c
- Fixed typo in description.
f1b270c
- Mixed use of buildroot macro / RPM_BUILD_ROOT variable fixed.
f1b270c
- Remove BR gsl (brought in by gsl-devel, so unnecessary).
f1b270c
f1b270c
* Tue Mar  4 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-2
f1b270c
- Rebuild for ppc64.
f1b270c
f1b270c
* Wed Feb 20 2008 Richard W.M. Jones <rjones@redhat.com> - 0.6.0-1
f1b270c
- Initial RPM release.