- update version 20200211, with _service file

- Require dune 2.0+

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-menhir?expand=0&rev=17
This commit is contained in:
Olaf Hering 2020-02-29 21:49:07 +00:00 committed by Git OBS Bridge
parent 60dbc0e0d4
commit caec037376
5 changed files with 49 additions and 59 deletions

17
_service Normal file
View File

@ -0,0 +1,17 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="filename">ocaml-menhir</param>
<param name="revision">ad9297c0a505e878fb60b77f3b83a9caa1e42548</param>
<param name="scm">git</param>
<param name="submodules">disable</param>
<param name="url">https://gitlab.inria.fr/fpottier/menhir.git</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="set_version" mode="disabled"/>
</services>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca482d690052343d6cb9452433248a0a92cc8bfc8fa529dc313220c9d7c0d000
size 855262

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bf3f1801778eae2cd95702589e4dead67054a8ff5de9f2d43ae28da2cf3aa25d
size 1832544

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Feb 29 20:20:20 UTC 2020 - ohering@suse.de
- update version 20200211, with _service file
- Require dune 2.0+
-------------------------------------------------------------------
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de

View File

@ -12,25 +12,24 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: ocaml-menhir
Version: 20170712
Version: 20200211
Release: 0
%{?ocaml_preserve_bytecode}
Summary: LR(1) parser generator for the OCaml programming language
License: LGPL-2.0
Group: Development/Languages/OCaml
Url: http://gallium.inria.fr/~fpottier/menhir/
Source: http://gallium.inria.fr/~fpottier/menhir/menhir-%{version}.tar.gz
Url: https://opam.ocaml.org/packages/menhir
Source: %{name}-%{version}.tar.xz
BuildRequires: time
BuildRequires: ocaml
BuildRequires: ocaml-findlib
BuildRequires: ocaml-ocamlbuild
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros >= 4.02.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ocaml-dune >= 2.0
BuildRequires: ocaml-rpm-macros >= 20200220
BuildRequires: ocamlfind(unix)
%description
LR(1) parser generator
@ -45,61 +44,29 @@ The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.
%prep
%setup -q -n menhir-%{version}
%autosetup -p1
%build
o=
make \
%if 0%{?ocaml_native_compiler}
TARGET=native \
%else
TARGET=byte \
%endif
PREFIX=${o}%{_prefix} \
%{?_smp_mflags} \
-j 1
dune_release_pkgs='menhir,menhirLib,menhirSdk'
%ocaml_dune_setup
%ocaml_dune_build
%install
o=%{buildroot}
OCAMLFIND_DESTDIR=%{buildroot}`ocamlc -where`
mkdir -vp ${OCAMLFIND_DESTDIR}
make \
install \
%if 0%{?ocaml_native_compiler}
TARGET=native \
%ocaml_dune_install
%ocaml_create_file_list
%check
%ifarch x86_64
%else
TARGET=byte \
dune_test_tolerate_fail='dune_test_tolerate_fail bitsize'
%endif
PREFIX=${o}%{_prefix} \
OCAMLFIND_DESTDIR=${OCAMLFIND_DESTDIR} \
%{?_smp_mflags} \
-j 1
rm -rfv %{buildroot}/usr/share/doc
%ocaml_dune_test
%files
%defattr(-,root,root)
%doc CHANGES.md LICENSE manual.pdf
%files -f %{name}.files
%doc CHANGES.md
%{_bindir}/*
%{_datadir}/menhir
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%{_libdir}/ocaml/*/META
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.o
%endif
%{_libdir}/ocaml/*/*.cmi
%{_libdir}/ocaml/*/*.cmo
%files devel
%defattr(-,root,root,-)
%doc LICENSE
%{_mandir}/*/*
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmx
%endif
%{_libdir}/ocaml/*/*.mli
%{_libdir}/ocaml/*/*.ml
%files devel -f %{name}.files.devel
%changelog