Blame SPECS/qt5-qtwebchannel.spec

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