use %version macro in Source0,

use %autosetup
+whitespace between .spec sections
This commit is contained in:
Rex Dieter 2017-06-02 06:52:23 -05:00
parent 81d8f7aa56
commit a0d8c223e2

View File

@ -3,12 +3,12 @@
Summary: Qt5 - X11 support library Summary: Qt5 - X11 support library
Name: qt5-%{qt_module} Name: qt5-%{qt_module}
Version: 5.9.0 Version: 5.9.0
Release: 1%{?dist} Release: 2%{?dist}
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details # See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions License: LGPLv2 with exceptions or GPLv3 with exceptions
Url: http://www.qt.io Url: http://www.qt.io
Source0: https://download.qt.io/official_releases/qt/5.9/5.9.0/submodules/qtx11extras-opensource-src-5.9.0.tar.xz Source0: https://download.qt.io/official_releases/qt/5.9/%{version}/submodules/qtx11extras-opensource-src-%{version}.tar.xz
BuildRequires: qt5-qtbase-devel >= %{version} BuildRequires: qt5-qtbase-devel >= %{version}
BuildRequires: qt5-qtbase-private-devel BuildRequires: qt5-qtbase-private-devel
@ -26,8 +26,10 @@ Requires: qt5-qtbase-devel%{?_isa}
%description devel %description devel
%{summary}. %{summary}.
%prep %prep
%setup -q -n %{qt_module}-opensource-src-%{version} %autosetup -n %{qt_module}-opensource-src-%{version}
%build %build
mkdir %{_target_platform} mkdir %{_target_platform}
@ -36,6 +38,7 @@ pushd %{_target_platform}
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
make install INSTALL_ROOT=%{buildroot} -C %{_target_platform} make install INSTALL_ROOT=%{buildroot} -C %{_target_platform}
@ -51,6 +54,7 @@ for prl_file in libQt5*.prl ; do
done done
popd popd
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -67,7 +71,13 @@ popd
%{_qt5_libdir}/pkgconfig/Qt5X11Extras.pc %{_qt5_libdir}/pkgconfig/Qt5X11Extras.pc
%{_qt5_archdatadir}/mkspecs/modules/qt_lib_x11extras*.pri %{_qt5_archdatadir}/mkspecs/modules/qt_lib_x11extras*.pri
%changelog %changelog
* Fri Jun 02 2017 Rex Dieter <rdieter@fedoraproject.org> - 5.9.0-2
- use %%version macro in Source0,
- use %%autosetup
- +whitespace between .spec sections
* Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1 * Wed May 31 2017 Helio Chissini de Castro <helio@kde.org> - 5.9.0-1
- Upstream official release - Upstream official release