[gt5] Fix problem with parsing manual `du` man page
Marcin Zajaczkowski
szpak at fedoraproject.org
Sat Mar 29 14:53:05 UTC 2014
commit 0215eee10764233091393b3cabf05185c94fe939
Author: Marcin Zajaczkowski <szpak at users.sourceforge.net>
Date: Sat Mar 29 15:44:41 2014 +0100
Fix problem with parsing manual `du` man page
gt5-1.4.0-fix-max-depth.diff | 11 +++++++++++
gt5.spec | 20 +++++++++-----------
2 files changed, 20 insertions(+), 11 deletions(-)
---
diff --git a/gt5-1.4.0-fix-max-depth.diff b/gt5-1.4.0-fix-max-depth.diff
new file mode 100644
index 0000000..181e815
--- /dev/null
+++ b/gt5-1.4.0-fix-max-depth.diff
@@ -0,0 +1,11 @@
+--- ./gt5.org 2007-08-29 23:34:00.000000000 +0200
++++ ./gt5 2014-03-16 02:54:32.546684656 +0100
+@@ -261,7 +261,7 @@
+
+ #can du handle depths?
+ DEPTH="$(du --help 2>&1 | "$AWK" '
+- /depth/{sub(/^[^-]*/,""); sub(/[N ].*/,""); print; exit}
++ /depth/{sub(/^[^-]*/,""); sub(/[N,{*} ].*/,""); print; exit}
+ ')$((MAX_DEPTH+1))"
+
+ {
diff --git a/gt5.spec b/gt5.spec
index 4bafd43..25fc03b 100644
--- a/gt5.spec
+++ b/gt5.spec
@@ -1,26 +1,20 @@
Name: gt5
Summary: A diff-capable 'du-browser'
Version: 1.4.0
-Release: 12%{?dist}
+Release: 13%{?dist}
License: GPL+
-Group: Applications/File
+Group: Applications/File
URL: http://gt5.sourceforge.net/
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
-#patch is not needed by direct using "install -p"
-#Patch0: gt5-1.4.0-chmod.diff
-Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch0: gt5-1.4.0-fix-max-depth.diff
+Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
#something else is required in runtime?
Requires: gawk
#sed is not needed to mention only in BuildRequires
Requires: sed
#Some console web browser is required (e.g. links links2 elinks lynx w3m)
-#text-www-browser virtual provider was introduced in F-8
-#it was initially proposed by Till Maas at:
-#http://fedoraproject.org/wiki/VilleSkytt%C3%A4/VirtualProvides
-%if 0%{?fedora} > 7
Requires: text-www-browser
-%endif
%description
Allows to check what takes the most of your hard disk space and track
@@ -30,6 +24,7 @@ Note: It requires some console web browser installed in the system
%prep
%setup -q
+%patch0 -p0
%build
#it's a shell-script, nothing to do
@@ -42,7 +37,6 @@ install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -p gt5 %{buildroot}%{_bindir}/
install -p gt5.1 %{buildroot}%{_mandir}/man1/
-#make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
%clean
rm -fr %{buildroot}
@@ -55,6 +49,10 @@ rm -fr %{buildroot}
%{_mandir}/man1/gt5.1*
%changelog
+* Sat Mar 29 2014 Marcin Zajaczkowski <mszpak ATT wp DOTT pl> - 1.4.0-13
+- Fix critical problem with parsing `du` man page
+- Fix rpmlint warnings
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.4.0-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
More information about the scm-commits
mailing list