From 657571f742a9d1e691d8b60dcc2f1e4dbaddd88c Mon Sep 17 00:00:00 2001 From: James Antill Date: Thu, 26 May 2022 12:09:10 -0400 Subject: [PATCH] Auto sync2gitlab import of ocaml-ocamlbuild-0.12.0-6.el8.src.rpm --- .gitignore | 1 + EMPTY | 1 - ocaml-ocamlbuild.spec | 182 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 .gitignore delete mode 100644 EMPTY create mode 100644 ocaml-ocamlbuild.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4de8496 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ocaml-ocamlbuild-0.12.0.tar.gz diff --git a/EMPTY b/EMPTY deleted file mode 100644 index 0519ecb..0000000 --- a/EMPTY +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/ocaml-ocamlbuild.spec b/ocaml-ocamlbuild.spec new file mode 100644 index 0000000..1f5f280 --- /dev/null +++ b/ocaml-ocamlbuild.spec @@ -0,0 +1,182 @@ +%ifnarch %{ocaml_native_compiler} +%global debug_package %{nil} +%endif + +Name: ocaml-ocamlbuild +Version: 0.12.0 +Release: 6%{?dist} + +Summary: Build tool for OCaml libraries and programs + +License: LGPLv2+ with exceptions + +URL: https://github.com/ocaml/ocamlbuild +Source0: https://github.com/ocaml/ocamlbuild/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: ocaml >= 4.04.0 + + +%description +OCamlbuild is a build tool for building OCaml libraries and programs. + + +%package devel +Summary: Development files for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + + +%description devel +This package contains development files for %{name}. + + +%package doc +Summary: Documentation for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} + + +%description doc +This package contains the manual for %{name}. + + +%prep +%setup -q -n ocamlbuild-%{version} + + +%build +make configure \ + OCAMLBUILD_PREFIX=%{_prefix} \ + OCAMLBUILD_BINDIR=%{_bindir} \ + OCAMLBUILD_LIBDIR=%{_libdir}/ocaml \ +%ifarch %{ocaml_native_compiler} + OCAML_NATIVE=true +%else + OCAML_NATIVE=false +%endif + +# Parallel builds fail. +make \ +%ifarch %{ocaml_native_compiler} + OCAMLC="ocamlc.opt -g" \ + OCAMLOPT="ocamlopt.opt -g" +%else + OCAMLC="ocamlc -g" \ + OCAMLOPT="ocamlopt -g" +%endif + + +%install +make install \ + DESTDIR=$RPM_BUILD_ROOT \ + CHECK_IF_PREINSTALLED=false + +# The install copies ocamlbuild & ocamlbuild.{byte or native}. +# Symlink them instead. +pushd $RPM_BUILD_ROOT/usr/bin +%ifarch %{ocaml_native_compiler} +ln -sf ocamlbuild.native ocamlbuild +%else +ln -sf ocamlbuild.byte ocamlbuild +%endif +popd + +# Install the man page, which for some reason is not copied +# in by the make install rule above. +mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/ +install -p -m 0644 man/ocamlbuild.1 $RPM_BUILD_ROOT%{_mandir}/man1/ + +# Remove the META file. It will be replaced by ocaml-ocamlfind (findlib). +rm $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild/META + + +%files +%doc Changes Readme.md VERSION +%license LICENSE +%{_bindir}/ocamlbuild +%{_bindir}/ocamlbuild.byte +%ifarch %{ocaml_native_compiler} +%{_bindir}/ocamlbuild.native +%endif +%{_mandir}/man1/ocamlbuild.1* +%{_libdir}/ocaml/ocamlbuild +%ifarch %{ocaml_native_compiler} +%exclude %{_libdir}/ocaml/ocamlbuild/*.a +%exclude %{_libdir}/ocaml/ocamlbuild/*.o +%exclude %{_libdir}/ocaml/ocamlbuild/*.cmx +%exclude %{_libdir}/ocaml/ocamlbuild/*.cmxa +%endif +%exclude %{_libdir}/ocaml/ocamlbuild/*.mli + + +%files devel +%license LICENSE +%ifarch %{ocaml_native_compiler} +%{_libdir}/ocaml/ocamlbuild/*.a +%{_libdir}/ocaml/ocamlbuild/*.o +%{_libdir}/ocaml/ocamlbuild/*.cmx +%{_libdir}/ocaml/ocamlbuild/*.cmxa +%endif +%{_libdir}/ocaml/ocamlbuild/*.mli + + +%files doc +%license LICENSE +%doc manual/* + + +%changelog +* Fri Jul 13 2018 Fedora Release Engineering - 0.12.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Jul 11 2018 Richard W.M. Jones - 0.12.0-5 +- OCaml 4.07.0 (final) rebuild. + +* Tue Jun 19 2018 Richard W.M. Jones - 0.12.0-4 +- OCaml 4.07.0-rc1 rebuild. + +* Thu Apr 26 2018 Richard W.M. Jones - 0.12.0-3 +- OCaml 4.07.0-beta2 rebuild. + +* Thu Feb 08 2018 Fedora Release Engineering - 0.12.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Dec 12 2017 Richard W.M. Jones - 0.12.0-1 +- New upstream version 0.12.0. + +* Tue Nov 07 2017 Richard W.M. Jones - 0.11.0-11 +- Bump release and rebuild. + +* Tue Nov 07 2017 Richard W.M. Jones - 0.11.0-10 +- OCaml 4.06.0 rebuild. + +* Mon Aug 07 2017 Richard W.M. Jones - 0.11.0-9 +- Bump and rebuild. + +* Mon Aug 07 2017 Richard W.M. Jones - 0.11.0-8 +- Bump and rebuild. + +* Mon Aug 07 2017 Richard W.M. Jones - 0.11.0-7 +- OCaml 4.05.0 rebuild. + +* Thu Aug 03 2017 Fedora Release Engineering - 0.11.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Mon Jul 31 2017 Richard W.M. Jones - 0.11.0-5 +- Enable debug symbols (-g). + +* Thu Jul 27 2017 Fedora Release Engineering - 0.11.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Jun 26 2017 Richard W.M. Jones - 0.11.0-3 +- OCaml 4.04.2 rebuild. + +* Thu May 11 2017 Richard W.M. Jones - 0.11.0-2 +- OCaml 4.04.1 rebuild. + +* Wed May 10 2017 Richard W.M. Jones - 0.11.0-1 +- New upstream version 0.11.0. + +* Sat Feb 11 2017 Fedora Release Engineering - 0.9.3-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Nov 04 2016 Richard W.M. Jones - 0.9.3-5 +- New package, ocamlbuild used to be part of ocaml. diff --git a/sources b/sources new file mode 100644 index 0000000..3b37fbf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ocaml-ocamlbuild-0.12.0.tar.gz) = 0755a8410a1e083d344e2389bbff06ae2ad5daaf9b186147fd0d2fa094bdc3a2e8e94e2a1e666a63276d10899274b905535300f47d50e747e86f17cf562abe08