Blame SPECS/qt5-qtwebsockets.spec

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