Accepting request 745387 from devel:languages:ocaml
- Require current rpm macros - Remove camlp4 subpackage - Move META files for stdlib and camlp4 to their own package to remove the build dependency to this package OBS-URL: https://build.opensuse.org/request/show/745387 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ocaml-findlib?expand=0&rev=9
This commit is contained in:
commit
c677e83741
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Nov 1 12:34:56 UTC 2019 - ohering@suse.de
|
||||||
|
|
||||||
|
- Require current rpm macros
|
||||||
|
- Remove camlp4 subpackage
|
||||||
|
- Move META files for stdlib and camlp4 to their own package
|
||||||
|
to remove the build dependency to this package
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Oct 2 17:59:21 UTC 2019 - ohering@suse.de
|
Wed Oct 2 17:59:21 UTC 2019 - ohering@suse.de
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -27,7 +27,6 @@ Group: Development/Languages/OCaml
|
|||||||
|
|
||||||
Url: https://github.com/ocaml/ocamlfind
|
Url: https://github.com/ocaml/ocamlfind
|
||||||
Source0: findlib-%{version}.tar.xz
|
Source0: findlib-%{version}.tar.xz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
#
|
#
|
||||||
Requires: ocaml-compiler-libs
|
Requires: ocaml-compiler-libs
|
||||||
Requires: ocaml-runtime
|
Requires: ocaml-runtime
|
||||||
@ -37,10 +36,9 @@ Provides: ocamlfind = %{version}
|
|||||||
BuildRequires: m4
|
BuildRequires: m4
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
BuildRequires: ocaml
|
BuildRequires: ocaml
|
||||||
BuildRequires: ocaml-camlp4-devel
|
|
||||||
BuildRequires: ocaml-ocamlbuild
|
BuildRequires: ocaml-ocamlbuild
|
||||||
BuildRequires: ocaml-ocamldoc
|
BuildRequires: ocaml-ocamldoc
|
||||||
BuildRequires: ocaml-rpm-macros >= 20190930
|
BuildRequires: ocaml-rpm-macros >= 20191101
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Findlib is a library manager for Objective Caml. It provides a
|
Findlib is a library manager for Objective Caml. It provides a
|
||||||
@ -49,28 +47,22 @@ describe the properties of libraries. There is also a tool (ocamlfind)
|
|||||||
for interpreting the META files, so that it is very easy to use
|
for interpreting the META files, so that it is very easy to use
|
||||||
libraries in programs and scripts.
|
libraries in programs and scripts.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for ocaml-findlib
|
Summary: Development files for ocaml-findlib
|
||||||
Group: Development/Languages/OCaml
|
Group: Development/Languages/OCaml
|
||||||
Requires: %{name} = %{version}
|
Requires: %{name} = %{version}
|
||||||
|
Provides: %{name}-camlp4 = %{version}-%{release}
|
||||||
|
Obsoletes: %{name}-camlp4 < %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The ocaml-findlib-devel package contains libraries and signature files
|
The ocaml-findlib-devel package contains libraries and signature files
|
||||||
for developing applications that use ocaml-findlib.
|
for developing applications that use ocaml-findlib.
|
||||||
|
|
||||||
%package camlp4
|
|
||||||
Summary: Development files for ocaml-findlib
|
|
||||||
Group: Development/Languages/OCaml
|
|
||||||
Requires: ocaml-camlp4-devel
|
|
||||||
|
|
||||||
%description camlp4
|
|
||||||
The ocaml-findlib-camlp4 contains signature files for developing applications that use camlp4
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n findlib-%{version}
|
%autosetup -p1 -n findlib-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
rm -rfv site-lib-src
|
||||||
(cd tools/extract_args && make)
|
(cd tools/extract_args && make)
|
||||||
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
|
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
|
||||||
./configure -config %{_libdir}/ocaml/ocamlfind.conf \
|
./configure -config %{_libdir}/ocaml/ocamlfind.conf \
|
||||||
@ -89,26 +81,7 @@ make install prefix=%{buildroot}
|
|||||||
rm -rfv %{buildroot}%{_libdir}/ocaml/ocamlbuild
|
rm -rfv %{buildroot}%{_libdir}/ocaml/ocamlbuild
|
||||||
%ocaml_create_file_list
|
%ocaml_create_file_list
|
||||||
|
|
||||||
# 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
|
%files -f %{name}.files
|
||||||
%license LICENSE
|
|
||||||
%{_libdir}/ocaml/ocamlfind.conf
|
%{_libdir}/ocaml/ocamlfind.conf
|
||||||
%{_libdir}/ocaml/topfind
|
%{_libdir}/ocaml/topfind
|
||||||
%{_bindir}/*
|
%{_bindir}/*
|
||||||
@ -118,6 +91,4 @@ tee -a %{name}.files < %{name}.files.x
|
|||||||
%files devel -f %{name}.files.devel
|
%files devel -f %{name}.files.devel
|
||||||
%{_libdir}/ocaml/*/Makefile.config
|
%{_libdir}/ocaml/*/Makefile.config
|
||||||
|
|
||||||
%files camlp4 -f %{name}.files.camlp4
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user