File mingw32-pcre.spec of Package mingw32-pcre

#
# spec file for package mingw32-pcre
#
# Copyright (c) 2014 SUSE LINUX Products 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-pcre
Version:        8.35
Release:        0
Summary:        A library for Perl-compatible regular expressions
License:        BSD-3-Clause and Other uncritical OpenSource License
Group:          Development/Libraries/C and C++
Url:            ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/
Source:         ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gnome-common
BuildRequires:  libtool
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw32_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 mingw32-libpcre1
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw32-libpcre
Provides:       mingw32-libpcre

%description -n mingw32-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 mingw32-libpcre16-0
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw32-libpcre16
Provides:       mingw32-libpcre16

%description -n mingw32-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 mingw32-libpcreposix0
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw32-libpcreposix
Provides:       mingw32-libpcreposix

%description -n mingw32-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 mingw32-libpcrecpp0
Summary:        A library for Perl-compatible regular expressions
Group:          System/Libraries
Obsoletes:      mingw32-libpcrecpp
Provides:       mingw32-libpcrecpp

%description -n mingw32-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++

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

%_mingw32_debug_package

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

%build
%{_mingw32_configure} \
	--enable-shared --disable-static \
	--enable-utf --enable-pcre16
make %{?_smp_mflags} || make

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}

%files tools
%defattr(-,root,root)
%{_mingw32_bindir}/pcretest.exe
%{_mingw32_bindir}/pcregrep.exe
%{_mingw32_mandir}/man1/*.1*

%files -n mingw32-libpcre1
%defattr(-,root,root)
%{_mingw32_bindir}/libpcre-1.dll

%files -n mingw32-libpcre16-0
%defattr(-,root,root)
%{_mingw32_bindir}/libpcre16-0.dll

%files -n mingw32-libpcrecpp0
%defattr(-,root,root)
%{_mingw32_bindir}/libpcrecpp-0.dll

%files -n mingw32-libpcreposix0
%defattr(-,root,root)
%{_mingw32_bindir}/libpcreposix-0.dll

%files devel
%defattr(-,root,root)
%{_mingw32_bindir}/pcre-config
%{_mingw32_includedir}/*.h
%{_mingw32_libdir}/libpcre.dll.a
%{_mingw32_libdir}/libpcre16.dll.a
%{_mingw32_libdir}/libpcrecpp.dll.a
%{_mingw32_libdir}/libpcreposix.dll.a
%{_mingw32_libdir}/pkgconfig/libpcre.pc
%{_mingw32_libdir}/pkgconfig/libpcre16.pc
%{_mingw32_libdir}/pkgconfig/libpcrecpp.pc
%{_mingw32_libdir}/pkgconfig/libpcreposix.pc
%{_mingw32_mandir}/man3/*.3*

%files doc
%defattr(-,root,root)
%{_mingw32_docdir}/pcre

%changelog
openSUSE Build Service is sponsored by