packages: ncdu/ncdu.spec (NEW), ncdu/ncurses-lib.patch (NEW) - new (on fi9o...

glen glen at pld-linux.org
Sun Aug 22 14:12:21 CEST 2010


Author: glen                         Date: Sun Aug 22 12:12:21 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new (on fi9o request)

---- Files affected:
packages/ncdu:
   ncdu.spec (NONE -> 1.1)  (NEW), ncurses-lib.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ncdu/ncdu.spec
diff -u /dev/null packages/ncdu/ncdu.spec:1.1
--- /dev/null	Sun Aug 22 14:12:21 2010
+++ packages/ncdu/ncdu.spec	Sun Aug 22 14:12:15 2010
@@ -0,0 +1,50 @@
+# $Revision$, $Date$
+Summary:	Text-based disk usage viewer
+Name:		ncdu
+Version:	1.6
+Release:	1
+License:	MIT
+Group:		Applications/File
+URL:		http://dev.yorhel.nl/ncdu/
+Source0:	http://dev.yorhel.nl/download/%{name}-%{version}.tar.gz
+Patch0:		ncurses-lib.patch
+# Source0-md5:	95d29cf64af2d8cf4b5005e6e3d60384
+BuildRequires:	ncurses-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ncdu (NCurses Disk Usage) is a curses-based version of the well-known
+'du', and provides a fast way to see what directories are using your
+disk space.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+CPPFLAGS="-I/usr/include/ncurses"
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog TODO
+%attr(755,root,root) %{_bindir}/ncdu
+%{_mandir}/man1/ncdu.1*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/08/22 12:12:15  glen
+- new (on fi9o request)

================================================================
Index: packages/ncdu/ncurses-lib.patch
diff -u /dev/null packages/ncdu/ncurses-lib.patch:1.1
--- /dev/null	Sun Aug 22 14:12:21 2010
+++ packages/ncdu/ncurses-lib.patch	Sun Aug 22 14:12:15 2010
@@ -0,0 +1,22 @@
+--- ncdu-1.6/configure.in~	2009-10-23 15:38:07.000000000 +0300
++++ ncdu-1.6/configure.in	2010-08-22 15:10:54.834063961 +0300
+@@ -39,11 +39,19 @@
+                [initscr],
+                [ncurses=ncursesw],
+                [ncurses=ncurses])
++  AC_CHECK_LIB([tinfow],
++               [nodelay],
++               [tinfo=tinfow],
++               [tinfo=tinfo])
+ fi
+ AC_CHECK_LIB([$ncurses],
+              [initscr],
+              [LIBS="$LIBS -l$ncurses"],
+              [AC_MSG_ERROR($ncurses library is required)])
++AC_CHECK_LIB([$tinfo],
++             [nodelay],
++             [LIBS="$LIBS -l$tinfo"],
++             [AC_MSG_ERROR($tinfo library is required)])
+ 
+ 
+ 
================================================================


More information about the pld-cvs-commit mailing list