2014-10-23 13:35:04 +02:00
|
|
|
#
|
|
|
|
# spec file for package ocaml-pcre
|
|
|
|
#
|
2024-01-16 18:24:12 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
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
|
|
|
|
2019-11-01 23:49:35 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-10-23 13:35:04 +02:00
|
|
|
#
|
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
|
2021-09-12 00:04:57 +02:00
|
|
|
Version: 7.5.0
|
2014-10-23 13:35:04 +02:00
|
|
|
Release: 0
|
2017-07-25 10:41:55 +02:00
|
|
|
%{?ocaml_preserve_bytecode}
|
2011-09-15 14:54:09 +02:00
|
|
|
Summary: Perl compatibility regular expressions (PCRE) for OCaml
|
2020-08-21 19:30:43 +02:00
|
|
|
License: LGPL-2.0-only
|
2017-07-25 15:23:38 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2020-08-21 19:30:43 +02:00
|
|
|
URL: https://opam.ocaml.org/packages/pcre
|
2022-04-04 17:58:26 +02:00
|
|
|
Source0: %name-%version.tar.xz
|
2021-09-12 00:04:57 +02:00
|
|
|
BuildRequires: ocaml-dune >= 2.7
|
2024-01-16 18:24:12 +01:00
|
|
|
BuildRequires: ocaml-rpm-macros >= 20231101
|
2017-07-19 11:28:15 +02:00
|
|
|
BuildRequires: pkg-config
|
2021-09-12 00:04:57 +02:00
|
|
|
BuildRequires: ocaml(ocaml_base_version) >= 4.12
|
2024-01-16 18:24:12 +01:00
|
|
|
BuildRequires: ocamlfind(dune-configurator)
|
2017-07-19 11:28:15 +02:00
|
|
|
BuildRequires: pkgconfig(libpcre)
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
Perl compatibile regular expressions (PCRE) for OCaml.
|
|
|
|
|
|
|
|
%package devel
|
2022-04-04 17:58:26 +02:00
|
|
|
Summary: Development files for %name
|
2017-07-25 15:23:38 +02:00
|
|
|
Group: Development/Languages/OCaml
|
2022-04-04 17:58:26 +02:00
|
|
|
Requires: %name = %version
|
2011-09-15 14:54:09 +02:00
|
|
|
Requires: pcre-devel
|
|
|
|
|
|
|
|
%description devel
|
2022-04-04 17:58:26 +02:00
|
|
|
The %name-devel package contains libraries and signature files for
|
|
|
|
developing applications that use %name.
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%prep
|
2019-10-10 11:33:07 +02:00
|
|
|
%autosetup -p1
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%build
|
2019-11-01 23:49:35 +01:00
|
|
|
dune_release_pkgs='pcre'
|
2019-10-10 11:33:07 +02:00
|
|
|
%ocaml_dune_setup
|
|
|
|
%ocaml_dune_build
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%install
|
2019-10-10 11:33:07 +02:00
|
|
|
%ocaml_dune_install
|
|
|
|
%ocaml_create_file_list
|
2016-05-26 14:00:11 +02:00
|
|
|
|
2019-10-10 11:33:07 +02:00
|
|
|
%check
|
|
|
|
%ocaml_dune_test
|
2011-09-15 14:54:09 +02:00
|
|
|
|
2022-04-04 17:58:26 +02:00
|
|
|
%files -f %name.files
|
2011-09-15 14:54:09 +02:00
|
|
|
|
2022-04-04 17:58:26 +02:00
|
|
|
%files devel -f %name.files.devel
|
2019-10-10 11:33:07 +02:00
|
|
|
%doc README.md
|
2011-09-15 14:54:09 +02:00
|
|
|
|
|
|
|
%changelog
|