2014-10-23 13:35:04 +02:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-pcre
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-09-15 14:54:09 +02:00
|
|
|
# Copyright (c) 2011 Andrew Psaltis <ampsaltis at gmail.com>
|
2014-10-23 13:35:04 +02:00
|
|
|
#
|
|
|
|
# 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-15 14:54:09 +02:00
|
|
|
|
2014-10-23 13:35:04 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2013-01-08 15:41:11 +01:00
|
|
|
|
2014-10-23 13:35:04 +02:00
|
|
|
|
2011-09-15 14:54:09 +02:00
|
|
|
Name: ocaml-pcre
|
2016-05-23 22:04:08 +02:00
|
|
|
Version: 7.2.3
|
2016-05-25 11:19:23 +02:00
|
|
|
%{ocaml_preserve_bytecode}
|
2014-10-23 13:35:04 +02:00
|
|
|
Release: 0
|
2011-09-15 14:54:09 +02:00
|
|
|
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
2012-09-17 16:09:04 +02:00
|
|
|
License: LGPL-2.0
|
2014-10-23 13:35:04 +02:00
|
|
|
Group: Development/Libraries/Other
|
|
|
|
|
2014-12-08 09:28:51 +01:00
|
|
|
Url: http://mmottl.github.io/pcre-ocaml/
|
2015-11-10 11:53:04 +01:00
|
|
|
# https://github.com/mmottl/pcre-ocaml/releases/download/v%{version}/pcre-ocaml-%{version}.tar.gz
|
2014-12-08 09:28:51 +01:00
|
|
|
Source0: pcre-ocaml-%{version}.tar.xz
|
2016-05-25 10:09:08 +02:00
|
|
|
Patch0: ocaml-pcre-warnings.patch
|
2014-10-23 13:35:04 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-11-10 11:34:38 +01:00
|
|
|
# ocaml autodep start for pkg: ocaml-pcre
|
|
|
|
# hardcoded rpm dependency for pre 12.1 to compensate for lack of ocaml() provides/requires
|
|
|
|
%if 0%{?suse_version} < 1210
|
2015-11-10 14:32:47 +01:00
|
|
|
Requires: ocaml-runtime
|
2015-11-10 11:34:38 +01:00
|
|
|
%endif
|
|
|
|
# ocaml autodep end for pkg: ocaml-pcre
|
2011-09-15 14:54:09 +02:00
|
|
|
|
2014-10-23 13:35:04 +02:00
|
|
|
BuildRequires: gawk
|
2011-09-15 14:54:09 +02:00
|
|
|
BuildRequires: ocaml >= 3.10.2
|
2016-05-31 16:48:13 +02:00
|
|
|
BuildRequires: ocaml-oasis
|
2014-10-23 13:35:04 +02:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
2016-06-13 21:39:27 +02:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.03
|
2016-05-30 09:22:50 +02:00
|
|
|
BuildRequires: ocamlfind(bytes)
|
2011-09-15 14:54:09 +02:00
|
|
|
BuildRequires: pcre-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
Perl compatibile regular expressions (PCRE) for OCaml.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/Other
|
2016-06-16 12:33:03 +02:00
|
|
|
Requires: %{name} = %{version}
|
2011-09-15 14:54:09 +02:00
|
|
|
Requires: pcre-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2012-09-17 16:09:04 +02:00
|
|
|
%setup -q -n pcre-ocaml-%{version}
|
2016-05-25 10:09:08 +02:00
|
|
|
%patch0 -p1
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%build
|
2016-06-16 12:04:47 +02:00
|
|
|
%oasis_setup
|
2016-06-13 21:39:27 +02:00
|
|
|
%ocaml_oasis_configure --enable-docs
|
|
|
|
%ocaml_oasis_build
|
|
|
|
%ocaml_oasis_doc
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%install
|
2016-06-13 21:39:27 +02:00
|
|
|
%ocaml_oasis_findlib_install
|
2016-05-26 14:00:11 +02:00
|
|
|
#
|
|
|
|
mkdir -vp %{buildroot}/etc/ld.so.conf.d/
|
|
|
|
tee %{buildroot}/etc/ld.so.conf.d/%{name}.conf <<_EOF_
|
|
|
|
%{_libdir}/ocaml/stublibs
|
|
|
|
_EOF_
|
|
|
|
#
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-09-17 16:09:04 +02:00
|
|
|
%doc COPYING.txt README.md
|
2016-05-26 14:00:11 +02:00
|
|
|
/etc/ld.so.conf.d/*.conf
|
2016-05-25 11:19:23 +02:00
|
|
|
%dir %{_libdir}/ocaml
|
2016-05-25 09:59:31 +02:00
|
|
|
%dir %{_libdir}/ocaml/*
|
2016-05-25 10:16:37 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
|
|
|
%{_libdir}/ocaml/*/*.cmxs
|
|
|
|
%endif
|
2016-05-25 09:59:31 +02:00
|
|
|
%{_libdir}/ocaml/*/*.so
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2016-06-13 21:39:27 +02:00
|
|
|
%{oasis_docdir_html}
|
2016-05-25 11:19:23 +02:00
|
|
|
%dir %{_libdir}/ocaml
|
2016-05-25 09:59:31 +02:00
|
|
|
%dir %{_libdir}/ocaml/*
|
|
|
|
%{_libdir}/ocaml/*/*.a
|
2016-05-25 11:19:23 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
2016-05-25 09:59:31 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cmx
|
|
|
|
%{_libdir}/ocaml/*/*.cmxa
|
2013-01-08 15:41:11 +01:00
|
|
|
%endif
|
2016-05-25 09:59:31 +02:00
|
|
|
%{_libdir}/ocaml/*/*.annot
|
|
|
|
%{_libdir}/ocaml/*/*.cma
|
|
|
|
%{_libdir}/ocaml/*/*.cmi
|
2016-05-25 10:41:21 +02:00
|
|
|
%{_libdir}/ocaml/*/*.cmt
|
|
|
|
%{_libdir}/ocaml/*/*.cmti
|
2016-05-25 09:59:31 +02:00
|
|
|
%{_libdir}/ocaml/*/*.mli
|
|
|
|
%{_libdir}/ocaml/*/META
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%changelog
|