File mingw64-mman-win32.spec of Package mingw64-mman-win32

#
# spec file for package mingw64-mman-win32
#
# Copyright (c) 2015, Martin Hauke <mardnh@gmx.de>
#
# 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/
#

%define realname mman-win32
Name:           mingw64-%{realname}
Version:        0.0.0.svn.4
Release:        0
Summary:        A light implementation of the mmap functions for MinGW
License:        MIT
Group:          System/Libraries
Url:            http://code.google.com/p/mman-win32/
Source:         %{realname}-%{version}.tar.xz
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-filesystem
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The mmap-win32 library implements a wrapper for mmap functions around
the memory mapping Windows API.

%prep
%setup -q -n %{realname}-%{version}
chmod +x configure

%build
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_mingw64_libdir} \
	--incdir=%{_mingw64_includedir}/sys \
	--cross-prefix=x86_64-w64-mingw32-
%{_mingw64_make} VERBOSE=1 %{?_smp_mflags}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%{_mingw64_libdir}/libmman.a
%{_mingw64_includedir}/sys/mman.h

%changelog
openSUSE Build Service is sponsored by