1Summary: diffstat - make histogram from diff-output 2%define AppProgram diffstat 3%define AppVersion 1.55 4# $XTermId: diffstat.spec,v 1.3 2010/10/10 18:09:56 tom Exp $ 5Name: %{AppProgram} 6Version: %{AppVersion} 7Release: 1 8License: MIT 9Group: Applications/Development 10URL: ftp://invisible-island.net/%{AppProgram} 11Source0: %{AppProgram}-%{AppVersion}.tgz 12Packager: Thomas Dickey <dickey@invisible-island.net> 13 14%description 15Diffstat is is useful for reviewing large, complex patch files. It reads from 16one or more input files which contain output from diff, producing a histogram 17of the total lines changed for each file referenced. 18 19%prep 20 21%setup -q -n %{AppProgram}-%{AppVersion} 22 23%build 24 25INSTALL_PROGRAM='${INSTALL}' \ 26 ./configure \ 27 --target %{_target_platform} \ 28 --prefix=%{_prefix} \ 29 --bindir=%{_bindir} \ 30 --libdir=%{_libdir} \ 31 --mandir=%{_mandir} 32 33make 34 35%install 36[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 37 38make install DESTDIR=$RPM_BUILD_ROOT 39 40strip $RPM_BUILD_ROOT%{_bindir}/%{AppProgram} 41 42%clean 43[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT 44 45%files 46%defattr(-,root,root) 47%{_prefix}/bin/%{AppProgram} 48%{_mandir}/man1/%{AppProgram}.* 49 50%changelog 51# each patch should add its ChangeLog entries here 52 53* Thu Jul 15 2010 Thomas Dickey 54- initial version 55