[fusecompress] Attempt at saner SPEC file formatting
Lubomir Rintel
lkundrak at fedoraproject.org
Thu Oct 24 09:45:39 UTC 2013
commit 0f6081233249e9e848b76bbad218ffd95463351a
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
fusecompress.spec | 22 ++++++++--------------
1 files changed, 8 insertions(+), 14 deletions(-)
---
diff --git a/fusecompress.spec b/fusecompress.spec
index b4cbe7d..ba42836 100644
--- a/fusecompress.spec
+++ b/fusecompress.spec
@@ -1,6 +1,6 @@
Name: fusecompress
Version: 2.6
-Release: 20.20110801git913897f4%{?dist}
+Release: 21.20110801git913897f4%{?dist}
Summary: FUSE based compressed filesystem implementation
Group: System Environment/Libraries
@@ -8,7 +8,7 @@ License: GPLv2
URL: http://miio.net/fusecompress/
#Source0: http://download.github.com/tex-fusecompress-4e07d3fe1c61f9a83732eb3021e3016feb008bdb.tar.gz
# Snapshot instructions
-# git clone git://github.com/tex/fusecompress.git
+# git clone git://github.com/tex/fusecompress.git
# cd fusecompress
# git checkout 913897f424af319a0fa67d5356454de1512efeae
# cd ..
@@ -28,7 +28,6 @@ Patch1: fusecompress-boost-1.44.patch
# The tactic, to fix the issue here, is to remove the embedded Boost.Math
# source tree part.
Patch2: fusecompress-boost-1.48.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: fuse-devel file-devel boost-devel
BuildRequires: zlib-devel bzip2-devel lzo-devel
@@ -50,30 +49,22 @@ compressed files and user applications.
%patch2 -p1 -b .boost48
rm -Rf src/boost/math
-
autoreconf -fi
-
find . -name ChangeLog -o -name '*.[ch]pp' |xargs chmod -x
-
cp %{SOURCE1} .
+
%build
%configure --with-boost-libdir=%{_libdir}
make %{?_smp_mflags}
%install
-rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/sbin
-
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=%{buildroot}
+install -d %{buildroot}/sbin
%files
-%defattr(-,root,root,-)
%{_bindir}/fusecompress
%{_bindir}/fusecompress_offline
%{_bindir}/print_compress
@@ -85,6 +76,9 @@ rm -rf $RPM_BUILD_ROOT
%changelog
+* Thu Oct 24 2013 Lubomir Rintel <lkundrak at v3.sk> - 2.6-21.20110801git913897f4
+- Bulk sad and useless attempt at consistent SPEC file formatting
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.6-20.20110801git913897f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list