File mingw32-asio.spec of Package mingw32-asio

#
# spec file for package mingw32-asio
#
# 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-asio
Version:        1.10.2
Release:        0
Summary:        Header files for asio
License:        BSD-3-Clause
Group:          Development/Libraries
Url:            http://think-async.com/Asio/
Source0:        asio-%{version}.tar.bz2
#!BuildIgnore: post-build-checks
BuildRequires:  mingw32-boost-devel
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-filesystem >= 23
BuildRequires:  mingw32-libopenssl-devel
BuildArch:      noarch
%_mingw32_package_header_debug

%description
Asio is a cross-platform C++ library for network and low-level
I/O programming that provides developers with a consistent
asynchronous model using a modern C++ approach.

%package devel
Summary:        Header files for asio
Group:          Development/Libraries

%description devel
Asio is a cross-platform C++ library for network and low-level
I/O programming that provides developers with a consistent
asynchronous model using a modern C++ approach.

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

%build
MINGW32_CFLAGS="-D_WIN32_WINNT=0x0500 %{_mingw32_cflags}" \
MINGW32_CXXFLAGS="-D_WIN32_WINNT=0x0500 %{_mingw32_cflags}" \
%{_mingw32_configure}

make %{?_smp_mflags} || make

%install

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

%files devel
%defattr(-,root,root)
%{_mingw32_includedir}/asio.hpp
%{_mingw32_includedir}/asio/

%changelog
openSUSE Build Service is sponsored by