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