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
This commit is contained in:
Lubomir Rintel 2013-10-24 11:39:54 +02:00
parent d15c445eb2
commit 7019df29da

View File

@ -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@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@fedoraproject.org> - 5.2.0-0.1.alpha
- 5.2.0-alpha
- tidy dir ownership