Blame SPECS/qt5-qtwebchannel.spec

1f4c96
%global qt_module qtwebchannel
1f4c96
7e7386
%global build_tests 1
7e7386
1f4c96
Summary: Qt5 - WebChannel component
1f4c96
Name:    qt5-%{qt_module}
48faaa
Version: 5.15.3
48faaa
Release: 1%{?dist}
1f4c96
1f4c96
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
1f4c96
License: LGPLv2 with exceptions or GPLv3 with exceptions
1f4c96
Url: http://qt.io
1f4c96
%global majmin %(echo %{version} | cut -d. -f1-2)
48faaa
Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-opensource-src-%{version}.tar.xz
1f4c96
1f4c96
BuildRequires: qt5-qtbase-devel >= %{version}
1f4c96
BuildRequires: qt5-qtbase-private-devel
1f4c96
#libQt5Core.so.5(Qt_5_PRIVATE_API)(64bit)
1f4c96
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
1f4c96
BuildRequires: qt5-qtdeclarative-devel
1f4c96
BuildRequires: qt5-qtwebsockets-devel
1f4c96
1f4c96
%description
1f4c96
The Qt WebChannel module provides a library for seamless integration of C++
1f4c96
and QML applications with HTML/JavaScript clients. Any QObject can be
1f4c96
published to remote clients, where its public API becomes available.
1f4c96
1f4c96
%package devel
1f4c96
Summary: Development files for %{name}
1f4c96
Requires: %{name}%{?_isa} = %{version}-%{release}
1f4c96
Requires: qt5-qtbase-devel%{?_isa}
1f4c96
%description devel
1f4c96
%{summary}.
1f4c96
1f4c96
%package examples
1f4c96
Summary: Programming examples for %{name}
1f4c96
Requires: %{name}%{?_isa} = %{version}-%{release}
1f4c96
%description examples
1f4c96
%{summary}.
1f4c96
7e7386
%if 0%{?build_tests}
7e7386
%package tests
7e7386
Summary: Unit tests for %{name}
7e7386
Requires: %{name}%{?_isa} = %{version}-%{release}
7e7386
7e7386
%description tests
7e7386
%{summary}.
7e7386
%endif
7e7386
7e7386
1f4c96
%prep
1f4c96
%setup -q -n %{qt_module}-everywhere-src-%{version}
1f4c96
1f4c96
1f4c96
%build
1f4c96
%{qmake_qt5}
1f4c96
1f4c96
%make_build
1f4c96
7e7386
%if 0%{?build_tests}
7e7386
make sub-tests %{?_smp_mflags} -k ||:
7e7386
%endif
7e7386
1f4c96
1f4c96
%install
1f4c96
make install INSTALL_ROOT=%{buildroot}
1f4c96
7e7386
%if 0%{?build_tests}
7e7386
# Install tests for gating
7e7386
mkdir -p %{buildroot}%{_qt5_libdir}/qt5
7e7386
find ./tests -not -path '*/\.*' -type d | while read LINE
7e7386
do
7e7386
    mkdir -p "%{buildroot}%{_qt5_libdir}/qt5/$LINE"
7e7386
done
7e7386
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
7e7386
do
7e7386
    cp -r --parents "$LINE" %{buildroot}%{_qt5_libdir}/qt5/
7e7386
done
7e7386
%endif
7e7386
1f4c96
1f4c96
## .prl/.la file love
1f4c96
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
1f4c96
pushd %{buildroot}%{_qt5_libdir}
1f4c96
for prl_file in libQt5*.prl ; do
1f4c96
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
1f4c96
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
1f4c96
    rm -fv "$(basename ${prl_file} .prl).la"
1f4c96
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
1f4c96
  fi
1f4c96
done
1f4c96
popd
1f4c96
1f4c96
1f4c96
%ldconfig_scriptlets
1f4c96
1f4c96
%files
1f4c96
%license LICENSE.*
1f4c96
%{_qt5_libdir}/libQt5WebChannel.so.5*
1f4c96
%{_qt5_archdatadir}/qml/QtWebChannel/
1f4c96
1f4c96
%files devel
1f4c96
%{_qt5_headerdir}/QtWebChannel/
1f4c96
%{_qt5_libdir}/libQt5WebChannel.so
1f4c96
%{_qt5_libdir}/libQt5WebChannel.prl
1f4c96
%dir %{_qt5_libdir}/cmake/Qt5WebChannel/
1f4c96
%{_qt5_libdir}/cmake/Qt5WebChannel/Qt5WebChannelConfig*.cmake
1f4c96
%{_qt5_libdir}/pkgconfig/Qt5WebChannel.pc
1f4c96
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_webchannel*.pri
1f4c96
1f4c96
%if 0%{?_qt5_examplesdir:1}
1f4c96
%files examples
1f4c96
%{_qt5_examplesdir}/
1f4c96
%endif
1f4c96
7e7386
%if 0%{?build_tests}
7e7386
%files tests
7e7386
%{_qt5_libdir}/qt5/tests
7e7386
%endif
1f4c96
1f4c96
%changelog
48faaa
* Mon Mar 28 2022 Jan Grulich <jgrulich@redhat.com> - 5.15.3-1
48faaa
- 5.15.3
48faaa
  Resolves: bz#2061409
48faaa
278fc4
* Wed Apr 28 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-2
278fc4
- Rebuild (binutils)
278fc4
  Resolves: bz#1930059
278fc4
278fc4
* Mon Apr 05 2021 Jan Grulich <jgrulich@redhat.com> - 5.15.2-1
278fc4
- 5.15.2
278fc4
  Resolves: bz#1930059
278fc4
7e7386
* Mon Nov 18 2019 Jan Grulich <jgrulich@redhat.com> - 5.12.5-1
7e7386
- 5.12.5
7e7386
  Resolves: bz#1733155
7e7386
1f4c96
* Mon Dec 10 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-2
1f4c96
- Rebuild to fix CET notes
1f4c96
  Resolves: bz#1657242
1f4c96
1f4c96
* Tue Jul 03 2018 Jan Grulich <jgrulich@redhat.com> - 5.11.1-1
1f4c96
- 5.11.1
1f4c96
1f4c96
* Wed Feb 14 2018 Jan Grulich <jgrulich@redhat.com> - 5.10.1-1
1f4c96
- 5.10.1
1f4c96
1f4c96
* Tue Feb 06 2018 Rex Dieter <rdieter@fedoraproject.org> - 5.10.0-2
1f4c96
- add versioned dep on qt5-qtbase due to private api usage
1f4c96
1f4c96
* Tue Dec 19 2017 Jan Grulich <jgrulich@redhat.com> - 5.10.0-1
1f4c96
- 5.10.0
1f4c96
1f4c96
* Thu Nov 23 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.3-1
1f4c96
- 5.9.3
1f4c96
1f4c96
* Mon Oct 09 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
1f4c96
- 5.9.2
1f4c96
1f4c96
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-3
1f4c96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1f4c96
1f4c96
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.1-2
1f4c96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
1f4c96
1f4c96
* Wed Jul 19 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.1-1
1f4c96
- 5.9.1
1f4c96
1f4c96
* Fri Jun 16 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
1f4c96
- drop shadow/out-of-tree builds (#1456211,QTBUG-37417)
1f4c96
- refer to other qt5- builddeps directly
1f4c96
1f4c96
* Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
1f4c96
- Upstream official release
1f4c96
1f4c96
* Fri May 26 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.1.rc
1f4c96
- Upstream Release Candidate retagged
1f4c96
1f4c96
* Tue May 09 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.3
1f4c96
- Upstream beta 3
1f4c96
1f4c96
* Mon Jan 30 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
1f4c96
- New upstream version
1f4c96
1f4c96
* Sat Dec 10 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.7.1-2
1f4c96
- drop BR: cmake (handled by qt5-rpm-macros now)
1f4c96
- 5.7.1 dec5 snapshot
1f4c96
1f4c96
* Wed Nov 09 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.1-1
1f4c96
- New upstream version
1f4c96
1f4c96
* Mon Jul 04 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-2
1f4c96
- Compiled with gcc
1f4c96
1f4c96
* Wed Jun 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.7.0-1
1f4c96
- Qt 5.7.0 release
1f4c96
1f4c96
* Thu Jun 09 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
1f4c96
- Update to 5.6.1
1f4c96
1f4c96
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
1f4c96
- rebuild
1f4c96
1f4c96
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
1f4c96
- rebuild
1f4c96
1f4c96
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
1f4c96
- 5.6.0 final release
1f4c96
1f4c96
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc
1f4c96
- Update to final RC
1f4c96
1f4c96
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7
1f4c96
- Update RC release
1f4c96
1f4c96
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.rc
1f4c96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
1f4c96
1f4c96
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.rc
1f4c96
- update source URL, use %%license, BR: cmake
1f4c96
1f4c96
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4
1f4c96
- Update to final rc release
1f4c96
1f4c96
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
1f4c96
- Official rc release
1f4c96
1f4c96
* Sun Dec 06 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2
1f4c96
- restore bootstrap macro support
1f4c96
1f4c96
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
1f4c96
- Start to implement 5.6.0 rc
1f4c96
1f4c96
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
1f4c96
- Update for final qt 5.5.1
1f4c96
1f4c96
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
1f4c96
- Update to Qt 5.5.1 RC1
1f4c96
1f4c96
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
1f4c96
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
1f4c96
1f4c96
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
1f4c96
- tighten qtbase dep (#1233829)
1f4c96
1f4c96
* Thu Jul 09 2015 Jan Grulich <jgrulich@redhat.com> - 5.5.0-1
1f4c96
- 5.5.0
1f4c96
1f4c96
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.2-2
1f4c96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1f4c96
1f4c96
* Sun Jun 07 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-1
1f4c96
- 5.4.2
1f4c96
1f4c96
* Tue Dec 23 2014 Taylor Braun-Jones <taylor.braun-jones@ge.com> - 5.4.0-1
1f4c96
- Initial release.