2012-11-13 17:52:52 +01:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-findlib
|
|
|
|
#
|
2016-05-18 23:56:44 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-11-13 17:52:52 +01:00
|
|
|
# Copyright (c) 2010-2011 Andrew Psaltis <ampsaltis at gmail dot com>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2011-09-14 17:03:18 +02:00
|
|
|
|
2012-11-13 17:52:52 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
|
2016-05-18 23:56:44 +02:00
|
|
|
Version: 1.6.2
|
2014-10-23 19:02:42 +02:00
|
|
|
Release: 0
|
2014-10-23 14:42:06 +02:00
|
|
|
%{ocaml_preserve_bytecode}
|
2011-09-14 17:03:18 +02:00
|
|
|
Name: ocaml-findlib
|
|
|
|
Summary: Objective CAML package manager and build helper
|
|
|
|
License: MIT
|
2012-11-13 17:52:52 +01:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
|
|
|
Url: http://projects.camlcity.org/projects/findlib.html
|
2013-07-31 13:37:48 +02:00
|
|
|
Source0: findlib-%{version}.tar.xz
|
2012-11-13 21:41:05 +01:00
|
|
|
Patch0: findlib-1.3.3.patch
|
2012-11-13 17:52:52 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-11-10 11:33:35 +01:00
|
|
|
# ocaml autodep start for pkg: ocaml-findlib
|
|
|
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
|
|
|
%if 0%{?suse_version} < 1210
|
2015-11-10 14:31:42 +01:00
|
|
|
Requires: ocaml-compiler-libs
|
2015-11-10 11:33:35 +01:00
|
|
|
Requires: ocaml-runtime
|
|
|
|
%endif
|
|
|
|
# ocaml autodep end for pkg: ocaml-findlib
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
Provides: ocamlfind = %{version}
|
|
|
|
|
|
|
|
BuildRequires: gawk
|
2012-11-13 17:52:52 +01:00
|
|
|
BuildRequires: m4
|
|
|
|
BuildRequires: ncurses-devel
|
2014-10-10 19:07:51 +02:00
|
|
|
BuildRequires: ocaml >= 4.02.0
|
|
|
|
BuildRequires: ocaml-camlp4-devel >= 4.02.0
|
2016-05-19 01:50:23 +02:00
|
|
|
BuildRequires: ocaml-ocamlbuild
|
2012-11-13 17:52:52 +01:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
2014-10-23 14:42:06 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Findlib is a library manager for Objective Caml. It provides a
|
|
|
|
convention how to store libraries, and a file format ("META") to
|
|
|
|
describe the properties of libraries. There is also a tool (ocamlfind)
|
|
|
|
for interpreting the META files, so that it is very easy to use
|
|
|
|
libraries in programs and scripts.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
2013-01-15 19:22:45 +01:00
|
|
|
Summary: Development files for ocaml-findlib
|
2011-09-14 17:03:18 +02:00
|
|
|
Group: Development/Libraries/Other
|
2013-01-14 10:09:50 +01:00
|
|
|
Requires: %{name} = %{version}
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%description devel
|
2013-01-15 19:22:45 +01:00
|
|
|
The ocaml-findlib-devel package contains libraries and signature files
|
|
|
|
for developing applications that use ocaml-findlib.
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n findlib-%{version}
|
2012-11-13 21:41:05 +01:00
|
|
|
%patch0 -p1
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
(cd tools/extract_args && make)
|
|
|
|
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
|
|
|
|
./configure -config %{_sysconfdir}/ocamlfind.conf \
|
|
|
|
-bindir %{_bindir} \
|
|
|
|
-sitelib `ocamlc -where` \
|
|
|
|
-mandir %{_mandir} \
|
|
|
|
-with-toolbox
|
|
|
|
make all
|
2014-10-23 14:42:06 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
2011-09-14 17:03:18 +02:00
|
|
|
make opt
|
|
|
|
%endif
|
|
|
|
rm doc/guide-html/TIMESTAMP
|
|
|
|
|
|
|
|
%install
|
2012-11-13 21:41:05 +01:00
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
2016-05-19 08:04:06 +02:00
|
|
|
rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml/ocamlbuild
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE doc/README
|
|
|
|
%config(noreplace) %{_sysconfdir}/ocamlfind.conf
|
|
|
|
%{_bindir}/*
|
2013-07-31 13:37:48 +02:00
|
|
|
%{_mandir}/man?/*
|
2016-05-24 10:01:05 +02:00
|
|
|
%{_libdir}/ocaml/*/META
|
2011-09-14 17:03:18 +02:00
|
|
|
%{_libdir}/ocaml/topfind
|
2016-05-24 08:18:35 +02:00
|
|
|
#
|
|
|
|
%dir %{_libdir}/ocaml/*
|
2014-10-23 14:42:06 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
2016-05-24 08:18:35 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cmxs
|
2011-09-14 17:03:18 +02:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE doc/README doc/guide-html
|
2016-05-24 08:18:35 +02:00
|
|
|
%{_libdir}/ocaml/*/Makefile.config
|
|
|
|
#
|
|
|
|
%dir %{_libdir}/ocaml/*
|
2014-10-23 14:42:06 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
2016-05-24 08:18:35 +02:00
|
|
|
%{_libdir}/ocaml/*/*.a
|
|
|
|
%{_libdir}/ocaml/*/*.cmxa
|
2011-09-14 17:03:18 +02:00
|
|
|
%endif
|
2016-05-30 06:52:44 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cma
|
|
|
|
%{_libdir}/ocaml/*/*.cmi
|
2016-05-24 10:01:05 +02:00
|
|
|
%{_libdir}/ocaml/*/*.mli
|
2011-09-14 17:03:18 +02:00
|
|
|
|
|
|
|
%changelog
|