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:
parent
6ded307201
commit
7976caeb23
@ -1,6 +1,6 @@
|
||||
Name: xmltoman
|
||||
Version: 0.4
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Scripts for converting XML to roff or HTML
|
||||
|
||||
Group: Applications/Publishing
|
||||
@ -8,7 +8,6 @@ License: GPLv2+
|
||||
URL: http://sourceforge.net/projects/xmltoman/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||
Patch0: xmltoman-0.3-timestamps.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: perl(XML::Parser)
|
||||
BuildArch: noarch
|
||||
@ -30,17 +29,12 @@ make %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
cp -p *.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
|
||||
mkdir -p %{buildroot}%{_mandir}/man1
|
||||
cp -p *.1 %{buildroot}%{_mandir}/man1
|
||||
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/xmltoman
|
||||
%{_bindir}/xmlmantohtml
|
||||
%{_datadir}/xmltoman
|
||||
@ -49,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%changelog
|
||||
* Thu Oct 24 2013 Lubomir Rintel <lkundrak@v3.sk> - 0.4-11
|
||||
- Bulk sad and useless attempt at consistent SPEC file formatting
|
||||
|
||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user