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
|
|
|
|
|
|
|
%{ocaml_preserve_bytecode}
|
2011-09-15 14:54:09 +02:00
|
|
|
Name: ocaml-pcre
|
2016-05-23 22:04:08 +02:00
|
|
|
Version: 7.2.3
|
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
|
|
|
|
BuildRequires: ocaml-findlib-devel
|
2015-06-24 14:06:06 +02:00
|
|
|
BuildRequires: ocaml-oasis-devel
|
2014-10-23 13:35:04 +02:00
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
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
|
2013-01-14 10:09:53 +01: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
|
2015-06-24 14:06:06 +02:00
|
|
|
oasis -debug setup-clean
|
|
|
|
oasis -debug setup -setup-update none
|
|
|
|
ls -AlRt .
|
2012-09-17 16:09:04 +02:00
|
|
|
make setup.data CONFIGUREFLAGS="--destdir $RPM_BUILD_ROOT --docdir %{_defaultdocdir}/%{name}"
|
2011-09-15 14:54:09 +02:00
|
|
|
make all
|
|
|
|
|
|
|
|
%install
|
|
|
|
export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
|
|
|
|
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
|
|
|
|
make NATIVE=true install
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-09-17 16:09:04 +02:00
|
|
|
%doc COPYING.txt README.md
|
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
|
|
|
|
%{_libdir}/ocaml/*/*.so.owner
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2016-05-25 09:59:31 +02:00
|
|
|
%dir %{_libdir}/ocaml/*
|
2014-10-23 13:35:04 +02:00
|
|
|
%if %{ocaml_native_compiler}
|
2016-05-25 09:59:31 +02:00
|
|
|
%{_libdir}/ocaml/*/*.a
|
|
|
|
%{_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/*/*.cmt
|
|
|
|
%{_libdir}/ocaml/*/*.cmti
|
|
|
|
%{_libdir}/ocaml/*/*.annot
|
|
|
|
%{_libdir}/ocaml/*/*.cma
|
|
|
|
%{_libdir}/ocaml/*/*.cmi
|
|
|
|
%{_libdir}/ocaml/*/*.mli
|
|
|
|
%{_libdir}/ocaml/*/META
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%changelog
|