File mingw64-libgnurx.spec of Package mingw64-libgnurx

#
# spec file for package mingw64-libgnurx
#
# 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:           mingw64-libgnurx
Version:        2.5
Release:        0
Summary:        MinGW Windows port of the regex functionality from glibc 2.5
License:        LGPL-2.1-or-later
Group:          Development/Libraries/GNOME
Url:            ftp://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies
#!BuildIgnore: post-build-checks
Source0:        ftp://ftp.gnome.org/pub/GNOME/binaries/win32/dependencies/libgnurx-src-%{version}.zip
Source1000:     %{name}-%{version}-rpmlintrc
Patch0:         libgnurx-2.5-crosscompile.patch
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-filesystem >= 30
BuildRequires:  unzip
%_mingw64_package_header_debug
BuildArch:      noarch

%description
This is the regex functionality from glibc 2.5 extracted into a
separate library, for Win32.

%package -n mingw64-libgnurx0
Summary:        MinGW Windows port of the regex functionality from glibc 2.5
Group:          System/Libraries
Obsoletes:      mingw64-libgnurx

%description -n mingw64-libgnurx0
This is the regex functionality from glibc 2.5 extracted into a
separate library, for Win32.

%package devel
Summary:        MinGW Windows port of the regex functionality from glibc 2.5
Group:          Development/Libraries/C and C++

%description devel
This is the regex functionality from glibc 2.5 extracted into a
separate library, for Win32.

%_mingw64_debug_package

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

%patch -P 0 -p1 -b .crosscompile

%build
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install

mkdir -p %{buildroot}%{_mingw64_bindir}
install -m 755  libgnurx-0.dll %{buildroot}%{_mingw64_bindir}/
mkdir -p %{buildroot}%{_mingw64_libdir}
install -m 644 libgnurx.dll.a %{buildroot}%{_mingw64_libdir}/
(cd %{buildroot}%{_mingw64_libdir} && ln -s libgnurx.dll.a libregex.a)
mkdir -p %{buildroot}%{_mingw64_includedir}
install -m 644 regex.h %{buildroot}%{_mingw64_includedir}/

%files -n mingw64-libgnurx0
%defattr(-,root,root)
%{_mingw64_bindir}/libgnurx-0.dll

%files devel
%defattr(-,root,root)
%{_mingw64_libdir}/libgnurx.dll.a
%{_mingw64_libdir}/libregex.a
%{_mingw64_includedir}/regex.h

%changelog
openSUSE Build Service is sponsored by