New upstream version 1.7.

This commit is contained in:
Richard W.M. Jones 2017-11-08 17:31:46 +00:00
parent cc7a1837bf
commit f96775d889
2 changed files with 13 additions and 25 deletions

View File

@ -1,16 +1,11 @@
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%if ! %opt
%global debug_package %{nil}
%endif
Name: ocaml-csv
Version: 1.3.1
Release: 26%{?dist}
Version: 1.7
Release: 1%{?dist}
Summary: OCaml library for reading and writing CSV files
License: LGPLv2+
URL: https://forge.ocamlcore.org/projects/csv/
Source0: https://forge.ocamlcore.org/frs/download.php/1235/csv-%{version}.tar.gz
URL: https://github.com/Chris00/ocaml-csv/
Source0: https://github.com/Chris00/ocaml-csv/files/1394287/csv-1.7.tar.gz
BuildRequires: ocaml >= 4.00.1
BuildRequires: ocaml-ocamlbuild
@ -44,8 +39,8 @@ developing applications that use %{name}.
%build
ocaml setup.ml -configure --prefix %{_prefix} --destdir $RPM_BUILD_ROOT
make
ocaml setup.ml -configure --prefix %{_prefix} --destdir $RPM_BUILD_ROOT --disable-tests
ocaml setup.ml -build
%install
@ -53,22 +48,18 @@ export DESTDIR=$RPM_BUILD_ROOT
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
make install
ocaml setup.ml -install
%if %opt
%ifarch %{ocaml_native_compiler}
mkdir -p $DESTDIR%{_bindir}
install -m 0755 csvtool.native $DESTDIR%{_bindir}/csvtool
%endif
%check
make test
%files
%doc LICENSE.txt
%{_libdir}/ocaml/csv
%if %opt
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/csv/*.a
%exclude %{_libdir}/ocaml/csv/*.cmxa
%exclude %{_libdir}/ocaml/csv/*.cmx
@ -79,7 +70,7 @@ make test
%files devel
%doc AUTHORS.txt LICENSE.txt README.txt
%if %opt
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/csv/*.a
%{_libdir}/ocaml/csv/*.cmxa
%{_libdir}/ocaml/csv/*.cmx
@ -88,11 +79,8 @@ make test
%changelog
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-26
- Bump release and rebuild.
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-25
- Bump release and rebuild.
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.7-1
- New upstream version 1.7.
* Wed Nov 08 2017 Richard W.M. Jones <rjones@redhat.com> - 1.3.1-24
- OCaml 4.06.0 rebuild.

View File

@ -1 +1 @@
762593f6216564274962c5f360b406c7 csv-1.3.1.tar.gz
SHA512 (csv-1.7.tar.gz) = b9c2ee53e54908b0ba38e02a03c781a5d85521860cad451794cd98331148478816b39aee166f42974e3f6ceaf5fb6b3dfabb7b9225f9fc7c40fa3774117793c8