The package rpms/ocaml-csv.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/ocaml-csv.git/commit/?id=f96775d8....
Change:
+%ifarch %{ocaml_native_compiler}
Thanks.
Full change:
============
commit f96775d889e20d6a209814487a12d020cfa5f29d
Author: Richard W.M. Jones <rjones(a)redhat.com>
Date: Wed Nov 8 17:31:46 2017 +0000
New upstream version 1.7.
diff --git a/ocaml-csv.spec b/ocaml-csv.spec
index ba38478..07540a3 100644
--- a/ocaml-csv.spec
+++ b/ocaml-csv.spec
@@ -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(a)redhat.com> - 1.3.1-26
-- Bump release and rebuild.
-
-* Wed Nov 08 2017 Richard W.M. Jones <rjones(a)redhat.com> - 1.3.1-25
-- Bump release and rebuild.
+* Wed Nov 08 2017 Richard W.M. Jones <rjones(a)redhat.com> - 1.7-1
+- New upstream version 1.7.
* Wed Nov 08 2017 Richard W.M. Jones <rjones(a)redhat.com> - 1.3.1-24
- OCaml 4.06.0 rebuild.
diff --git a/sources b/sources
index d65436a..713e92c 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-762593f6216564274962c5f360b406c7 csv-1.3.1.tar.gz
+SHA512 (csv-1.7.tar.gz) =
b9c2ee53e54908b0ba38e02a03c781a5d85521860cad451794cd98331148478816b39aee166f42974e3f6ceaf5fb6b3dfabb7b9225f9fc7c40fa3774117793c8