6a33d8
6a33d8
## uncomment to enable bootstrap mode
6a33d8
#global bootstrap 1
6a33d8
6a33d8
## currently includes no tests
6a33d8
%if !0%{?bootstrap}
6a33d8
# skip slower archs for now
e99658
%ifnarch %{arm}
6a33d8
%global tests 1
6a33d8
%endif
6a33d8
%endif
6a33d8
6a33d8
%global qt_module qtscript
6a33d8
e99658
%global build_tests 1
e99658
6a33d8
Summary: Qt5 - QtScript component
6a33d8
Name:    qt5-%{qt_module}
3b0b22
Version: 5.15.3
3b0b22
Release: 1%{?dist}
6a33d8
6a33d8
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
6a33d8
License: LGPLv2 with exceptions or GPLv3 with exceptions
6a33d8
Url:     http://www.qt.io
6a33d8
%global majmin %(echo %{version} | cut -d. -f1-2)
3b0b22
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
6a33d8
6a33d8
# add s390(x0 support to Platform.h (taken from webkit)
e99658
Patch100: qtscript-everywhere-src-5.12.1-s390.patch
6a33d8
6a33d8
BuildRequires: gcc-c++
6a33d8
BuildRequires: qt5-qtbase-devel
6a33d8
BuildRequires: qt5-qtbase-private-devel
6a33d8
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
6a33d8
6a33d8
%if ! 0%{?bootstrap}
6a33d8
# extra examples
6a33d8
BuildRequires: pkgconfig(Qt5UiTools)
6a33d8
%endif
6a33d8
6a33d8
%if 0%{?tests}
6a33d8
BuildRequires: dbus-x11
6a33d8
BuildRequires: mesa-dri-drivers
6a33d8
BuildRequires: time
6a33d8
BuildRequires: xorg-x11-server-Xvfb
6a33d8
%endif
6a33d8
6a33d8
%description
6a33d8
%{summary}.
6a33d8
6a33d8
%package devel
6a33d8
Summary: Development files for %{name}
6a33d8
Provides: %{name}-private-devel = %{version}-%{release}
6a33d8
Requires: %{name}%{?_isa} = %{version}-%{release}
6a33d8
Requires: qt5-qtbase-devel%{?_isa}
6a33d8
%description devel
6a33d8
%{summary}.
6a33d8
6a33d8
%package examples
6a33d8
Summary: Programming examples for %{name}
6a33d8
Requires: %{name}%{?_isa} = %{version}-%{release}
6a33d8
%description examples
6a33d8
%{summary}.
6a33d8
e99658
%if 0%{?build_tests}
e99658
%package tests
e99658
Summary: Unit tests for %{name}
e99658
Requires: %{name}%{?_isa} = %{version}-%{release}
6a33d8
e99658
%description tests
e99658
%{summary}.
e99658
%endif
6a33d8
e99658
%prep
e99658
%autosetup -n %{qt_module}-everywhere-src-%{version} -p1
6a33d8
6a33d8
6a33d8
%build
6a33d8
# workaround serious failures when building with f28's gcc8
6a33d8
# https://bugzilla.redhat.com/show_bug.cgi?id=1551246
6a33d8
%if 0%{?fedora} > 27
6a33d8
export CXXFLAGS="$RPM_OPT_FLAGS -O1"
6a33d8
%endif
6a33d8
6a33d8
%qmake_qt5
6a33d8
6a33d8
%make_build
6a33d8
e99658
%if 0%{?build_tests}
e99658
make sub-tests %{?_smp_mflags} -k ||:
e99658
%endif
6a33d8
6a33d8
%install
6a33d8
%make_install INSTALL_ROOT=%{buildroot}
6a33d8
e99658
%if 0%{?build_tests}
e99658
# Install tests for gating
e99658
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
e99658
find ./tests -not -path '*/\.*' -type d | while read LINE
e99658
do
e99658
    mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
e99658
done
e99658
find ./tests -not -path '*/\.*' -not -name '*.h' -not -name '*.cpp' -not -name '*.pro' -not -name 'uic_wrapper.sh' -not -name 'Makefile' -not -name 'target_wrapper.sh' -type f | while read LINE
e99658
do
e99658
    cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
e99658
done
e99658
%endif
e99658
6a33d8
## .prl file love (maybe consider just deleting these -- rex
6a33d8
# nuke dangling reference(s) to %%buildroot, excessive (.la-like) libs
6a33d8
sed -i \
6a33d8
  -e "/^QMAKE_PRL_BUILD_DIR/d" \
6a33d8
  -e "/^QMAKE_PRL_LIBS/d" \
6a33d8
  %{buildroot}%{_qt5_libdir}/*.prl
6a33d8
6a33d8
## unpackaged files
6a33d8
# .la files, die, die, die.
6a33d8
rm -fv %{buildroot}%{_qt5_libdir}/lib*.la
6a33d8
6a33d8
6a33d8
%check
6a33d8
%if 0%{?tests}
6a33d8
export CTEST_OUTPUT_ON_FAILURE=1
6a33d8
export PATH=%{buildroot}%{_qt5_bindir}:$PATH
6a33d8
export LD_LIBRARY_PATH=%{buildroot}%{_qt5_libdir}
6a33d8
## do in %%build ?
6a33d8
%make_build -k sub-tests-all ||:
6a33d8
timeout 180 \
6a33d8
xvfb-run -a \
6a33d8
time \
6a33d8
%make_build check -k -C tests ||:
6a33d8
if [ "$?" -eq "124" ]; then
6a33d8
echo 'make check timeout reached!'
6a33d8
exit 1
6a33d8
fi
6a33d8
%endif
6a33d8
6a33d8
6a33d8
%ldconfig_scriptlets
6a33d8
6a33d8
%files
6a33d8
%license LICENSE.LGPL*
6a33d8
%{_qt5_libdir}/libQt5Script.so.5*
6a33d8
%{_qt5_libdir}/libQt5ScriptTools.so.5*
6a33d8
6a33d8
%files devel
6a33d8
%{_qt5_headerdir}/Qt*/
6a33d8
%{_qt5_libdir}/libQt5Script.so
6a33d8
%{_qt5_libdir}/libQt5Script.prl
6a33d8
%{_qt5_libdir}/libQt5ScriptTools.so
6a33d8
%{_qt5_libdir}/libQt5ScriptTools.prl
6a33d8
%dir %{_qt5_libdir}/cmake/Qt5Script/
6a33d8
%{_qt5_libdir}/cmake/Qt5Script/Qt5ScriptConfig*.cmake
6a33d8
%dir %{_qt5_libdir}/cmake/Qt5ScriptTools/
6a33d8
%{_qt5_libdir}/cmake/Qt5ScriptTools/Qt5ScriptToolsConfig*.cmake
6a33d8
%{_qt5_libdir}/pkgconfig/Qt5*.pc
6a33d8
%{_qt5_archdatadir}/mkspecs/modules/*.pri
6a33d8
6a33d8
%files examples
6a33d8
%{_qt5_examplesdir}/
6a33d8
e99658
%if 0%{?build_tests}
e99658
%files tests
e99658
%{_qt5_libdir}/qt5/tests
e99658
%endif
6a33d8
6a33d8
%changelog
3b0b22
* Mon Mar 28 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.3-1
3b0b22
- 5.15.3
3b0b22
  Resolves: bz#2061400
3b0b22
9367f0
* Wed Apr 28 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-2
9367f0
- Rebuild (binutils)
9367f0
  Resolves: bz#1930051
9367f0
9367f0
* Sun Apr 04 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
9367f0
- 5.15.2
9367f0
  Resolves: bz#1930051
9367f0
e99658
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
e99658
- 5.12.5
e99658
  Resolves: bz#1733147
e99658
6a33d8
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
6a33d8
- Rebuild to fix CET notes
6a33d8
  Resolves: bz#1657247
6a33d8
6a33d8
* Tue Jul 03 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-1
6a33d8
- 5.11.1
6a33d8
6a33d8
* Tue Jun 05 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-4
6a33d8
- use timeout to avoid hanging tests and disable tests on aarch64
6a33d8
6a33d8
* Mon Mar 05 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.1-3
6a33d8
- support %%bootstrap, %%check: add autotests
6a33d8
- build with -O1 to workaround serious autotest/code failures (f28+, #1551246)
6a33d8
6a33d8
* Mon Mar 05 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.1-2
6a33d8
- BR: gcc-c++, use %%make_build %%make_install %%ldconfig_scriptlets
6a33d8
6a33d8
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-1
6a33d8
- 5.10.1
6a33d8
6a33d8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 5.10.0-2
6a33d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6a33d8
6a33d8
* Tue Dec 19 2017 Jan Grulich <jgrulich@redhat.com> - 5.10.0-1
6a33d8
- 5.10.0
6a33d8
6a33d8
* Thu Nov 23 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.3-1
6a33d8
- 5.9.3
6a33d8
6a33d8
* Mon Oct 09 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
6a33d8
- 5.9.2
6a33d8
6a33d8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-3
6a33d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6a33d8
6a33d8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
6a33d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6a33d8
6a33d8
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.1-1
6a33d8
- 5.9.1
6a33d8
6a33d8
* Fri Jun 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
6a33d8
- drop shadow/out-of-tree builds (#1456211,QTBUG-37417)
6a33d8
6a33d8
* Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
6a33d8
- Upstream official release
6a33d8
6a33d8
* Fri May 26 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.1.rc
6a33d8
- Upstream Release Candidate retagged
6a33d8
6a33d8
* Tue May 09 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.3
6a33d8
- Upstream beta 3
6a33d8
6a33d8
* Mon Apr 03 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.8.0-2
6a33d8
- build docs on all archs
6a33d8
6a33d8
* Mon Jan 30 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
6a33d8
- new upstream version
6a33d8
6a33d8
* Sat Dec 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.1-2
6a33d8
- 5.7.1 dec5 snapshot
6a33d8
6a33d8
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
6a33d8
- New upstream version
6a33d8
6a33d8
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
6a33d8
- Compiled with gcc
6a33d8
6a33d8
* Tue Jun 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
6a33d8
- Qt 5.7.0 release
6a33d8
6a33d8
* Thu Jun 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-0.1
6a33d8
- Prepare 5.7.0 release
6a33d8
6a33d8
* Sun Apr 17 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-4
6a33d8
- BR: qt5-qtbase-private-devel, -devel: Provides: private-devel
6a33d8
6a33d8
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
6a33d8
- rebuild
6a33d8
6a33d8
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
6a33d8
- rebuild
6a33d8
6a33d8
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
6a33d8
- 5.6.0 final release
6a33d8
6a33d8
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.9.rc
6a33d8
- Update to final RC
6a33d8
6a33d8
* Sun Feb 21 2016 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.8.rc
6a33d8
- rebuild
6a33d8
6a33d8
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7
6a33d8
- Update RC release
6a33d8
6a33d8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.beta
6a33d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6a33d8
6a33d8
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.beta
6a33d8
- update source URL, use %%license, BR: cmake
6a33d8
6a33d8
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4
6a33d8
- Update to final beta release
6a33d8
6a33d8
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
6a33d8
- Official beta release
6a33d8
6a33d8
* Mon Dec 07 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2
6a33d8
- (re)add bootstrap macro support
6a33d8
6a33d8
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
6a33d8
- Start to implement 5.6.0 beta
6a33d8
6a33d8
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
6a33d8
- Update to final release 5.5.1
6a33d8
6a33d8
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
6a33d8
- Update to Qt 5.5.1 RC1
6a33d8
6a33d8
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
6a33d8
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
6a33d8
6a33d8
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
6a33d8
- tighten qtbase dep (#1233829), .spec cosmetics
6a33d8
6a33d8
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
6a33d8
- New final upstream release Qt 5.5.0
6a33d8
6a33d8
* Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
6a33d8
- Update for official RC1 released packages
6a33d8
6a33d8
* Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
6a33d8
- Qt 5.5.0 RC1
6a33d8
6a33d8
* Thu Jun 04 2015 Jan Grulich <jgrulich@redhat.com> - 5.4.2-1
6a33d8
- 5.4.2
6a33d8
6a33d8
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 5.4.1-3
6a33d8
- Rebuilt for GCC 5 C++11 ABI change
6a33d8
6a33d8
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> - 5.4.1-2
6a33d8
- rebuild (gcc5)
6a33d8
6a33d8
* Tue Feb 24 2015 Jan Grulich <jgrulich@redhat.com> 5.4.1-1
6a33d8
- 5.4.1
6a33d8
6a33d8
* Mon Feb 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-2
6a33d8
- rebuild (gcc5)
6a33d8
6a33d8
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
6a33d8
- 5.4.0 (final)
6a33d8
6a33d8
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
6a33d8
- 5.4.0-rc
6a33d8
6a33d8
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
6a33d8
- out-of-tree build, use %%qmake_qt5, support %%docs macro
6a33d8
6a33d8
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
6a33d8
- 5.4.0-beta
6a33d8
6a33d8
* Tue Sep 16 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.2-1
6a33d8
- 5.3.2
6a33d8
6a33d8
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
6a33d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6a33d8
6a33d8
* Tue Jun 17 2014 Jan Grulich <jgrulich@redhat.com> - 5.3.1-1
6a33d8
- 5.3.1
6a33d8
6a33d8
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
6a33d8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6a33d8
6a33d8
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
6a33d8
- 5.3.0
6a33d8
6a33d8
* Wed Feb 05 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
6a33d8
- 5.2.1
6a33d8
6a33d8
* Sun Feb 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-3
6a33d8
- Add AArch64 support to qtscript (#1056071)
6a33d8
6a33d8
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
6a33d8
- -examples subpkg
6a33d8
- -doc for all archs
6a33d8
6a33d8
* Thu Dec 12 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
6a33d8
- 5.2.0
6a33d8
6a33d8
* Mon Dec 02 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.10.rc1
6a33d8
- 5.2.0-rc1
6a33d8
6a33d8
* Mon Nov 25 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.5.beta1
6a33d8
- enable -doc only on primary archs (allow secondary bootstrap)
6a33d8
6a33d8
* Sun Nov 10 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.4.beta1
6a33d8
- rebuild (arm/qreal)
6a33d8
6a33d8
* Thu Oct 24 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.3.beta1
6a33d8
- 5.2.0-beta1
6a33d8
6a33d8
* Wed Oct 16 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.2.alpha
6a33d8
- bootstrap ppc
6a33d8
6a33d8
* Tue Oct 01 2013 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-0.1.alpha
6a33d8
- 5.2.0-alpha
6a33d8
- -doc subpkg
6a33d8
6a33d8
* Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.1.1-1
6a33d8
- 5.1.1
6a33d8
6a33d8
* Wed Aug 28 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-2
6a33d8
- update Source URL
6a33d8
- %%doc LGPL_EXCEPTION.txt LICENSE.GPL LICENSE.LGPL
6a33d8
6a33d8
* Thu Apr 11 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.2-1
6a33d8
- 5.0.2
6a33d8
6a33d8
* Sat Feb 23 2013 Rex Dieter <rdieter@fedoraproject.org> 5.0.1-1
6a33d8
- first try
6a33d8