- 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
|
||||
|
||||
|
@ -18,32 +18,25 @@
|
||||
|
||||
|
||||
Name: ocaml-pcre
|
||||
Version: 7.2.3
|
||||
Version: 7.4.1
|
||||
Release: 0
|
||||
%{?ocaml_preserve_bytecode}
|
||||
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
||||
License: LGPL-2.0
|
||||
Group: Development/Languages/OCaml
|
||||
|
||||
Url: http://mmottl.github.io/pcre-ocaml/
|
||||
# https://github.com/mmottl/pcre-ocaml/releases/download/v%{version}/pcre-ocaml-%{version}.tar.gz
|
||||
Source0: pcre-ocaml-%{version}.tar.xz
|
||||
Patch0: ocaml-pcre-warnings.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
BuildRequires: gawk
|
||||
BuildRequires: ocaml >= 3.10.2
|
||||
BuildRequires: ocaml-oasis
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-rpm-macros >= 4.03
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
BuildRequires: ocaml
|
||||
BuildRequires: ocaml-dune
|
||||
BuildRequires: ocaml-rpm-macros >= 20191009
|
||||
BuildRequires: ocamlfind(base)
|
||||
BuildRequires: ocamlfind(dune.configurator)
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: ocamlfind(bytes)
|
||||
BuildRequires: pkgconfig(libpcre)
|
||||
|
||||
%description
|
||||
Perl compatibile regular expressions (PCRE) for OCaml.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Languages/OCaml
|
||||
@ -54,65 +47,23 @@ Requires: pcre-devel
|
||||
The %{name}-devel package contains libraries and signature files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n pcre-ocaml-%{version}
|
||||
%patch0 -p1
|
||||
%autosetup -p1
|
||||
|
||||
%build
|
||||
sed -i~ "
|
||||
s@\(.*\)\(CCOpt:\)\(.*\)\$@\1\2 %{optflags} -fPIC `pkg-config --cflags libpcre`@
|
||||
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
|
||||
%ocaml_dune_setup
|
||||
%ocaml_dune_build
|
||||
|
||||
%install
|
||||
%ocaml_oasis_findlib_install
|
||||
#
|
||||
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
||||
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
||||
%{_libdir}/ocaml/pcre
|
||||
_EOF_
|
||||
#
|
||||
%ocaml_dune_install
|
||||
%ocaml_create_file_list
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%check
|
||||
%ocaml_dune_test
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
%files -f %{name}.files
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%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
|
||||
%files devel -f %{name}.files.devel
|
||||
%doc README.md
|
||||
|
||||
%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