Name: filecount Summary: filecount - count files Copyright: GPL Group: System/Monitoring Version: 0.8 Release: 0.mv.1.SuSE9.2 Packager: Martin Väth Source0: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Prefix: %{_prefix} %description Filecount is written to be very flexible in which files it will count. The results of filecount are also tested against those of kdirstat. %prep umask 022 test -n '%{buildroot}' || { echo "Must use buildroot" ; exit 1 ; } %if %{?fake:%fake}%{!?fake:0} %setup -T -D -c %else %setup -c test -d %{name}-%{version} && mv %{name}-%{version}/* . test -d %{name} && mv %{name}/* . %patch0 -p0 %endif %build umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} %if %{?fake:%fake}%{!?fake:0} %else %configure make strip filecount %endif %install umask 022 cd "$RPM_BUILD_DIR"/%{name}-%{version} test -n '%{buildroot}' test -d '%{buildroot}' && rm -rf '%{buildroot}' make DESTDIR='%{buildroot}' install %clean test -n '%{buildroot}' -a -d '%{buildroot}' && rm -rf '%{buildroot}' %files %defattr(-,root,root) %doc COPYING README %{_bindir}/* %changelog * Wed Nov 26 2003 Martin Väth - minor compatibility improvements * Fri Aug 01 2003 Martin Väth - built from scratch