Blame SPECS/qt5-qtwebchannel.spec

559d65
%global qt_module qtwebchannel
559d65
559d65
%define docs 1
559d65
559d65
Summary: Qt5 - WebChannel component
559d65
Name:    qt5-%{qt_module}
559d65
Version: 5.9.2
559d65
Release: 1%{?dist}
559d65
559d65
# See LICENSE.GPL LICENSE.LGPL LGPL_EXCEPTION.txt, for details
559d65
License: LGPLv2 with exceptions or GPLv3 with exceptions
559d65
Url: http://qt.io
559d65
Source0: http://download.qt.io/official_releases/qt/5.9/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
559d65
559d65
BuildRequires: qt5-qtbase-devel >= %{version}
559d65
BuildRequires: qt5-qtdeclarative-devel
559d65
BuildRequires: qt5-qtwebsockets-devel
559d65
559d65
%description
559d65
The Qt WebChannel module provides a library for seamless integration of C++
559d65
and QML applications with HTML/JavaScript clients. Any QObject can be
559d65
published to remote clients, where its public API becomes available.
559d65
559d65
%package devel
559d65
Summary: Development files for %{name}
559d65
Requires: %{name}%{?_isa} = %{version}-%{release}
559d65
Requires: qt5-qtbase-devel%{?_isa}
559d65
%description devel
559d65
%{summary}.
559d65
559d65
%if 0%{?docs}
559d65
%package doc
559d65
Summary: API documentation for %{name}
559d65
License: GFDL
559d65
Requires: %{name} = %{version}-%{release}
559d65
BuildRequires: qt5-qdoc
559d65
BuildRequires: qt5-qhelpgenerator
559d65
BuildArch: noarch
559d65
%description doc
559d65
%{summary}.
559d65
%endif
559d65
559d65
%package examples
559d65
Summary: Programming examples for %{name}
559d65
Requires: %{name}%{?_isa} = %{version}-%{release}
559d65
%description examples
559d65
%{summary}.
559d65
559d65
559d65
%prep
559d65
%setup -q -n %{qt_module}-opensource-src-%{version}
559d65
559d65
559d65
%build
559d65
%{qmake_qt5}
559d65
559d65
make %{?_smp_mflags}
559d65
559d65
%if 0%{?docs}
559d65
# HACK to avoid multilib conflicts in noarch content
559d65
# see also https://bugreports.qt.io/browse/QTBUG-42071
559d65
QT_HASH_SEED=0; export QT_HASH_SEED
559d65
make %{?_smp_mflags} docs
559d65
%endif
559d65
559d65
559d65
%install
559d65
make install INSTALL_ROOT=%{buildroot}
559d65
559d65
%if 0%{?docs}
559d65
make install_docs INSTALL_ROOT=%{buildroot}
559d65
%endif
559d65
559d65
## .prl/.la file love
559d65
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
559d65
pushd %{buildroot}%{_qt5_libdir}
559d65
for prl_file in libQt5*.prl ; do
559d65
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
559d65
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
559d65
    rm -fv "$(basename ${prl_file} .prl).la"
559d65
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
559d65
  fi
559d65
done
559d65
popd
559d65
559d65
559d65
%post -p /sbin/ldconfig
559d65
%postun -p /sbin/ldconfig
559d65
559d65
%files
559d65
%license LICENSE.GPL* LICENSE.LGPL*
559d65
%{_qt5_libdir}/libQt5WebChannel.so.5*
559d65
%{_qt5_archdatadir}/qml/QtWebChannel/
559d65
559d65
%files devel
559d65
%{_qt5_headerdir}/QtWebChannel/
559d65
%{_qt5_libdir}/libQt5WebChannel.so
559d65
%{_qt5_libdir}/libQt5WebChannel.prl
559d65
%dir %{_qt5_libdir}/cmake/Qt5WebChannel/
559d65
%{_qt5_libdir}/cmake/Qt5WebChannel/Qt5WebChannelConfig*.cmake
559d65
%{_qt5_libdir}/pkgconfig/Qt5WebChannel.pc
559d65
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_webchannel*.pri
559d65
559d65
%if 0%{?docs}
559d65
%files doc
559d65
%license LICENSE.FDL
559d65
%{_qt5_docdir}/%{qt_module}.qch
559d65
%{_qt5_docdir}/%{qt_module}/
559d65
%endif
559d65
559d65
%if 0%{?_qt5_examplesdir:1}
559d65
%files examples
559d65
%{_qt5_examplesdir}/
559d65
%endif
559d65
559d65
559d65
%changelog
559d65
* Fri Oct 06 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.2-1
559d65
- Update to 5.9.2
559d65
  Resolves: bz#1482792
559d65
559d65
* Mon Aug 28 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.1-1
559d65
- Update to 5.9.1
559d65
  Resolves: bz#1482792
559d65
559d65
* Wed Jan 11 2017 Jan Grulich <jgrulich@redhat.com> - 5.6.2-1
559d65
- Update to 5.6.2
559d65
  Resolves: bz#1384832
559d65
559d65
* Tue Aug 30 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-10
559d65
- Increase build version to have newer version than in EPEL
559d65
  Resolves: bz#1317416
559d65
559d65
* Wed Jun 08 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
559d65
- Update to 5.6.1
559d65
  Resolves: bz#1317416
559d65
559d65
* Thu Apr 07 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.0-4
559d65
- Initial version for RHEL
559d65
  Resolves: bz#1317416
559d65
559d65
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
559d65
- rebuild
559d65
559d65
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
559d65
- rebuild
559d65
559d65
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
559d65
- 5.6.0 final release
559d65
559d65
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.8.rc
559d65
- Update to final RC
559d65
559d65
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7
559d65
- Update RC release
559d65
559d65
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.6.rc
559d65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
559d65
559d65
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.5.rc
559d65
- update source URL, use %%license, BR: cmake
559d65
559d65
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.4
559d65
- Update to final rc release
559d65
559d65
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
559d65
- Official rc release
559d65
559d65
* Sun Dec 06 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.2
559d65
- restore bootstrap macro support
559d65
559d65
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
559d65
- Start to implement 5.6.0 rc
559d65
559d65
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
559d65
- Update for final qt 5.5.1
559d65
559d65
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
559d65
- Update to Qt 5.5.1 RC1
559d65
559d65
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
559d65
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
559d65
559d65
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
559d65
- tighten qtbase dep (#1233829)
559d65
559d65
* Thu Jul 09 2015 Jan Grulich <jgrulich@redhat.com> - 5.5.0-1
559d65
- 5.5.0
559d65
559d65
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.4.2-2
559d65
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
559d65
559d65
* Sun Jun 07 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.2-1
559d65
- 5.4.2
559d65
559d65
* Tue Dec 23 2014 Taylor Braun-Jones <taylor.braun-jones@ge.com> - 5.4.0-1
559d65
- Initial release.