mingw64-runtime/mingw64-runtime.spec

79 lines
2.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package mingw64-runtime
#
# Copyright (c) 2013 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/
#
%define __strip %{_mingw64_strip}
%define __objdump %{_mingw64_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw64_findrequires}
%define __find_provides %{_mingw64_findprovides}
%define __os_install_post %{_mingw64_install_post}
Name: mingw64-runtime
Version: 20130216
Release: 0
Summary: MinGW-W64 runtime for win32
License: SUSE-Public-Domain
Group: Development/Libraries
Url: http://mingw-w64.sourceforge.net/
Source0: http://dl.sourceforge.net/sourceforge/mingw-w64/mingw-w64-runtime-%{version}.tar.bz2
Source100: %{name}-rpmlintrc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
#!BuildIgnore: post-build-checks
BuildRequires: mingw64-cross-binutils
BuildRequires: mingw64-cross-gcc-bootstrap >= 4.4.0
BuildRequires: mingw64-filesystem
BuildRequires: mingw64-headers >= %{version}
# Once this is installed, mingw64-bootstrap (binary bootstrapper) is no
# longer needed.
Obsoletes: mingw64-runtime-bootstrap
%description
MinGW Win64 cross-compiler runtime, base libraries.
%prep
%setup -q -n mingw-w64-runtime-%{version}
%build
%{_mingw64_configure} --disable-lib32 --enable-lib64
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/lib
rm -rf $RPM_BUILD_ROOT%{_prefix}/%{_mingw64_target}/libsrc
rm -rf $RPM_BUILD_ROOT%{_mingw64_includedir}/*.c
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_mingw64_libdir}/*
%changelog