File hex.spec of Package hex

#
# spec file for package hex (Version 1.4)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#

# norootforbuild

Name:         hex
License:      BSD
Group:        Development/Tools/Other
Provides:     util-linux:/usr/bin/hex
Autoreqprov:  on
Version:      1.4
Release:      124
URL:          http://ibiblio.org/pub/Linux/utils/file/hex/!INDEX.html
Summary:      Yet Another Hex Dumper
Source:       %{name}-%{version}.tar.gz
Patch:        %{name}-%{version}.diff
BuildRoot:    %{_tmppath}/%{name}-%{version}-build

%description
A hex dumper that does CP/M and EBCDIC formatting and has
internationalization support.



%prep
%setup
%patch

%build
make clean
make CFLAGS="$RPM_OPT_FLAGS -Wall"

%install
mkdir -p "$RPM_BUILD_ROOT"{%{_mandir}/man1,%{_bindir}}
make install DESTDIR="$RPM_BUILD_ROOT" MANDIR=%{_mandir}

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc READ.ME
%doc %{_mandir}/man?/*
%{_bindir}/hex

%changelog -n hex
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Fri Jan 13 2006 - schwab@suse.de
- Use RPM_OPT_FLAGS.
- Don't strip binaries.
* Sat Feb 28 2004 - ro@suse.de
- fix non-root build
* Fri Feb 27 2004 - hmacht@suse.de
- build as non-root
* Thu Jul 24 2003 - mjancar@suse.cz
- update to 1.4
* Fri Feb 14 2003 - vbobek@suse.cz
- updated to version 1.3
- fixed overstrike in manpage
* Thu Mar 22 2001 - ro@suse.de
- added split-aliases as provides
* Mon Feb 05 2001 - kukuk@suse.de
- Initial package, split from util-linux