Blame SPECS/qt5-qtserialport.spec

4443b6
4443b6
%global qt_module qtserialport
4443b6
4443b6
%define docs 1
4443b6
4443b6
Summary: Qt5 - SerialPort component
4443b6
Name:    qt5-%{qt_module}
53106f
Version: 5.9.7
49b7fb
Release: 1%{?dist}
4443b6
4443b6
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
4443b6
License: LGPLv2 with exceptions or GPLv3 with exceptions
4443b6
Url:     http://www.qt.io
2ac931
Source0: http://download.qt.io/official_releases/qt/5.9/%{version}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
4443b6
4443b6
BuildRequires: cmake
4443b6
BuildRequires: qt5-qtbase-devel >= %{version}
4443b6
BuildRequires: pkgconfig(libudev)
4443b6
2ac931
BuildRequires: qt5-qtbase-private-devel
4443b6
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
4443b6
4443b6
%description
4443b6
Qt Serial Port provides the basic functionality, which includes configuring,
4443b6
I/O operations, getting and setting the control signals of the RS-232 pinouts.
4443b6
4443b6
%package devel
4443b6
Summary: Development files for %{name}
4443b6
Requires: %{name}%{?_isa} = %{version}-%{release}
4443b6
Requires: qt5-qtbase-devel%{?_isa}
4443b6
%description devel
4443b6
%{summary}.
4443b6
4443b6
%if 0%{?docs}
4443b6
%package doc
4443b6
Summary: API documentation for %{name}
4443b6
License: GFDL
4443b6
Requires: %{name} = %{version}-%{release}
4443b6
BuildRequires: qt5-qdoc
4443b6
BuildRequires: qt5-qhelpgenerator
4443b6
BuildArch: noarch
4443b6
%description doc
4443b6
%{summary}.
4443b6
%endif
4443b6
4443b6
%package examples
4443b6
Summary: Programming examples for %{name}
4443b6
Requires: %{name}%{?_isa} = %{version}-%{release}
4443b6
%description examples
4443b6
%{summary}.
4443b6
4443b6
4443b6
%prep
2ac931
%setup -q -n %{qt_module}-opensource-src-%{version}
4443b6
4443b6
4443b6
%build
2ac931
%{qmake_qt5} \
4443b6
  %{?_qt5_examplesdir:CONFIG+=qt_example_installs}
4443b6
4443b6
make %{?_smp_mflags}
4443b6
4443b6
%if 0%{?docs}
4443b6
# HACK to avoid multilib conflicts in noarch content
4443b6
# see also https://bugreports.qt-project.org/browse/QTBUG-42071
4443b6
QT_HASH_SEED=0; export QT_HASH_SEED
4443b6
make %{?_smp_mflags} docs
4443b6
%endif
4443b6
4443b6
4443b6
%install
2ac931
make install INSTALL_ROOT=%{buildroot}
4443b6
4443b6
%if 0%{?docs}
2ac931
make install_docs INSTALL_ROOT=%{buildroot}
4443b6
%endif
4443b6
4443b6
## .prl/.la file love
4443b6
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
4443b6
pushd %{buildroot}%{_qt5_libdir}
4443b6
for prl_file in libQt5*.prl ; do
4443b6
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
4443b6
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
4443b6
    rm -fv "$(basename ${prl_file} .prl).la"
4443b6
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
4443b6
  fi
4443b6
done
4443b6
popd
4443b6
4443b6
4443b6
%post -p /sbin/ldconfig
4443b6
%postun -p /sbin/ldconfig
4443b6
4443b6
%files
2ac931
%license LICENSE.*
4443b6
%{_qt5_libdir}/libQt5SerialPort.so.5*
4443b6
4443b6
%files devel
4443b6
%{_qt5_headerdir}/QtSerialPort/
4443b6
%{_qt5_libdir}/libQt5SerialPort.so
4443b6
%{_qt5_libdir}/libQt5SerialPort.prl
4443b6
%dir %{_qt5_libdir}/cmake/Qt5SerialPort/
4443b6
%{_qt5_libdir}/cmake/Qt5SerialPort/Qt5SerialPortConfig*.cmake
4443b6
%{_qt5_libdir}/pkgconfig/Qt5SerialPort.pc
4443b6
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_serialport*.pri
4443b6
4443b6
%if 0%{?docs}
4443b6
%files doc
4443b6
%license LICENSE.FDL
4443b6
%{_qt5_docdir}/qtserialport.qch
4443b6
%{_qt5_docdir}/qtserialport/
4443b6
%endif
4443b6
4443b6
# no examples, yet
4443b6
%if 0%{?_qt5_examplesdir:1}
4443b6
%files examples
4443b6
%{_qt5_examplesdir}/
4443b6
%endif
4443b6
4443b6
4443b6
%changelog
53106f
* Thu Feb 07 2019 Jan Grulich <jgrulich@redhat.com> - 5.9.7-1
53106f
- Update to 5.9.7
53106f
  Resolves: bz#1564015
53106f
2ac931
* Fri Oct 06 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.1-2
2ac931
- Update to 5.9.2
2ac931
  Resolves: bz#1482788
2ac931
2ac931
* Mon Aug 28 2017 Jan Grulich <jgrulich@redhat.com> - 5.9.1-1
2ac931
- Update to 5.9.1
2ac931
  Resolves: bz#1482788
2ac931
49b7fb
* Wed Jan 11 2017 Jan Grulich <jgrulich@redhat.com> - 5.6.2-1
49b7fb
- Update to 5.6.2
49b7fb
  Resolves: bz#1384827
49b7fb
4443b6
* Tue Aug 30 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-10
4443b6
- Increase build version to have newer version than in EPEL
4443b6
  Resolves: bz#1317411
4443b6
4443b6
* Wed Jun 08 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.1-1
4443b6
- Update to 5.6.1
4443b6
  Resolves: bz#1317411
4443b6
4443b6
* Thu Apr 07 2016 Jan Grulich <jgrulich@redhat.com> - 5.6.0-4
4443b6
- Initial version for RHEL
4443b6
  Resolves: bz#1317411
4443b6
4443b6
* Sun Mar 20 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-3
4443b6
- rebuild
4443b6
4443b6
* Fri Mar 18 2016 Rex Dieter <rdieter@fedoraproject.org> - 5.6.0-2
4443b6
- rebuild
4443b6
4443b6
* Mon Mar 14 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-1
4443b6
- 5.6.0 final release
4443b6
4443b6
* Tue Feb 23 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.7.rc
4443b6
- Update to final RC
4443b6
4443b6
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.6
4443b6
- Update RC release
4443b6
4443b6
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.5.beta
4443b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4443b6
4443b6
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4.beta
4443b6
- update source URL, use %%license, BR: cmake
4443b6
4443b6
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
4443b6
- Update to final beta release
4443b6
4443b6
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
4443b6
- Official beta release
4443b6
4443b6
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
4443b6
- Start to implement 5.6.0 beta
4443b6
4443b6
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
4443b6
- Update to final release 5.5.1
4443b6
4443b6
* Tue Sep 29 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-1
4443b6
- Update to Qt 5.5.1 RC1
4443b6
4443b6
* Wed Jul 29 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-3
4443b6
- -docs: BuildRequires: qt5-qhelpgenerator, standardize bootstrapping
4443b6
4443b6
* Thu Jul 16 2015 Rex Dieter <rdieter@fedoraproject.org> 5.5.0-2
4443b6
- tighten qtbase dep (#1233829)
4443b6
4443b6
* Wed Jul 1 2015 Helio Chissini de Castro <helio@kde.org> 5.5.0-1
4443b6
- New final upstream release Qt 5.5.0
4443b6
4443b6
* Thu Jun 25 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.0-0.2.rc
4443b6
- Update for official RC1 released packages
4443b6
4443b6
* Wed Jun 17 2015 Daniel Vrátil <dvratil@redhat.com> - 5.5.0-0.1.rc
4443b6
- Qt 5.5.0 RC1
4443b6
4443b6
* Wed Jun 03 2015 Jan Grulich <jgrulich@redhat.com> 5.4.2-1
4443b6
- 5.4.2
4443b6
4443b6
* Thu Apr 30 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-2
4443b6
- Add qt5-qtserialport-examples (#1190202)
4443b6
4443b6
* Fri Feb 27 2015 Rex Dieter <rdieter@fedoraproject.org> 5.4.1-1
4443b6
- 5.4.1
4443b6
4443b6
* Wed Dec 10 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-1
4443b6
- 5.4.0 (final)
4443b6
4443b6
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
4443b6
- 5.4.0-rc
4443b6
4443b6
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
4443b6
- out-of-tree build, use %%qmake_qt5
4443b6
4443b6
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
4443b6
- 5.4.0-beta
4443b6
4443b6
* Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
4443b6
- 5.3.2
4443b6
4443b6
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.1-2
4443b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
4443b6
4443b6
* Thu Jul 24 2014 Rex Dieter <rdieter@fedoraproject.org> 5.3.1-1
4443b6
- 5.3.1
4443b6
4443b6
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.3.0-2
4443b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4443b6
4443b6
* Wed May 21 2014 Jan Grulich <jgrulich@redhat.com> 5.3.0-1
4443b6
- 5.3.0
4443b6
4443b6
* Sat Apr 26 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-2
4443b6
- clean .prl files (buildroot, excessive deps) (#1091630)
4443b6
4443b6
* Thu Feb 06 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.1-1
4443b6
- 5.2.1
4443b6
4443b6
* Mon Jan 27 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-2
4443b6
- ready -examples subpkg
4443b6
4443b6
* Thu Jan 02 2014 Rex Dieter <rdieter@fedoraproject.org> 5.2.0-1
4443b6
- first try