File hed.spec of Package hed

Name:		hed
Version:	0.5
Release:	1
Summary:	Fast Hexadecimal Editor
Group:		Development/Tools/Other
License:	GPLv2
URL:		http://pasky.or.cz/~pasky/dev/hed/
Source0:	%name-%version.tar.bz2
Patch0:		%name-%version-fix-link.patch
BuildRoot:	%_tmppath/%name-%version-%release-root-%(%__id_u -n)
BuildRequires:	ncurses-devel

%description
Hed is a free hexadecimal editor for POSIX systems designed
to efficiently handle infinitely large files in conjunction
with operations like inserting in the middle of the file.

%prep
%setup -q
%patch0 -p1

%build
cd src
make PREFIX=/usr SYS_CFLAGS="$RPM_OPT_FLAGS" %{?_smp_mflags}

%install
cd src
make install PREFIX=/usr DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc README TODO
%{_bindir}/hed
%doc %{_mandir}/man1/hed.1.gz

%changelog
* Wed Jan 21 2008 pasky@suse.cz
- Initial package

openSUSE Build Service is sponsored by