Blame SPECS/qt5-qtscript.spec

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