File mingw32-pcre.spec of Package mingw32-pcre

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-pcre
Version:        8.13
Release:        0
Summary:        Perl Compatible Regular Expressions

License:        BSD
Url:            http://www.pcre.org/
Group:          System/Libraries
Source:         ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config

%description
The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and
semantics as Perl 5. PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX
regular expression API.

%package -n mingw32-libpcre
Summary:        Perl Compatible Regular Expressions
Group:          System/Libraries

%description -n mingw32-libpcre
The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and
semantics as Perl 5. PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX
regular expression API.

This package contains all the runtime files.

%package -n mingw32-libpcre-devel
Summary:        Perl Compatible Regular Expressions (development files)
Group:          Development/Libraries

%description -n mingw32-libpcre-devel
The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and
semantics as Perl 5. PCRE has its own native API, as well as a set of wrapper functions that correspond to the POSIX
regular expression API.

This package contains all necessary include files and libraries needed to develop applications that require these.

%{_mingw32_debug_package}

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


%build
%{_mingw32_configure} \
	--enable-newline-is-any \
	--enable-utf8 \
	--disable-cpp \
	--enable-shared --disable-static
%{_mingw32_make} %{?_smp_mflags}


%install
make DESTDIR=$RPM_BUILD_ROOT install


%clean
rm -rf $RPM_BUILD_ROOT


%files -n mingw32-libpcre
%defattr(-, root, root)
%exclude %{_mingw32_bindir}/pcre*
%{_mingw32_bindir}/libpcre-0.dll
%{_mingw32_bindir}/libpcreposix-0.dll

%files -n mingw32-libpcre-devel
%defattr(-, root, root)
%{_mingw32_includedir}/pcre*.h
%{_mingw32_libdir}/libpcre.dll.a
%{_mingw32_libdir}/libpcreposix.dll.a
%{_mingw32_libdir}/pkgconfig/libpcre.pc
%{_mingw32_libdir}/pkgconfig/libpcreposix.pc
%{_mingw32_mandir}/man1/pcre*
%{_mingw32_mandir}/man3/pcre*
%{_mingw32_datadir}/doc/pcre/


%changelog
openSUSE Build Service is sponsored by