[qt5-qtquickcontrols] Attempt at saner SPEC file formatting
Lubomir Rintel
lkundrak at fedoraproject.org
Thu Oct 24 09:55:25 UTC 2013
commit 7019df29da62cec535a6f25c66421c9b66f251c7
Author: Lubomir Rintel <lkundrak at v3.sk>
Date: Thu Oct 24 11:39:54 2013 +0200
Attempt at saner SPEC file formatting
I'm doing this semi-automatically across all packages I maintain, since some
are several years old and since then several have suffered bit-rot and such.
I'm fixing up the following:
- Old RPM relics (such as %defattr, BuildRoot or %clean sections)
- Whitespace errors (such as trailing spaces)
- Consistent use of %{buildroot}
- Dropping useless %{name} expansions that harm legibility
- Consistent spacing between RPM sections
- Bad days in %changelogs
qt5-qtquickcontrols.spec | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/qt5-qtquickcontrols.spec b/qt5-qtquickcontrols.spec
index 5f64960..db46398 100644
--- a/qt5-qtquickcontrols.spec
+++ b/qt5-qtquickcontrols.spec
@@ -9,7 +9,7 @@
Name: qt5-%{qt_module}
Version: 5.2.0
Summary: Qt5 - module with set of QtQuick controls
-Release: 0.1.%{pre}%{?dist}
+Release: 0.2.%{pre}%{?dist}
License: BSD and (LGPLv2 with exceptions or GPLv3 with exceptions) and GFDL
Url: http://qt-project.org/
%if 0%{?pre:1}
@@ -32,9 +32,10 @@ BuildRequires: pkgconfig(Qt5Core)
%{?_qt5_version:Requires: qt5-qtbase%{?_isa} >= %{_qt5_version}}
%description
-The Qt Quick Controls module provides a set of controls that can be used to
+The Qt Quick Controls module provides a set of controls that can be used to
build complete interfaces in Qt Quick.
+
%if 0%{?docs}
%package doc
Summary: API documentation for %{name}
@@ -42,6 +43,7 @@ Requires: %{name} = %{version}-%{release}
# for qhelpgenerator
BuildRequires: qt5-qttools-devel
BuildArch: noarch
+
%description doc
%{summary}.
%endif
@@ -78,6 +80,7 @@ make install_docs INSTALL_ROOT=%{buildroot}
%doc LGPL_EXCEPTION.txt
%doc header.BSD
+
%if 0%{?docs}
%files doc
%{_qt5_docdir}/qtquickcontrols.qch
@@ -88,6 +91,9 @@ make install_docs INSTALL_ROOT=%{buildroot}
%changelog
+* Thu Oct 24 2013 Lubomir Rintel <lkundrak at v3.sk> - 5.2.0-0.2.alpha
+- Bulk sad and useless attempt at consistent SPEC file formatting
+
* Wed Oct 02 2013 Rex Dieter <rdieter at fedoraproject.org> - 5.2.0-0.1.alpha
- 5.2.0-alpha
- tidy dir ownership
More information about the scm-commits
mailing list