3afc2517a2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-pcre?expand=0&rev=13
89 lines
2.6 KiB
RPMSpec
89 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package ocaml-pcre
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
# Copyright (c) 2011 Andrew Psaltis <ampsaltis at gmail.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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{ocaml_preserve_bytecode}
|
|
Name: ocaml-pcre
|
|
Version: 7.1.1
|
|
Release: 0
|
|
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
|
License: LGPL-2.0
|
|
Group: Development/Libraries/Other
|
|
|
|
Url: https://bitbucket.org/mmottl/pcre-ocaml
|
|
Source0: https://bitbucket.org/mmottl/pcre-ocaml/downloads/pcre-ocaml-%{version}.tar.xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
BuildRequires: gawk
|
|
BuildRequires: ocaml >= 3.10.2
|
|
BuildRequires: ocaml-findlib-devel
|
|
BuildRequires: ocaml-ocamldoc
|
|
BuildRequires: ocaml-rpm-macros >= 4.02.1
|
|
BuildRequires: pcre-devel
|
|
|
|
%description
|
|
Perl compatibile regular expressions (PCRE) for OCaml.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Group: Development/Libraries/Other
|
|
Requires: %{name} = %{version}-
|
|
Requires: pcre-devel
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and signature files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q -n pcre-ocaml-%{version}
|
|
|
|
%build
|
|
make setup.data CONFIGUREFLAGS="--destdir $RPM_BUILD_ROOT --docdir %{_defaultdocdir}/%{name}"
|
|
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,-)
|
|
%doc COPYING.txt README.md
|
|
%{_libdir}/ocaml/pcre
|
|
%if %{ocaml_native_compiler}
|
|
%exclude %{_libdir}/ocaml/pcre/*.a
|
|
%exclude %{_libdir}/ocaml/pcre/*.cmx
|
|
%exclude %{_libdir}/ocaml/pcre/*.cmxa
|
|
%endif
|
|
%exclude %{_libdir}/ocaml/pcre/*.mli
|
|
%{_libdir}/ocaml/stublibs/*.so
|
|
%{_libdir}/ocaml/stublibs/*.so.owner
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%if %{ocaml_native_compiler}
|
|
%{_libdir}/ocaml/pcre/*.a
|
|
%{_libdir}/ocaml/pcre/*.cmx
|
|
%{_libdir}/ocaml/pcre/*.cmxa
|
|
%endif
|
|
%{_libdir}/ocaml/pcre/*.mli
|
|
|
|
%changelog
|