The package rpms/ocaml-ppx-derivers.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-ppx-derivers.git/commit/?id....
Change:
+%ifarch %{ocaml_native_compiler}
Thanks.
Full change:
============
commit 3256557e6d5379e3fa5382c521e4bb6e57117c7a
Author: Andy Li <andy(a)onthewings.net>
Date: Sat Jun 8 18:03:30 2019 +0800
initial import
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..8aa3618
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/ocaml-ppx-derivers-1.2.1.tar.gz
diff --git a/ocaml-ppx-derivers.spec b/ocaml-ppx-derivers.spec
new file mode 100644
index 0000000..1274c51
--- /dev/null
+++ b/ocaml-ppx-derivers.spec
@@ -0,0 +1,81 @@
+Name: ocaml-ppx-derivers
+Version: 1.2.1
+Release: 1%{?dist}
+Summary: Deriving plugin registry
+
+License: BSD
+URL:
https://github.com/ocaml-ppx/ppx_derivers
+Source0:
https://github.com/ocaml-ppx/ppx_derivers/archive/%{version}/%{name}-%{ve...
+
+BuildRequires: ocaml
+BuildRequires: ocaml-findlib
+BuildRequires: ocaml-dune
+BuildRequires: opam-installer
+
+%description
+Ppx_derivers is a tiny package whose sole purpose is to allow
+ppx_deriving and ppx_type_conv to inter-operate gracefully when
+linked as part of the same ocaml-migrate-parsetree driver.
+
+
+%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
+%setup -q -n ppx_derivers-%{version}
+
+
+%build
+dune build @install
+
+
+%install
+mkdir -p %{buildroot}%{_libdir}/ocaml
+dune install --destdir=%{buildroot} --verbose
+
+# These files will be installed using the doc and license directives
+rm -r %{buildroot}%{_prefix}/doc
+
+# Makes *.cmxs executable such that they will be stripped.
+find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;
+
+%check
+dune runtest
+
+
+%files
+%doc README.md CHANGES.md
+%license LICENSE.md
+%{_libdir}/ocaml/*
+%ifarch %{ocaml_native_compiler}
+%exclude %{_libdir}/ocaml/*/*.a
+%exclude %{_libdir}/ocaml/*/*.cmxa
+%exclude %{_libdir}/ocaml/*/*.cmx
+%endif
+%exclude %{_libdir}/ocaml/*/*.mli
+%exclude %{_libdir}/ocaml/*/*.ml
+
+
+%files devel
+%doc README.md CHANGES.md
+%license LICENSE.md
+%ifarch %{ocaml_native_compiler}
+%{_libdir}/ocaml/*/*.a
+%{_libdir}/ocaml/*/*.cmxa
+%{_libdir}/ocaml/*/*.cmx
+%endif
+%{_libdir}/ocaml/*/*.mli
+%{_libdir}/ocaml/*/*.ml
+
+
+%changelog
+* Thu May 16 2019 Andy Li <andy(a)onthewings.net> - 1.2.1-1
+- Initial RPM release.
+
diff --git a/sources b/sources
new file mode 100644
index 0000000..e4a84de
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (ocaml-ppx-derivers-1.2.1.tar.gz) =
ef0796fe2592e653d34ba01d206d4b507429882a2aaadcb89c7f807c33a417f2871b0c94ade5c92aefd9487daa582e19d88ad5a5eaa631e8162ae12f4a0756c6