File mingw32-pcre2.spec of Package mingw32-pcre2
#
# spec file for package mingw32-pcre2
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
#
Name: mingw32-pcre2
Version: 10.45
Release: 0
Summary: A library for Perl-compatible regular expressions
License: BSD-3-Clause
Group: Development/Libraries/C and C++
URL: https://pcre.org/
Source: https://github.com/PCRE2Project/pcre2/releases/download/pcre2-%version/pcre2-%version.tar.bz2
Source2: https://github.com/PCRE2Project/pcre2/releases/download/pcre2-%version/pcre2-%version.tar.bz2.sig
#!BuildIgnore: post-build-checks
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: mingw32-cross-binutils
BuildRequires: mingw32-cross-gcc
BuildRequires: mingw32-cross-gcc-c++
BuildRequires: mingw32-cross-pkg-config
%_mingw32_package_header_debug
BuildArch: noarch
%description
The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics as
Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an
entirely new API.
%package devel
Summary: A library for Perl-compatible regular expressions
Group: Development/Libraries/C and C++
%description devel
The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics as
Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an
entirely new API.
%package -n mingw32-libpcre2-8-0
Summary: A library for Perl-compatible regular expressions
Group: System/Libraries
%description -n mingw32-libpcre2-8-0
The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics as
Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an
entirely new API.
This PCRE2 library variant supports 8-bit and UTF-8 strings. (See
also libpcre2-16 and libpcre2-32)
%package -n mingw32-libpcre2-16-0
Summary: A library for Perl-compatible regular expressions
Group: System/Libraries
%description -n mingw32-libpcre2-16-0
The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics as
Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an
entirely new API.
libpcre2-16 supports 16-bit and UTF-16 strings.
%package -n mingw32-libpcre2-32-0
Summary: A library for Perl-compatible regular expressions
Group: System/Libraries
%description -n mingw32-libpcre2-32-0
The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics as
Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an
entirely new API.
libpcre2-32 supports 32-bit and UTF-32 strings.
%package -n mingw32-libpcre2-posix3
Summary: A library for Perl-compatible regular expressions
Group: System/Libraries
%description -n mingw32-libpcre2-posix3
The PCRE2 library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics as
Perl 5.
PCRE2 is a re-working of the original PCRE library to provide an
entirely new API.
pcre2-posix provides a POSIX-compatible API to the PCRE2 engine.
%package tools
Summary: A library for Perl-compatible regular expressions
Group: Productivity/Text/Utilities
%description tools
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.
%package doc
Summary: A library for Perl-compatible regular expressions
Group: Documentation/HTML
%description doc
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.
%_mingw32_debug_package
%prep
%setup -q -n pcre2-%version
%build
%_mingw32_configure \
--enable-shared \
--disable-static \
--enable-utf \
--enable-pcre2-16 \
--enable-pcre2-32 \
--enable-unicode
%_mingw32_make %{?_smp_mflags}
%install
%_mingw32_make_install
rm %buildroot/%_mingw32_bindir/pcre2-config
%files tools
%_mingw32_bindir/pcre2test.exe
%_mingw32_bindir/pcre2grep.exe
%_mingw32_mandir/man1/*.1*
%files -n mingw32-libpcre2-8-0
%_mingw32_bindir/libpcre2-8-0.dll
%files -n mingw32-libpcre2-16-0
%_mingw32_bindir/libpcre2-16-0.dll
%files -n mingw32-libpcre2-32-0
%_mingw32_bindir/libpcre2-32-0.dll
%files -n mingw32-libpcre2-posix3
%_mingw32_bindir/libpcre2-posix-3.dll
%files devel
%_mingw32_includedir/*.h
%_mingw32_libdir/*.dll.a
%_mingw32_libdir/pkgconfig/*.pc
%_mingw32_mandir/man3/*.3*
%files doc
%_mingw32_docdir/pcre2/
%changelog