[libclaw] Attempt at saner SPEC file formatting
Lubomir Rintel
lkundrak at fedoraproject.org
Thu Oct 24 09:47:35 UTC 2013
commit fb826f04f22098fe5d7f67c6ebe638a82f6110f7
Author: Lubomir Rintel <lkundrak at v3.sk>
Date: Thu Oct 24 11:39:53 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
libclaw.spec | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/libclaw.spec b/libclaw.spec
index 1837d31..19662ec 100644
--- a/libclaw.spec
+++ b/libclaw.spec
@@ -1,6 +1,6 @@
Name: libclaw
Version: 1.7.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: C++ Library of various utility functions
Group: System Environment/Libraries
License: LGPLv2
@@ -23,6 +23,7 @@ Claw (C++ Library Absolutely Wonderful) is a C++ library of various utility
functions. In doesn't have a particular objective but being useful to
anyone.
+
%package devel
Summary: Development files for Claw library
Group: Development/Libraries
@@ -33,11 +34,13 @@ Requires: cmake
This package contains files needed to develop and build software against
Claw (C++ Library Absolutely Wonderful).
+
%prep
%setup -q
%patch0 -p1 -b .nostrip
%patch1 -p1 -b .libdir
+
%build
%cmake .
make %{?_smp_mflags} VERBOSE=1
@@ -49,19 +52,22 @@ do
mv .utf8 $F
done
-%install
-make install DESTDIR=$RPM_BUILD_ROOT VERBOSE=1
+%install
+make install DESTDIR=%{buildroot} VERBOSE=1
%find_lang %{name}
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
+
%files -f %{name}.lang
%{_libdir}/*.so.*
%doc %dir %{_datadir}/doc/libclaw1
%doc %{_datadir}/doc/libclaw1/COPYING
+
%files devel
%{_bindir}/claw-config
%{_datadir}/cmake/%{name}
@@ -71,7 +77,11 @@ make install DESTDIR=$RPM_BUILD_ROOT VERBOSE=1
%doc %{_datadir}/doc/libclaw1
%doc examples
+
%changelog
+* Thu Oct 24 2013 Lubomir Rintel <lkundrak at v3.sk> - 1.7.4-2
+- Bulk sad and useless attempt at consistent SPEC file formatting
+
* Sun Aug 18 2013 Lubomir Rintel <lkundrak at v3.sk> - 1.7.4-1
- Rebase
- Fix FTBFS
More information about the scm-commits
mailing list