A new user interface for you! Read more...

File mingw64-gcc.spec of Package mingw64-gcc

#
# spec file for package mingw64-gcc
#
# Copyright (c) 2015 SUSE LINUX 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 include_ada 0
%define include_java 0
Name:           mingw64-gcc
Version:        5.3.0
Release:        0
Summary:        MinGW Windows compiler (GCC) for C
License:        GPL-2.0+
Group:          Development/Languages
Url:            http://www.mingw.org/
Source0:        ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.bz2
Source50:       ecj.jar
Source100:      %{name}-rpmlintrc
Patch0:         gcc-5.1.0-libjava.patch
Patch1:         gcc-make-xmmintrin-header-cplusplus-compatible.patch
Patch2:         gcc-5.1.0-no_narrowing.patch
Patch3:         enable_ofstream_wchar_ctor_and_open.diff
#!BuildIgnore: post-build-checks
BuildRequires:  gcc-c++
BuildRequires:  gmp-devel
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc >= %{version}
BuildRequires:  mingw64-cross-gcc-c++ >= %{version}
BuildRequires:  mingw64-cross-gcc-fortran >= %{version}
BuildRequires:  mingw64-cross-gcc-objc >= %{version}
BuildRequires:  mingw64-cross-pkg-config
BuildRequires:  mingw64-filesystem >= 39-3
BuildRequires:  mingw64-gmp-devel >= 4.2.0
BuildRequires:  mingw64-headers >= 3.1.0
BuildRequires:  mingw64-mpc-devel >= 0.8.0
BuildRequires:  mingw64-mpfr-devel >= 2.4.0
BuildRequires:  mingw64-runtime >= 3.1.0
BuildRequires:  mingw64-zlib-devel
BuildRequires:  mpc-devel
BuildRequires:  mpfr-devel
BuildRequires:  texinfo
BuildRequires:  unzip
BuildRequires:  zip
Requires:       mingw64-binutils
Requires:       mingw64-cpp >= %{version}
Requires:       mingw64-headers
Requires:       mingw64-runtime
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw64_package_header_debug
BuildArch:      noarch
%if %{include_java}
BuildRequires:  mingw64-cross-gcc-java >= %{version}
%endif
%if %{include_ada}
BuildRequires:  gcc-ada
BuildRequires:  mingw64-cross-gcc-ada >= %{version}
%endif

%description
MinGW Windows compiler (GCC) for C

%package -n mingw64-libgcc_s_seh1
Summary:        MinGW Windows compiler for C shared libraries
Group:          System/Libraries
Obsoletes:      mingw64-libgcc < %{version}-%{release}
Provides:       mingw64-libgcc = %{version}-%{release}

%description -n mingw64-libgcc_s_seh1
MinGW Windows compiler for C shared libraries

This libgcc build supports Structured Exception Handling (SEH), which
is the native exception handling mechanism for Windows.
[SEH support is currently only implemented for the x86_64 target,
which is why the mingw32 package set does not contain it.]

%package -n mingw64-libssp0
Summary:        MinGW Windows compiler for C shared libraries
Group:          System/Libraries
Obsoletes:      mingw64-libssp < %{version}-%{release}
Provides:       mingw64-libssp = %{version}-%{release}

%description -n mingw64-libssp0
MinGW Windows compiler for C shared libraries

%package -n mingw64-libgomp1
Summary:        MinGW Windows compiler for C shared libraries
Group:          System/Libraries
Obsoletes:      mingw64-libgomp < %{version}-%{release}
Provides:       mingw64-libgomp = %{version}-%{release}

%description -n mingw64-libgomp1
MinGW Windows compiler for C shared libraries

%package -n mingw64-libgomp-plugin-host_nonshm1
Summary:        MinGW Windows compiler for C shared libraries
Group:          System/Libraries

%description -n mingw64-libgomp-plugin-host_nonshm1
MinGW Windows compiler for C shared libraries

%package -n mingw64-cpp
Summary:        MinGW Windows C Preprocessor
Group:          Development/Languages

%description -n mingw64-cpp
MinGW Windows C Preprocessor

%package c++
Summary:        MinGW Windows compiler for C++
Group:          Development/Languages

%description c++
MinGW Windows compiler for C++

%package -n mingw64-libstdc++6
Summary:        MinGW Windows compiler for C++ shared libraries
Group:          System/Libraries
Obsoletes:      mingw64-libstdc++ < %{version}-%{release}
Provides:       mingw64-libstdc++ = %{version}-%{release}

%description -n mingw64-libstdc++6
MinGW Windows compiler for C++ shared libraries

%package -n mingw64-libvtv0
Summary:        The GNU Compiler Vtable Verifier Runtime Library
License:        MIT
Group:          System/Libraries

%description -n mingw64-libvtv0
The runtime library needed to run programs compiled with the
-fvtable-verify option of the GNU Compiler Collection (GCC).

%package -n mingw64-libvtv_stubs0
Summary:        The GNU Compiler Vtable Verifier Runtime Library
License:        MIT
Group:          System/Libraries

%description -n mingw64-libvtv_stubs0
The runtime library needed to run programs compiled with the
-fvtable-verify option of the GNU Compiler Collection (GCC).

%if %{include_java}
%package java
Summary:        MinGW Windows compiler for Java
Group:          Development/Languages
Requires:       mingw64-libgcj-jar

%description java
MinGW Windows compiler for Java

%package -n mingw64-libgcj
Summary:        MinGW Windows compiler for Java shared libraries
Group:          Development/Languages

%description -n mingw64-libgcj
MinGW Windows compiler for Java shared libraries

%package -n mingw64-libgcj-jar
Summary:        MinGW Windows compiler for Java JAR files
Group:          Development/Languages

%description -n mingw64-libgcj-jar
MinGW Windows compiler for Java JAR files

%endif

%package fortran
Summary:        MinGW Windows compiler for Fortran
Group:          Development/Languages

%description fortran
MinGW Windows compiler for Fortran

%package -n mingw64-libgfortran3
Summary:        MinGW Windows compiler for Fortran shared libraries
Group:          System/Libraries
Obsoletes:      mingw64-libgfortran < %{version}-%{release}
Provides:       mingw64-libgfortran = %{version}-%{release}

%description -n mingw64-libgfortran3
MinGW Windows compiler for Fortran shared libraries

%package -n mingw64-libquadmath0
Summary:        MinGW Windows Fortran Compiler Quadmath Runtime Library
Group:          System/Libraries

%description -n mingw64-libquadmath0
The runtime library needed to run programs compiled with the Fortran
compiler of the GNU Compiler Collection (GCC) and quadruple precision
floating point operations.

%package -n mingw64-libatomic1
Summary:        The GNU Compiler Atomic Operations Runtime Library
Group:          System/Libraries

%description -n mingw64-libatomic1
The runtime library for atomic operations of the GNU Compiler Collection (GCC).

%package objc
Summary:        MinGW Windows compiler for Objective-C and Objective-C++
Group:          Development/Languages

%description objc
MinGW Windows compiler for Objective-C and Objective-C++

%package -n mingw64-libobjc4
Summary:        MinGW Windows compiler for Objective-C and Objective-C++ shared libraries
Group:          System/Libraries
Obsoletes:      mingw64-libobjc < %{version}-%{release}
Provides:       mingw64-libobjc = %{version}-%{release}

%description -n mingw64-libobjc4
MinGW Windows compiler for Objective-C and Objective-C++ shared libraries

%_mingw64_debug_package

%prep
%setup -q -c
pushd gcc-%{version}
%patch0
%patch1
%patch2
%patch3 -p1
popd

%build
cd gcc-%{version}

mkdir -p build
cd build

languages="c,c++,fortran,objc,obj-c++"

%if %{include_ada}
languages+=",ada"
ada_options=-enable-libada
%else
ada_options=
%endif

%if %{include_java}
languages+=",java"
java_options='--enable-libgcj --enable-java-gc-boehm --disable-libgcj-debug --enable-interpreter'

mkdir -p %{_mingw64_target}/libjava
echo | %{_mingw64_cc} -o %{_mingw64_target}/libjava/crtmt.o -x c -c -

%else
java_options=
%endif

CC_FOR_TARGET=%{_mingw64_cc} \
CXX_FOR_TARGET=%{_mingw64_cxx} \
GFORTRAN_FOR_TARGET=%{_mingw64_target}-gfortran \
GCJ_FOR_TARGET=%{_mingw64_gcj} \
CFLAGS_FOR_TARGET="-DGC_NOT_DLL %{_mingw64_cflags}" \
CFLAGS_FOR_BUILD="-I-%{_mingw64_includedir}" \
CPPFLAGS_FOR_BUILD="-I-%{_mingw64_includedir}" \
CXXFLAGS_FOR_BUILD="-I-%{_mingw64_includedir}" \
CXXFLAGS_FOR_TARGET="-DGC_NOT_DLL %{_mingw64_cflags}" \
CPPFLAGS_FOR_TARGET="-DGC_NOT_DLL %{_mingw64_cflags}" \
../configure \
  --prefix=%{_mingw64_prefix} \
  --disable-werror \
  --disable-werror-always \
  --disable-bootstrap \
  --host=%{_mingw64_host} \
  --with-gnu-as --with-gnu-ld --verbose \
  --without-newlib \
  --disable-multilib \
  --enable-plugin \
  --with-system-zlib \
  --disable-plugin \
  --disable-nls --without-included-gettext \
  --disable-win32-registry \
  --enable-version-specific-runtime-libs \
  --with-build-sysroot=%{_mingw64_sysroot} \
  --with-sysroot=%{_mingw64_prefix} \
  --enable-languages="$languages" $optargs \
  --without-x \
  ${java_options} \
  ${ada_options} \
  --disable-gmp \
  --enable-hash-synchronization \
  --enable-fully-dynamic-string \
  --enable-libgomp \
  --enable-linker-build-id

make %{?_smp_mflags} all || make all

%install
cd gcc-%{version}
cd build

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

%if %{include_java}

cp %{SOURCE50} %{buildroot}%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/

echo | %{_mingw64_cc} -o crtmt.o -x c -c -
MINGW64_CLASSPATH=%{buildroot}%{_mingw64_datadir}/java/libgcj-%{version}.jar:%{buildroot}%{_mingw64_datadir}/java/libgcj-tools-%{version}.jar \
%{_mingw64_env} ; \
%{_mingw64_gcj} %{SOURCE50} --main=org.eclipse.jdt.internal.compiler.batch.GCCMain \
	-o %{buildroot}%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/ecj1.exe

(cd %{buildroot}%{_mingw64_datadir}/java/; for i in libgcj libgcj-tools; \
	do ln -s $i-%{version}.jar $i.jar; done )

%endif

rm -f %{buildroot}%{_mingw64_infodir}/dir

find %{buildroot} -name \*.py -exec rm {} +

mv %{buildroot}%{_mingw64_libdir}/gcc/%{_mingw64_target}/lib/libgcc_s.a \
   %{buildroot}%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/

mv %{buildroot}%{_mingw64_libdir}/gcc/%{_mingw64_target}/*.dll \
   %{buildroot}%{_mingw64_bindir}

%files
%defattr(-,root,root)
%{_mingw64_bindir}/gcc*.exe
%{_mingw64_bindir}/gcov*.exe
%exclude %{_mingw64_bindir}/%{_mingw64_target}-gcc*.exe
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/crtbegin.o
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/crtend.o
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/crtfastmath.o
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libcaf_single.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcc.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcc_eh.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcc_s.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcov.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libssp.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libssp.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libssp_nonshared.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgomp.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgomp.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgomp.spec
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgomp-plugin-host_nonshm.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libatomic.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libatomic.dll.a
%{_mingw64_infodir}/libgomp.info.gz
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include-fixed
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/ssp
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include-fixed/README
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include-fixed/*.h
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/*.h
%if %{include_java}
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/jni*.h
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/jawt*.h
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/jvmpi.h
%endif
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/ssp/*.h
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/install-tools
%dir %{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/install-tools
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/install-tools/*
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/install-tools/*
%{_mingw64_mandir}/man1/gcc.1*
%{_mingw64_mandir}/man1/gcov.1*
%{_mingw64_mandir}/man7/fsf-funding.7.gz
%{_mingw64_mandir}/man7/gfdl.7.gz
%{_mingw64_mandir}/man7/gpl.7.gz
%{_mingw64_infodir}/gcc*.info*
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/collect2.exe
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/liblto_plugin-0.dll
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/liblto_plugin.dll.a
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/lto1.exe
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/lto-wrapper.exe

%files -n mingw64-libgcc_s_seh1
%defattr(-,root,root)
%{_mingw64_bindir}/libgcc_s_seh-1.dll

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

%files -n mingw64-libgomp1
%defattr(-,root,root)
%{_mingw64_bindir}/libgomp-1.dll

%files -n mingw64-libgomp-plugin-host_nonshm1
%defattr(-,root,root)
%{_mingw64_bindir}/libgomp-plugin-host_nonshm-1.dll

%files -n mingw64-libatomic1
%defattr(-,root,root)
%{_mingw64_bindir}/libatomic-1.dll

%files -n mingw64-cpp
%defattr(-,root,root)
#/lib/%{_mingw64_target}-cpp
%{_mingw64_bindir}/cpp.exe
%{_mingw64_mandir}/man1/cpp.1*
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}
%dir %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/cc1.exe
%{_mingw64_infodir}/cpp*.info*

%files c++
%defattr(-,root,root)
%{_mingw64_bindir}/g++.exe
%{_mingw64_bindir}/c++.exe
%exclude %{_mingw64_bindir}/%{_mingw64_target}-g++.exe
%exclude %{_mingw64_bindir}/%{_mingw64_target}-c++.exe
%{_mingw64_mandir}/man1/g++.1*
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/
%if %{include_java}
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/java/
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/javax/
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/gcj/
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/gnu/
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/org/
%exclude %{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/sun/
%endif
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libstdc++.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libstdc++.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libsupc++.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libvtv.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libvtv.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libvtv_stubs.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libvtv_stubs.dll.a
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/cc1plus.exe

%files -n mingw64-libstdc++6
%defattr(-,root,root)
%{_mingw64_bindir}/libstdc++-6.dll

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

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

%if %{include_java}
%files java
%defattr(-,root,root)
%{_mingw64_bindir}/aot-compile
%{_mingw64_bindir}/rebuild-gcj-db
%{_mingw64_bindir}/gappletviewer.exe
%{_mingw64_bindir}/gc-analyze.exe
%{_mingw64_bindir}/gcj.exe
%exclude %{_mingw64_bindir}/%{_mingw64_target}-gcj.exe
%{_mingw64_bindir}/gcj-dbtool.exe
%{_mingw64_bindir}/gcjh.exe
%{_mingw64_bindir}/gij.exe
%{_mingw64_bindir}/gjar.exe
%{_mingw64_bindir}/gjarsigner.exe
%{_mingw64_bindir}/gjavah.exe
%{_mingw64_bindir}/gkeytool.exe
%{_mingw64_bindir}/gnative2ascii.exe
%{_mingw64_bindir}/gorbd.exe
%{_mingw64_bindir}/grmic.exe
%{_mingw64_bindir}/grmid.exe
%{_mingw64_bindir}/grmiregistry.exe
%{_mingw64_bindir}/gserialver.exe
%{_mingw64_bindir}/gtnameserv.exe
%{_mingw64_bindir}/jcf-dump.exe
%{_mingw64_bindir}/jv-convert.exe
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/jc1.exe
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/jvgenmain.exe
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/ecj.jar
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/ecj1.exe
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/java/
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/javax/
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/gcj/
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/gnu/
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/org/
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/c++/sun/
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/jni*.h
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/jawt*.h
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/jvmpi.h
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/gcj/libgcj-config.h
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcj-tools.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcj-noncore.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcj.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgcj.spec
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgij.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/gcj-%{version}-*/libjvm.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/gcj-%{version}-*/classmap.db
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/pkgconfig/libgcj-*.pc
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/security/classpath.security
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/*properties
%{_mingw64_mandir}/man1/gappletviewer.1*
%{_mingw64_mandir}/man1/gcjh.1*
%{_mingw64_mandir}/man1/gjar.1*
%{_mingw64_mandir}/man1/gjarsigner.1*
%{_mingw64_mandir}/man1/gjavah.1*
%{_mingw64_mandir}/man1/gjdoc.1*
%{_mingw64_mandir}/man1/gkeytool.1*
%{_mingw64_mandir}/man1/gnative2ascii.1*
%{_mingw64_mandir}/man1/gorbd.1.gz
%{_mingw64_mandir}/man1/grmid.1.gz
%{_mingw64_mandir}/man1/grmiregistry.1.gz
%{_mingw64_mandir}/man1/gserialver.1.gz
%{_mingw64_mandir}/man1/gtnameserv.1.gz
%{_mingw64_mandir}/man1/gc-analyze.1*
%{_mingw64_mandir}/man1/gcj-dbtool.1*
%{_mingw64_mandir}/man1/gcj.1*
%{_mingw64_mandir}/man1/gij.1*
%{_mingw64_mandir}/man1/grmic.1*
%{_mingw64_mandir}/man1/jcf-dump.1*
%{_mingw64_mandir}/man1/jv-convert.1*
%{_mingw64_mandir}/man1/aot-compile.1*
%{_mingw64_mandir}/man1/rebuild-gcj-db.1*
%{_mingw64_infodir}/gcj.info*
%{_mingw64_infodir}/cp-tools.info*

%files -n mingw64-libgcj
%defattr(-,root,root)
%{_mingw64_bindir}/libgcj-*.dll
%{_mingw64_bindir}/libgcj-noncore-*.dll
%{_mingw64_bindir}/libgcj-tools-*.dll
%{_mingw64_bindir}/libgij-*.dll
%{_mingw64_bindir}/libjvm.dll

%files -n mingw64-libgcj-jar
%defattr(-,root,root)
%{_mingw64_datadir}/java/libgcj*.jar

%endif

%files fortran
%defattr(-,root,root)
%{_mingw64_bindir}/gfortran.exe
%exclude %{_mingw64_bindir}/%{_mingw64_target}-gfortran.exe
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgfortran.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgfortran.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgfortranbegin.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libgfortran.spec
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libquadmath.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libquadmath.dll.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/finclude/ieee_arithmetic.mod
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/finclude/ieee_exceptions.mod
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/finclude/ieee_features.mod
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/f951.exe
%{_mingw64_mandir}/man1/gfortran.1*
%{_mingw64_infodir}/libquadmath.info.gz
%{_mingw64_infodir}/gfortran.info*

%files -n mingw64-libgfortran3
%defattr(-,root,root)
%{_mingw64_bindir}/libgfortran-3.dll

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

%files objc
%defattr(-,root,root)
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/include/objc
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libobjc.a
%{_mingw64_libdir}/gcc/%{_mingw64_target}/%{version}/libobjc.dll.a
%{_mingw64_libexecdir}/gcc/%{_mingw64_target}/%{version}/cc1obj*.exe

%files -n mingw64-libobjc4
%defattr(-,root,root)
%{_mingw64_bindir}/libobjc-4.dll

%changelog