File mingw32-swig.spec of Package mingw32-swig

#
# spec file for package mingw32-swig
#
# 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 swig
Name:           mingw32-%{realname}
Version:        3.0.7
Release:        0
Summary:        Simplified Wrapper and Interface Generator
License:        GPL-3.0+ and BSD-3-Clause
Group:          Development/Languages/C and C++
Url:            http://www.swig.org/
Source:         %{realname}-%{version}.tar.gz
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-gcc-c++
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-pcre-devel
BuildRequires:  mingw32-python-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%{_mingw32_package_header_debug}
%{_mingw32_debug_package}

%description
SWIG is a compiler that attempts to make it easy to integrate C, C++,
or Objective-C code with scripting languages including Perl, Tcl, and
Python.  In a nutshell, you give it a bunch of ANSI C/C++ declarations
and it generates an interface between C and your favorite scripting
language.  However, this is only scratching the surface of what SWIG
can do--some of its more advanced features include automatic
documentation generation, module and library management, extensive
customization options, and more.

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

%build
%{_mingw32_configure} --disable-ccache
%{_mingw32_make} %{?_smp_mflags}

%install
%{_mingw32_make} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%{_mingw32_datadir}/swig
%{_mingw32_bindir}/swig.exe

%changelog
openSUSE Build Service is sponsored by