Sophie

Sophie

distrib > Fedora > 18 > i386 > by-pkgid > 00f94ec5556541ab1ad9bd0029a7ffb4 > files > 1

mingw-qt5-qt3d-5.0.0-0.5.git20130510.0158ce78.fc18.src.rpm

%?mingw_package_header

%global qt_module qt3d
#%%global pre beta1

%global snapshot_date 20130510
%global snapshot_rev 0158ce78

%if 0%{?snapshot_date}
%global source_folder qt-%{qt_module}
%else
%global source_folder %{qt_module}-opensource-src-%{version}%{?pre:-%{pre}}
%endif

Name:           mingw-qt5-%{qt_module}
Version:        5.0.0
Release:        0.5%{?pre:.%{pre}}%{?snapshot_date:.git%{snapshot_date}.%{snapshot_rev}}%{?dist}
Summary:        Qt5 for Windows - Qt3d component

License:        GPLv3 with exceptions or LGPLv2 with exceptions
Group:          Development/Libraries
URL:            http://www.qtsoftware.com/

%if 0%{?snapshot_date}
# To regenerate:
# wget http://qt.gitorious.org/qt/%{qt_module}/archive-tarball/%{snapshot_rev} -O qt5-%{qt_module}-%{snapshot_rev}.tar.gz
Source0:        qt5-%{qt_module}-%{snapshot_rev}.tar.gz
%else
Source0:        http://releases.qt-project.org/qt5/%{version}/submodules_tar/%{qt_module}-opensource-src-%{version}%{?pre:-%{pre}}.tar.xz
%endif

BuildArch:      noarch

BuildRequires:  mingw32-filesystem >= 96
BuildRequires:  mingw32-gcc-c++
BuildRequires:  mingw32-qt5-qtbase
BuildRequires:  mingw32-qt5-qtdeclarative
BuildRequires:  mingw32-qt5-qtquick1

BuildRequires:  mingw64-filesystem >= 96
BuildRequires:  mingw64-gcc-c++
BuildRequires:  mingw64-qt5-qtbase
BuildRequires:  mingw64-qt5-qtdeclarative
BuildRequires:  mingw64-qt5-qtquick1


%description
This package contains the Qt software toolkit for developing
cross-platform applications.

This is the Windows version of Qt, for use in conjunction with the
Fedora Windows cross-compiler.


# Win32
%package -n mingw32-qt5-%{qt_module}
Summary:        Qt5 for Windows - Qt3d component

%description -n mingw32-qt5-%{qt_module}
This package contains the Qt software toolkit for developing
cross-platform applications.

This is the Windows version of Qt, for use in conjunction with the
Fedora Windows cross-compiler.


# Win64
%package -n mingw64-qt5-%{qt_module}
Summary:        Qt5 for Windows - Qt3d component

%description -n mingw64-qt5-%{qt_module}
This package contains the Qt software toolkit for developing
cross-platform applications.

This is the Windows version of Qt, for use in conjunction with the
Fedora Windows cross-compiler.


%?mingw_debug_package


%prep
%setup -q -n %{source_folder}

%if 0%{?snapshot_date}
# Make sure the syncqt tool is run because we're using a git snapshot
# Otherwise the build fails against Qt 5.1
mkdir .git
%endif


%build
%mingw_qmake_qt5 ../%{qt_module}.pro
%mingw_make %{?_smp_mflags}


%install
%mingw_make install INSTALL_ROOT=$RPM_BUILD_ROOT

# .prl files aren't interesting for us
find $RPM_BUILD_ROOT -name "*.prl" -delete

# Rename the .a files to .dll.a as they're actually import libraries and not static libraries
for FN in $RPM_BUILD_ROOT%{mingw32_libdir}/*.a $RPM_BUILD_ROOT%{mingw64_libdir}/*.a ; do
    FN_NEW=$(echo $FN | sed s/'.a$'/'.dll.a'/)
    mv $FN $FN_NEW
done

# The .dll's are installed in both %%{mingw32_bindir} and %%{mingw32_libdir}
# One copy of the .dll's is sufficient
rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/*.dll
rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/*.dll


# Win32
%files -n mingw32-qt5-%{qt_module}
%doc LGPL_EXCEPTION.txt LICENSE.FDL LICENSE.LGPL LICENSE.PREVIEW.COMMERCIAL
%{mingw32_bindir}/Qt53D.dll
%{mingw32_bindir}/Qt53DQuick.dll
%{mingw32_bindir}/qglinfo.exe
%{mingw32_includedir}/qt5/Qt3D/
%{mingw32_includedir}/qt5/Qt3DQuick/
%{mingw32_libdir}/libQt53D.dll.a
%{mingw32_libdir}/libQt53DQuick.dll.a
%{mingw32_libdir}/cmake/Qt53D/
%{mingw32_libdir}/cmake/Qt53DQuick/
%{mingw32_libdir}/pkgconfig/Qt53D.pc
%{mingw32_libdir}/pkgconfig/Qt53DQuick.pc
%{mingw32_datadir}/qt5/qml/Qt3D/
%{mingw32_datadir}/qt5/mkspecs/modules/qt_lib_3d.pri
%{mingw32_datadir}/qt5/mkspecs/modules/qt_lib_3dquick.pri

# Win64
%files -n mingw64-qt5-%{qt_module}
%doc LGPL_EXCEPTION.txt LICENSE.FDL LICENSE.LGPL LICENSE.PREVIEW.COMMERCIAL
%{mingw64_bindir}/Qt53D.dll
%{mingw64_bindir}/Qt53DQuick.dll
%{mingw64_bindir}/qglinfo.exe
%{mingw64_includedir}/qt5/Qt3D/
%{mingw64_includedir}/qt5/Qt3DQuick/
%{mingw64_libdir}/libQt53D.dll.a
%{mingw64_libdir}/libQt53DQuick.dll.a
%{mingw64_libdir}/cmake/Qt53D/
%{mingw64_libdir}/cmake/Qt53DQuick/
%{mingw64_libdir}/pkgconfig/Qt53D.pc
%{mingw64_libdir}/pkgconfig/Qt53DQuick.pc
%{mingw64_datadir}/qt5/qml/Qt3D/
%{mingw64_datadir}/qt5/mkspecs/modules/qt_lib_3d.pri
%{mingw64_datadir}/qt5/mkspecs/modules/qt_lib_3dquick.pri


%changelog
* Thu Jul 18 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.5.git20130510.0158ce78
- Make sure the syncqt tool is run because we're using a git snapshot

* Fri May 10 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.4.git20130510.0158ce78
- Update to 20130510 snapshot (rev 0158ce78)

* Sat Jan 12 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.3.git20121111.e4d3ccac
- Fix filelist

* Sun Nov 11 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.2.beta1.git20121111.e4d3ccac
- Update to 20121111 snapshot (rev e4d3ccac)
- Rebuild against latest mingw-qt5-qtbase
- Dropped pkg-config rename hack as it's unneeded now

* Wed Sep 12 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 5.0.0-0.1.beta1
- Initial release