forked from pool/ocaml-cppo
- Update to 1.6.6
Fix build OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-cppo?expand=0&rev=45
This commit is contained in:
parent
46c226a1ef
commit
ed6004cabd
6
_service
6
_service
@ -1,9 +1,9 @@
|
|||||||
<services>
|
<services>
|
||||||
<service name="tar_scm" mode="disabled">
|
<service name="tar_scm" mode="disabled">
|
||||||
<param name="url">git://github.com/ocaml-community/cppo.git</param>
|
<param name="url">https://github.com/ocaml-community/cppo.git</param>
|
||||||
<param name="scm">git</param>
|
<param name="scm">git</param>
|
||||||
<param name="versionformat">1.6.5</param>
|
<param name="versionformat">1.6.6</param>
|
||||||
<param name="revision">v1.6.5</param>
|
<param name="revision">v1.6.6</param>
|
||||||
<param name="filename">ocaml-cppo</param>
|
<param name="filename">ocaml-cppo</param>
|
||||||
</service>
|
</service>
|
||||||
<service name="recompress" mode="disabled">
|
<service name="recompress" mode="disabled">
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:880b31a6439423010297ab7e5f020c286633466d20602583ce38064496f03cce
|
|
||||||
size 24400
|
|
3
ocaml-cppo-1.6.6.tar.xz
Normal file
3
ocaml-cppo-1.6.6.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:121a5f0922cb465e0d802c42cc143768d63c37c921fc7b4c1699b3e3619725fb
|
||||||
|
size 24848
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de
|
||||||
|
|
||||||
|
- Update to 1.6.6
|
||||||
|
Fix build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 19 03:21:22 UTC 2019 - andy@onthewings.net
|
Tue Feb 19 03:21:22 UTC 2019 - andy@onthewings.net
|
||||||
|
|
||||||
|
@ -18,12 +18,8 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
# cppo may use opam-installer but opam requires cppo for its build.
|
|
||||||
# So here we don't use opam-installer by default.
|
|
||||||
# Build with "--with-opam" to use opam despite the circular dependency.
|
|
||||||
%bcond_with opam
|
|
||||||
Name: ocaml-cppo
|
Name: ocaml-cppo
|
||||||
Version: 1.6.5
|
Version: 1.6.6
|
||||||
Release: 0
|
Release: 0
|
||||||
%{?ocaml_preserve_bytecode}
|
%{?ocaml_preserve_bytecode}
|
||||||
Summary: The C preprocessor written in OCaml
|
Summary: The C preprocessor written in OCaml
|
||||||
@ -39,9 +35,6 @@ BuildRequires: ocamlfind(easy-format)
|
|||||||
BuildRequires: ocamlfind(ocamlbuild)
|
BuildRequires: ocamlfind(ocamlbuild)
|
||||||
BuildRequires: ocamlfind(str)
|
BuildRequires: ocamlfind(str)
|
||||||
BuildRequires: ocamlfind(unix)
|
BuildRequires: ocamlfind(unix)
|
||||||
%if %{with opam}
|
|
||||||
BuildRequires: opam
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cppo is an equivalent of the C preprocessor targeted at the OCaml language and
|
Cppo is an equivalent of the C preprocessor targeted at the OCaml language and
|
||||||
@ -66,30 +59,22 @@ The %{name}-devel package contains libraries and signature files for
|
|||||||
developing applications that use %{name}.
|
developing applications that use %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
dune build @install --profile release
|
%ocaml_dune_setup
|
||||||
|
%ocaml_dune_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with opam}
|
%ocaml_dune_install
|
||||||
install -d %{buildroot}%{_libdir}/ocaml
|
|
||||||
dune install --prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir}/ocaml
|
%check
|
||||||
rm -r %{buildroot}%{_prefix}/doc
|
%ocaml_dune_test
|
||||||
%else
|
|
||||||
# By hand, not funny
|
|
||||||
cd _build/install/default
|
|
||||||
install -d %{buildroot}%{_libdir}/ocaml/cppo{,_ocamlbuild}
|
|
||||||
install -m0644 lib/cppo/* %{buildroot}%{_libdir}/ocaml/cppo/
|
|
||||||
install -m0644 lib/cppo_ocamlbuild/* %{buildroot}%{_libdir}/ocaml/cppo_ocamlbuild/
|
|
||||||
install -d %{buildroot}%{_bindir}
|
|
||||||
install -m0755 bin/cppo %{buildroot}%{_bindir}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_bindir}/cppo
|
%{_bindir}/cppo
|
||||||
%doc LICENSE.md README.md
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
%dir %{_libdir}/ocaml
|
%dir %{_libdir}/ocaml
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
%if 0%{?ocaml_native_compiler}
|
%if 0%{?ocaml_native_compiler}
|
||||||
@ -97,7 +82,6 @@ dune build @install --profile release
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%dir %{_libdir}/ocaml
|
%dir %{_libdir}/ocaml
|
||||||
%dir %{_libdir}/ocaml/*
|
%dir %{_libdir}/ocaml/*
|
||||||
%if 0%{?ocaml_native_compiler}
|
%if 0%{?ocaml_native_compiler}
|
||||||
|
Loading…
Reference in New Issue
Block a user