File mingw64-pcre.spec of Package mingw64-pcre

#
# spec file for package mingw64-pcre
#
# 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:           mingw64-pcre
Version:        8.45
Release:        0
Summary:        A library for Perl-compatible regular expressions
License:        BSD-3-Clause
Group:          Development/Libraries/C and C++
URL:            https://www.pcre.org/
Source:         https://sourceforge.net/projects/pcre/files/pcre/%{version}/pcre-%{version}.tar.bz2
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gnome-common
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem
#!BuildIgnore:  post-build-checks
%_mingw64_package_header_debug
BuildArch:      noarch

%description
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.

%package -n mingw64-libpcre1
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw64-libpcre
Provides:       mingw64-libpcre

%description -n mingw64-libpcre1
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.

%package -n mingw64-libpcre16-0
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw64-libpcre16
Provides:       mingw64-libpcre16

%description -n mingw64-libpcre16-0
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.

%package -n mingw64-libpcreposix0
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw64-libpcreposix
Provides:       mingw64-libpcreposix

%description -n mingw64-libpcreposix0
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.

%package -n mingw64-libpcrecpp0
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw64-libpcrecpp
Provides:       mingw64-libpcrecpp

%description -n mingw64-libpcrecpp0
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.

%package devel
Summary:        A library for Perl-compatible regular expressions
Group:          Development/Libraries/C and C++
Requires:       mingw64-libpcre16-0 = %{version}
Requires:       mingw64-libpcrecpp0 = %{version}
Requires:       mingw64-libpcreposix0 = %{version}

%description devel
The PCRE library is a set of functions that implement regular
expression pattern matching using the same syntax and semantics
as Perl 5.

%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.

%_mingw64_debug_package

%prep
%setup -q -n pcre-%{version}

%build
echo "lt_cv_deplibs_check_method='pass_all'" >> %{_mingw64_cache}
%{_mingw64_configure} \
    --enable-shared \
    --disable-static \
    --enable-utf \
    --enable-pcre16
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make_install}
rm %{buildroot}%{_mingw64_bindir}/pcre-config

%files tools
%{_mingw64_bindir}/pcretest.exe
%{_mingw64_bindir}/pcregrep.exe
%{_mingw64_mandir}/man1/*.1*

%files -n mingw64-libpcre1
%{_mingw64_bindir}/libpcre-1.dll

%files -n mingw64-libpcre16-0
%{_mingw64_bindir}/libpcre16-0.dll

%files -n mingw64-libpcrecpp0
%{_mingw64_bindir}/libpcrecpp-0.dll

%files -n mingw64-libpcreposix0
%{_mingw64_bindir}/libpcreposix-0.dll

%files devel
%{_mingw64_includedir}/*.h
%{_mingw64_libdir}/libpcre.dll.a
%{_mingw64_libdir}/libpcre16.dll.a
%{_mingw64_libdir}/libpcrecpp.dll.a
%{_mingw64_libdir}/libpcreposix.dll.a
%{_mingw64_libdir}/pkgconfig/libpcre.pc
%{_mingw64_libdir}/pkgconfig/libpcre16.pc
%{_mingw64_libdir}/pkgconfig/libpcrecpp.pc
%{_mingw64_libdir}/pkgconfig/libpcreposix.pc
%{_mingw64_mandir}/man3/*.3*

%files doc
%{_mingw64_docdir}/pcre

%changelog
openSUSE Build Service is sponsored by