This commit is contained in:
Helio Chissini de Castro 2017-05-05 20:53:22 +02:00
parent 6c2730a37a
commit c2704a556e
3 changed files with 20 additions and 48 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/qtserialport-opensource-src-5.7.1.tar.xz
/qtserialport-opensource-src-5.8.0.tar.xz
/qtserialport-opensource-src-5.9.0-beta3.tar.xz

View File

@ -1,16 +1,14 @@
%global qt_module qtserialport
%global docs 1
Summary: Qt5 - SerialPort component
Name: qt5-%{qt_module}
Version: 5.8.0
Release: 1%{?dist}
Version: 5.9.0
Release: 0.beta.3%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions
Url: http://www.qt.io
Source0: http://download.qt.io/official_releases/qt/5.88888888ion}/submodules/%{qt_module}-opensource-src-%{version}.tar.xz
Source0: https://download.qt.io/development_releases/qt/5.9/%{version}-beta3/submodules/%{qt_module}-opensource-src-%{version}-beta3.tar.xz
BuildRequires: qt5-qtbase-devel >= %{version}
BuildRequires: pkgconfig(libudev)
@ -29,18 +27,6 @@ Requires: qt5-qtbase-devel%{?_isa}
%description devel
%{summary}.
%if 0%{?docs}
%package doc
Summary: API documentation for %{name}
License: GFDL
Requires: %{name} = %{version}-%{release}
BuildRequires: qt5-doctools
BuildRequires: qt5-qtbase-doc
BuildArch: noarch
%description doc
%{summary}.
%endif
%package examples
Summary: Programming examples for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -49,8 +35,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
%prep
%setup -q -n %{qt_module}-opensource-src-%{version}
%setup -q -n %{qt_module}-opensource-src-%{version}-beta3
%build
mkdir %{_target_platform}
@ -60,28 +45,9 @@ pushd %{_target_platform}
make %{?_smp_mflags}
%if 0%{?docs}
# HACK to avoid multilib conflicts in noarch content
# see also https://bugreports.qt-project.org/browse/QTBUG-42071
QT_HASH_SEED=0; export QT_HASH_SEED
make %{?_smp_mflags} docs
%endif
popd
%install
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
%if 0%{?docs}
make install_docs INSTALL_ROOT=%{buildroot} -C %{_target_platform}
# workaround issue where on some archs/releases doc file is named examples-serialport.html or qtserialport-examples.html
if [ -f %{buildroot}%{_qt5_docdir}/qtserialport/qtserialport-examples.html ]; then
mv %{buildroot}%{_qt5_docdir}/qtserialport/qtserialport-examples.html \
%{buildroot}%{_qt5_docdir}/qtserialport/examples-serialport.html
fi
%endif
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
@ -94,7 +60,6 @@ for prl_file in libQt5*.prl ; do
done
popd
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
@ -123,6 +88,12 @@ popd
%changelog
* Fri May 05 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.3
- New upstream beta 3 version
* Sun Apr 16 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-0.beta.1
- New upstream beta version
* Mon Jan 30 2017 Helio Chissini de Castro <helio@kde.org> - 5.8.0-1
- New upstream version
@ -164,20 +135,20 @@ popd
* Mon Feb 15 2016 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.6
- Update RC release
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.5.beta
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 5.6.0-0.5.beta3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4.beta
* Mon Dec 28 2015 Rex Dieter <rdieter@fedoraproject.org> 5.6.0-0.4.beta3
- update source URL, use %%license, BR: cmake
* Mon Dec 21 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.3
- Update to final beta release
- Update to final beta3 release
* Thu Dec 10 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.2
- Official beta release
- Official beta3 release
* Tue Nov 03 2015 Helio Chissini de Castro <helio@kde.org> - 5.6.0-0.1
- Start to implement 5.6.0 beta
- Start to implement 5.6.0 beta3
* Thu Oct 15 2015 Helio Chissini de Castro <helio@kde.org> - 5.5.1-2
- Update to final release 5.5.1
@ -215,11 +186,11 @@ popd
* Fri Nov 28 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.3.rc
- 5.4.0-rc
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta
* Mon Nov 03 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.2.beta3
- out-of-tree build, use %%qmake_qt5
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta
- 5.4.0-beta
* Sun Oct 19 2014 Rex Dieter <rdieter@fedoraproject.org> 5.4.0-0.1.beta3
- 5.4.0-beta3
* Wed Sep 17 2014 Rex Dieter <rdieter@fedoraproject.org> - 5.3.2-1
- 5.3.2

View File

@ -1 +1 @@
SHA512 (qtserialport-opensource-src-5.8.0.tar.xz) = b1fd1fa689279ab75cf14fc26c965148d7b9d91ced9bf321462163825ce89b048449ca705e29377e89b3c266ffc18c748fadd93fb41620bd486d736ae2320fa4
SHA512 (qtserialport-opensource-src-5.9.0-beta3.tar.xz) = 4298fa08c6e831ee483cc6e740f944326326017cb1e8bca25a6ead35d7dd6669c989e9c0932ead812e43726141f7930d2f7849bf3ccb15029a8a6383af46bdf0