- Update to version 7.4.1
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pcre?expand=0&rev=47
This commit is contained in:
parent
01750ab287
commit
b5d49e77f7
14
_service
Normal file
14
_service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="url">git://github.com/mmottl/pcre-ocaml.git</param>
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="versionformat">7.4.1</param>
|
||||||
|
<param name="revision">7.4.1</param>
|
||||||
|
<param name="filename">ocaml-pcre</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>
|
3
ocaml-pcre-7.4.1.tar.xz
Normal file
3
ocaml-pcre-7.4.1.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4b7249eaa98e501a4bbb9863db670f17ba8ee2846cd0d64bbc10c988a5981889
|
||||||
|
size 39860
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Oct 9 05:48:16 UTC 2019 - ohering@suse.de
|
||||||
|
|
||||||
|
- Update to version 7.4.1
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de
|
Tue Jul 25 13:04:54 UTC 2017 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -18,32 +18,25 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: ocaml-pcre
|
Name: ocaml-pcre
|
||||||
Version: 7.2.3
|
Version: 7.4.1
|
||||||
Release: 0
|
Release: 0
|
||||||
%{?ocaml_preserve_bytecode}
|
%{?ocaml_preserve_bytecode}
|
||||||
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
||||||
License: LGPL-2.0
|
License: LGPL-2.0
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
|
|
||||||
Url: http://mmottl.github.io/pcre-ocaml/
|
Url: http://mmottl.github.io/pcre-ocaml/
|
||||||
# https://github.com/mmottl/pcre-ocaml/releases/download/v%{version}/pcre-ocaml-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source0: pcre-ocaml-%{version}.tar.xz
|
BuildRequires: ocaml
|
||||||
Patch0: ocaml-pcre-warnings.patch
|
BuildRequires: ocaml-dune
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRequires: ocaml-rpm-macros >= 20191009
|
||||||
|
BuildRequires: ocamlfind(base)
|
||||||
BuildRequires: gawk
|
BuildRequires: ocamlfind(dune.configurator)
|
||||||
BuildRequires: ocaml >= 3.10.2
|
|
||||||
BuildRequires: ocaml-oasis
|
|
||||||
BuildRequires: ocaml-ocamldoc
|
|
||||||
BuildRequires: ocaml-rpm-macros >= 4.03
|
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
BuildRequires: ocamlfind(bytes)
|
|
||||||
BuildRequires: pkgconfig(libpcre)
|
BuildRequires: pkgconfig(libpcre)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Perl compatibile regular expressions (PCRE) for OCaml.
|
Perl compatibile regular expressions (PCRE) for OCaml.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for %{name}
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
@ -54,65 +47,23 @@ Requires: pcre-devel
|
|||||||
The %{name}-devel package contains libraries and signature files for
|
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 pcre-ocaml-%{version}
|
%autosetup -p1
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
sed -i~ "
|
%ocaml_dune_setup
|
||||||
s@\(.*\)\(CCOpt:\)\(.*\)\$@\1\2 %{optflags} -fPIC `pkg-config --cflags libpcre`@
|
%ocaml_dune_build
|
||||||
s@\(.*\)\(CCLib:\)\(.*\)\$@\1\2 `pkg-config --libs libpcre`@
|
|
||||||
" _oasis
|
|
||||||
if diff -u _oasis~ _oasis
|
|
||||||
then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
%oasis_setup
|
|
||||||
%ocaml_oasis_configure --enable-docs
|
|
||||||
%ocaml_oasis_build
|
|
||||||
%ocaml_oasis_doc
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ocaml_oasis_findlib_install
|
%ocaml_dune_install
|
||||||
#
|
%ocaml_create_file_list
|
||||||
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
|
||||||
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
|
||||||
%{_libdir}/ocaml/pcre
|
|
||||||
_EOF_
|
|
||||||
#
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%check
|
||||||
|
%ocaml_dune_test
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%files -f %{name}.files
|
||||||
|
|
||||||
%files
|
%files devel -f %{name}.files.devel
|
||||||
%defattr(-,root,root,-)
|
%doc README.md
|
||||||
%doc COPYING.txt README.md
|
|
||||||
/etc/ld.so.conf.d/*.conf
|
|
||||||
%dir %{_libdir}/ocaml
|
|
||||||
%dir %{_libdir}/ocaml/*
|
|
||||||
%if 0%{?ocaml_native_compiler}
|
|
||||||
%{_libdir}/ocaml/*/*.cmxs
|
|
||||||
%endif
|
|
||||||
%{_libdir}/ocaml/*/*.so
|
|
||||||
|
|
||||||
%files devel
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%{oasis_docdir_html}
|
|
||||||
%dir %{_libdir}/ocaml
|
|
||||||
%dir %{_libdir}/ocaml/*
|
|
||||||
%{_libdir}/ocaml/*/*.a
|
|
||||||
%if 0%{?ocaml_native_compiler}
|
|
||||||
%{_libdir}/ocaml/*/*.cmx
|
|
||||||
%{_libdir}/ocaml/*/*.cmxa
|
|
||||||
%endif
|
|
||||||
%{_libdir}/ocaml/*/*.annot
|
|
||||||
%{_libdir}/ocaml/*/*.cma
|
|
||||||
%{_libdir}/ocaml/*/*.cmi
|
|
||||||
%{_libdir}/ocaml/*/*.cmt
|
|
||||||
%{_libdir}/ocaml/*/*.cmti
|
|
||||||
%{_libdir}/ocaml/*/*.mli
|
|
||||||
%{_libdir}/ocaml/*/META
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:92d4ac867e6c64961329f7a8614a449b716b9a0bfd37b0c51bdf0da8de741273
|
|
||||||
size 73760
|
|
Loading…
x
Reference in New Issue
Block a user