Initial import (#1354373)
This commit is contained in:
parent
7d69756c21
commit
4ce996fae0
33
macros.qt5
Normal file
33
macros.qt5
Normal file
@ -0,0 +1,33 @@
|
||||
%_qt5_prefix %{_libdir}/qt5
|
||||
%_qt5_archdatadir %{_qt5_prefix}
|
||||
%_qt5_bindir %{_qt5_prefix}/bin
|
||||
%_qt5_datadir %{_datadir}/qt5
|
||||
%_qt5_docdir %{_docdir}/qt5
|
||||
%_qt5_examplesdir %{_qt5_prefix}/examples
|
||||
%_qt5_headerdir %{_includedir}/qt5
|
||||
%_qt5_includedir %{_includedir}/qt5
|
||||
%_qt5_importdir %{_qt5_archdatadir}/imports
|
||||
%_qt5_libdir %{_libdir}
|
||||
%_qt5_libexecdir %{_qt5_archdatadir}/libexec
|
||||
%_qt5_plugindir %{_qt5_archdatadir}/plugins
|
||||
%_qt5_qmldir %{_qt5_archdatadir}/qml
|
||||
%_qt5_qmake %{_qt5_bindir}/qmake
|
||||
%_qt5_settingsdir %{_sysconfdir}/xdg
|
||||
%_qt5_sysconfdir %{_qt5_settingsdir}
|
||||
%_qt5_translationdir %{_datadir}/qt5/translations
|
||||
|
||||
%_qt5_cflags %{nil}
|
||||
%_qt5_cxxflags %{nil}
|
||||
%_qt5_ldflags %{nil}%{?__global_ldflags}
|
||||
%_qt5_optflags %{optflags} -fno-delete-null-pointer-checks
|
||||
|
||||
%_qt5_qmake_flags \\\
|
||||
QMAKE_CFLAGS_DEBUG="${CFLAGS:-%{_qt5_optflags} %{?_qt5_cflags}}" \\\
|
||||
QMAKE_CFLAGS_RELEASE="${CFLAGS:-%{_qt5_optflags} %{?_qt5_cflags}}" \\\
|
||||
QMAKE_CXXFLAGS_DEBUG="${CXXFLAGS:-%{_qt5_optflags} %{?_qt5_cxxflags}}" \\\
|
||||
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS:-%{_qt5_optflags} %{?_qt5_cxxflags}}" \\\
|
||||
QMAKE_LFLAGS_DEBUG="${LDFLAGS:-%{_qt5_ldflags}}" \\\
|
||||
QMAKE_LFLAGS_RELEASE="${LDFLAGS:-%{_qt5_ldflags}}" \\\
|
||||
QMAKE_STRIP=
|
||||
|
||||
%qmake_qt5 %{_qt5_qmake} %{?_qt5_qmake_flags}
|
130
qt5.spec
Normal file
130
qt5.spec
Normal file
@ -0,0 +1,130 @@
|
||||
Name: qt5
|
||||
Version: 5.7.0
|
||||
Release: 6%{?dist}
|
||||
Summary: Qt5 meta package
|
||||
License: GPLv3
|
||||
URL: https://getfedora.org/
|
||||
Source0: macros.qt5
|
||||
BuildArch: noarch
|
||||
Requires: qt5-gstreamer
|
||||
Requires: qt5-qdbusviewer
|
||||
Requires: qt5-qt3d
|
||||
Requires: qt5-qtaccountsservice
|
||||
Requires: qt5-qtbase
|
||||
Requires: qt5-qtbase-gui
|
||||
Requires: qt5-qtbase-mysql
|
||||
Requires: qt5-qtbase-postgresql
|
||||
Requires: qt5-qtconfiguration
|
||||
Requires: qt5-qtconnectivity
|
||||
Requires: qt5-qtdeclarative
|
||||
Requires: qt5-qtdoc
|
||||
Requires: qt5-qtgraphicaleffects
|
||||
Requires: qt5-qtimageformats
|
||||
Requires: qt5-qtlocation
|
||||
Requires: qt5-qtmultimedia
|
||||
Requires: qt5-qtquickcontrols
|
||||
Requires: qt5-qtquickcontrols2
|
||||
Requires: qt5-qtscript
|
||||
Requires: qt5-qtsensors
|
||||
Requires: qt5-qtserialport
|
||||
Requires: qt5-qtsvg
|
||||
Requires: qt5-qttools
|
||||
Requires: qt5-qtwayland
|
||||
Requires: qt5-qtwebchannel
|
||||
Requires: qt5-qtwebengine
|
||||
Requires: qt5-qtwebkit
|
||||
Requires: qt5-qtwebsockets
|
||||
Requires: qt5-qtx11extras
|
||||
Requires: qt5-qtxmlpatterns
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Qt5 meta devel package
|
||||
Requires: qt5-rpm-macros
|
||||
Requires: qt5-qttools-static
|
||||
Requires: qt5-qtdeclarative-static
|
||||
Requires: qt5-qtbase-static
|
||||
Requires: qt5-designer
|
||||
Requires: qt5-qdoc
|
||||
Requires: qt5-qhelpgenerator
|
||||
Requires: qt5-linguist
|
||||
Requires: qt5-gstreamer-devel
|
||||
Requires: qt5-qt3d-devel
|
||||
Requires: qt5-qtaccountsservice-devel
|
||||
Requires: qt5-qtbase-devel
|
||||
Requires: qt5-qtconfiguration-devel
|
||||
Requires: qt5-qtconnectivity-devel
|
||||
Requires: qt5-qtdeclarative-devel
|
||||
Requires: qt5-qtenginio-devel
|
||||
Requires: qt5-qtlocation-devel
|
||||
Requires: qt5-qtmultimedia-devel
|
||||
Requires: qt5-qtscript-devel
|
||||
Requires: qt5-qtsensors-devel
|
||||
Requires: qt5-qtserialport-devel
|
||||
Requires: qt5-qtsvg-devel
|
||||
Requires: qt5-qttools-devel
|
||||
Requires: qt5-qtwayland-devel
|
||||
Requires: qt5-qtwebchannel-devel
|
||||
Requires: qt5-qtwebengine-devel
|
||||
Requires: qt5-qtwebkit-devel
|
||||
Requires: qt5-qtwebsockets-devel
|
||||
Requires: qt5-qtx11extras-devel
|
||||
Requires: qt5-qtxmlpatterns-devel
|
||||
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
%package rpm-macros
|
||||
Summary: Qt5 RPM macros for KDE Frameworks 5
|
||||
Conflicts: qt5-qtbase-devel < 5.6.0-0.23
|
||||
%if 0%{?fedora}
|
||||
Requires: cmake >= 3
|
||||
%endif
|
||||
%if 0%{?rhel}
|
||||
Requires: cmake3
|
||||
%endif
|
||||
|
||||
|
||||
%description rpm-macros
|
||||
RPM macros for building KDE Frameworks 5 packages.
|
||||
|
||||
%install
|
||||
install -Dpm644 %{_sourcedir}/macros.qt5 %{buildroot}%{_rpmconfigdir}/macros.d/macros.qt5
|
||||
|
||||
mkdir -p %{buildroot}%{_docdir}/qt5
|
||||
mkdir -p %{buildroot}%{_docdir}/qt5-devel
|
||||
echo "- Qt5 meta package" > %{buildroot}%{_docdir}/qt5/README
|
||||
echo "- Qt5 devel meta package" > %{buildroot}%{_docdir}/qt5-devel/README
|
||||
|
||||
%files
|
||||
%{_docdir}/qt5/README
|
||||
|
||||
%files devel
|
||||
%{_docdir}/qt5-devel/README
|
||||
|
||||
%files rpm-macros
|
||||
%{_rpmconfigdir}/macros.d/macros.qt5
|
||||
|
||||
%changelog
|
||||
* Tue Jul 12 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-6
|
||||
- Fix macros with invalid substitutions.
|
||||
|
||||
* Wed Jul 06 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-5
|
||||
- Fix typo. Thanks to Diego Herrera.
|
||||
- Add macro qt5_includedir as more logical than headerdir. Old one still available
|
||||
|
||||
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-4
|
||||
- Clang is not default anymore. End of experimentation phase
|
||||
|
||||
* Wed Jun 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-3
|
||||
- Move package to be qt5 and create meta packages
|
||||
- Add new macro for qml dir
|
||||
|
||||
* Mon Jun 13 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
|
||||
- Test repositories using clang by default
|
||||
|
||||
|
||||
* Thu Jun 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
|
||||
- Decouple macros from main qtbase package
|
Loading…
Reference in New Issue
Block a user