I've built an RPM of "tweak", an "efficient hex editor" written by Simon
Tatham, of "putty" fame...
It's a great, lightweight hex editor. I'm attaching an old spec file I
used a long time ago as a reference--some hardcoded paths could probably
be replaced with macros.
thanks,
Greg
Summary: Tweak: an efficient hex editor
Name: tweak
Version: 3.01
Release: 1
License: Redistributable
Vendor: LXPRO.COM
Packager: Gregory E. Bailey <[email protected]>
Group: Applications/Editors
URL: http://www.chiark.greenend.org.uk/~sgtatham/tweak
Source: http://www.chiark.greenend.org.uk/~sgtatham/tweak/tweak-3.01.tar.gz
Buildroot: %{_tmppath}/%{name}-%{version}-root
%description
Tweak is a hex editor. It allows you to edit a file at very low
level, letting you see the full and exact binary contents of the
file. It can be useful for modifying binary files such as
executables, editing disk or CD images, debugging programs that
generate binary file formats incorrectly, and many other things.
%prep
%setup
%build
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/bin
cp -a tweak $RPM_BUILD_ROOT/usr/bin/.
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1
cp -a tweak.1 $RPM_BUILD_ROOT/usr/share/man/man1/.
%clean
rm -rf $RPM_BUILD_ROOT
%files
%doc btree.html LICENCE
/usr/bin/*
/usr/share/man/man1/*
%changelog
* Tue Feb 13 2007 Greg Bailey <[email protected]>
- Update to 3.01
* Wed Oct 19 2005 Greg Bailey <[email protected]>
- Initial release
_______________________________________________
suggest mailing list
[email protected]
http://lists.rpmforge.net/mailman/listinfo/suggest