Accepting request 737376 from devel:languages:ocaml

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/737376
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-findlib?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2019-10-14 12:52:13 +00:00 committed by Git OBS Bridge
commit 7491f71dc2
5 changed files with 71 additions and 56 deletions

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service name="tar_scm" mode="disabled">
<param name="url">https://github.com/ocaml/ocamlfind.git</param>
<param name="scm">git</param>
<param name="versionformat">1.8.1</param>
<param name="revision">findlib-1.8.1</param>
<param name="filename">ocaml-findlib</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:cabb6cd484380e41fb20bf5ec6acc65d20769363754a73c74951dd4238b20111
size 159972

3
findlib-1.8.1.tar.xz Normal file
View File

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

View File

@ -1,3 +1,24 @@
-------------------------------------------------------------------
Wed Oct 2 17:59:21 UTC 2019 - ohering@suse.de
- Move to github, use _service file
-------------------------------------------------------------------
Mon Sep 23 16:35:39 UTC 2019 - ohering@suse.de
- Update to upstream version 1.8.1
Adapted to upcoming ocaml-4.09.
New API Findlib.list_packages' can specify a package prefix.
Fix reinstallation of "num" for OCaml-4.06.
Fix build with OCaml-4.07.
The installation of graphics/META is now optional.
Fix "ocamlfind query -d".
The environment variable OCAMLFIND_IGNORE_DUPS_IN is now interpreted as a list of directories.
Packages for "ocamlfind query" may now be separated by commas, too.
New "warning" property for packages.
Forgetting to pass -thread/-vmthread only prints a warning now, but doesn't stop the build.
For dealing with case-sensitive filesystems it is now only tried to match ASCII characters, but not encoding-dependent characters.
-------------------------------------------------------------------
Thu Aug 22 13:24:21 UTC 2019 - ohering@suse.de

View File

@ -18,32 +18,29 @@
Name: ocaml-findlib
Version: 1.7.3
Version: 1.8.1
Release: 0
%{?ocaml_preserve_bytecode}
Summary: Objective CAML package manager and build helper
License: MIT
Group: Development/Languages/OCaml
Url: http://projects.camlcity.org/projects/findlib.html
Url: https://github.com/ocaml/ocamlfind
Source0: findlib-%{version}.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#
Recommends: ocaml-findlib-camlp4
#
Requires: ocaml-compiler-libs
Requires: ocaml-runtime
#
Provides: ocamlfind = %{version}
BuildRequires: gawk
BuildRequires: m4
BuildRequires: ncurses-devel
BuildRequires: ocaml >= 4.02.0
BuildRequires: ocaml-camlp4-devel >= 4.02.0
BuildRequires: ocaml
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-ocamlbuild
BuildRequires: ocaml-ocamldoc
BuildRequires: ocaml-rpm-macros >= 4.02.1
BuildRequires: ocaml-rpm-macros >= 20190930
%description
Findlib is a library manager for Objective Caml. It provides a
@ -62,8 +59,6 @@ Requires: %{name} = %{version}
The ocaml-findlib-devel package contains libraries and signature files
for developing applications that use ocaml-findlib.
%package camlp4
Summary: Development files for ocaml-findlib
Group: Development/Languages/OCaml
@ -73,7 +68,7 @@ Requires: ocaml-camlp4-devel
The ocaml-findlib-camlp4 contains signature files for developing applications that use camlp4
%prep
%setup -q -n findlib-%{version}
%autosetup -p1 -n findlib-%{version}
%build
(cd tools/extract_args && make)
@ -87,57 +82,42 @@ make all
%if 0%{?ocaml_native_compiler}
make opt
%endif
rm doc/guide-html/TIMESTAMP
rm -fv doc/guide-html/TIMESTAMP
%install
make install prefix=$RPM_BUILD_ROOT
rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild
make install prefix=%{buildroot}
rm -rfv %{buildroot}%{_libdir}/ocaml/ocamlbuild
%ocaml_create_file_list
%files
%defattr(-,root,root,-)
%doc LICENSE doc/README
# camlp4 support nee
sed -i~ '
/\/camlp4/ {
w %{name}.files.camlp4
d
}
/\/findlib/ {
b
}
/\/num-top/ {
b
}
w %{name}.files.x
d
' %{name}.files.devel
diff -u "$_"~ "$_" && exit 2
tee -a %{name}.files < %{name}.files.x
%files -f %{name}.files
%license LICENSE
%{_libdir}/ocaml/ocamlfind.conf
%{_libdir}/ocaml/topfind
%{_bindir}/*
%{_mandir}/man?/*
#
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/*
%{_libdir}/ocaml/*/META
#
%exclude %dir %{_libdir}/ocaml/camlp4
%exclude %dir %{_libdir}/ocaml/findlib
%exclude %dir %{_libdir}/ocaml/num-top
%exclude %{_libdir}/ocaml/camlp4/META
%exclude %{_libdir}/ocaml/findlib/META
%exclude %{_libdir}/ocaml/num-top/META
%{_libdir}/ocaml/topfind
%dir %{_libdir}/ocaml/findlib
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.cmxs
%endif
%files devel
%defattr(-,root,root,-)
%doc LICENSE doc/README doc/guide-html
%files devel -f %{name}.files.devel
%{_libdir}/ocaml/*/Makefile.config
#
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/findlib
%dir %{_libdir}/ocaml/num-top
%{_libdir}/ocaml/findlib/META
%{_libdir}/ocaml/num-top/META
%if 0%{?ocaml_native_compiler}
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%endif
%{_libdir}/ocaml/*/*.cma
%{_libdir}/ocaml/*/*.cmi
%{_libdir}/ocaml/*/*.mli
%files camlp4
%defattr(-,root,root,-)
%dir %{_libdir}/ocaml
%dir %{_libdir}/ocaml/camlp4
%{_libdir}/ocaml/camlp4/META
%files camlp4 -f %{name}.files.camlp4
%changelog