The package rpms/ocaml-cmdliner.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-cmdliner.git/commit/?id=a56....
Change:
-%ifarch %{ocaml_native_compiler}
Thanks.
Full change:
============
commit a56d7836203c0d1cc5fb0e73499fd904322b4a2f
Author: Jerry James <loganjerry(a)gmail.com>
Date: Tue Sep 20 10:02:02 2022 -0600
Version 1.1.1
- Updated URLs
- Build with dune
- Use new OCaml macros
diff --git a/.gitignore b/.gitignore
index f8e06a9..57f0a03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
*.src.rpm
/ocaml-cmdliner-1.0.2.tar.gz
/ocaml-cmdliner-1.0.4.tar.gz
+/ocaml-cmdliner-1.1.1.tar.gz
diff --git a/ocaml-cmdliner.spec b/ocaml-cmdliner.spec
index eb69839..354659c 100644
--- a/ocaml-cmdliner.spec
+++ b/ocaml-cmdliner.spec
@@ -1,22 +1,16 @@
%undefine _package_note_flags
+
Name: ocaml-cmdliner
-Version: 1.0.4
-Release: 25%{?dist}
+Version: 1.1.1
+Release: 1%{?dist}
Summary: Declarative definition of command line interfaces for OCaml
-# In order for this to work as a "global" macro it has to come after the
-# definition of Name:, evidently.
-%global libname %(echo %{name} | sed -e 's/^ocaml-//')
-
License: ISC
-URL:
https://github.com/dbuenzli/cmdliner/
-Source0:
https://github.com/dbuenzli/%{libname}/archive/v%{version}/%{name}-%{vers...
+URL:
https://erratique.ch/software/cmdliner
+Source0:
https://github.com/dbuenzli/cmdliner/archive/v%{version}/%{name}-%{versio...
-BuildRequires: make
BuildRequires: ocaml
-BuildRequires: ocaml-findlib-devel
-BuildRequires: ocaml-ocamlbuild
-BuildRequires: ocaml-result-devel
+BuildRequires: ocaml-dune
%description
Cmdliner allows the declarative definition of command line
@@ -41,70 +35,32 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
-%autosetup -n %{libname}-%{version}
-
-# The makefile requires some cleanup to put things in correct place.
-sed 's,/lib/,/%{_lib}/,g' -i Makefile
-
-# Enable debuginfo generation.
-sed 's/, package(result)/, package(result), debug/g' -i _tags
-sed 's/ocamlbuild/ocamlbuild -lflag -g/g' -i Makefile
-
-# Use install -p.
-sed 's/INSTALL=install/INSTALL=install -p/g' -i Makefile
+%autosetup -n cmdliner-%{version}
%build
-make build-byte %{?_smp_mflags}
-%ifarch %{ocaml_native_compiler}
-make build-native %{?_smp_mflags}
-%endif
-
-%ifarch %{ocaml_natdynlink}
-make build-native-dynlink %{?_smp_mflags}
-%endif
+%dune_build
%install
-make install-common DESTDIR=%{buildroot}
-make install-byte DESTDIR=%{buildroot}
-%ifarch %{ocaml_native_compiler}
-make install-native DESTDIR=%{buildroot}
-%endif
-
-%ifarch %{ocaml_natdynlink}
-make install-native-dynlink DESTDIR=%{buildroot}
-%endif
-
-# Fix some spurious executable perms?
-chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.cmx
-chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.cmxa
-chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.mli
-chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.a
-chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/META
-chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/opam
-
-%files
+%dune_install
+
+%check
+%dune_check
+
+%files -f .ofiles
%license LICENSE.md
%doc README.md CHANGES.md
-%{_libdir}/ocaml/%{libname}
-%ifarch %{ocaml_native_compiler}
-%exclude %{_libdir}/ocaml/%{libname}/*.a
-%exclude %{_libdir}/ocaml/%{libname}/*.cmxa
-%exclude %{_libdir}/ocaml/%{libname}/*.cmx
-%endif
-%exclude %{_libdir}/ocaml/%{libname}/*.mli
-
-%files devel
+
+%files devel -f .ofiles-devel
%doc README.md CHANGES.md
%license LICENSE.md
-%ifarch %{ocaml_native_compiler}
-%{_libdir}/ocaml/%{libname}/*.a
-%{_libdir}/ocaml/%{libname}/*.cmxa
-%{_libdir}/ocaml/%{libname}/*.cmx
-%endif
-%{_libdir}/ocaml/%{libname}/*.mli
-
%changelog
+* Tue Sep 20 2022 Jerry James <loganjerry(a)gmail.com> - 1.1.1-1
+- Version 1.1.1
+- Updated URLs
+- Build with dune
+- Use new OCaml macros
+
* Fri Jul 22 2022 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.0.4-25
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
diff --git a/sources b/sources
index 2d27975..5569b07 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (ocaml-cmdliner-1.0.4.tar.gz) =
d8d2408fa2606295ec4cc1662f38a9ad675e009f948cac8e87354abf160b37e316969a24e3caf81b5a296eebbdc178f8a1655afcaf3840be71462b58337c359f
+SHA512 (ocaml-cmdliner-1.1.1.tar.gz) =
b25a1138d4fd566369e8e79488e08341e8ed0fdd4da8774cc54f7b1db041f077998d9dd6fdf4b324cebb8ce2477bf30ad91a25685f584c27f25743b16b446927