Summary: hexdump.c is a C library implementation of the BSD command-line utility Name: hexdump Version: 20130926 Release: 1 License: BSD-like license Group: Applications/File URL: http://25thandclement.com/~william/projects/hexdump.c.html Source0: http://25thandclement.com/~william/projects/releases/%{name}-%{version}.tgz Patch0: %{name}-%{version}-aix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root %description hexdump.c is a C library implementation of the arcane BSD command-line utility, hexdump(1). It allows specifying simple formatting programs for display and analysis of binary blobs. %prep %setup -q %patch0 %build xlc_r -o %{name} %{name}.c -DHEXDUMP_MAIN %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} mkdir -p ${RPM_BUILD_ROOT}%{_bindir} cp %{name} ${RPM_BUILD_ROOT}%{_bindir}/%{name} chmod 0755 %{name} ${RPM_BUILD_ROOT}%{_bindir}/%{name} /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/%{name} || : mkdir -p ${RPM_BUILD_ROOT}/usr/bin cd ${RPM_BUILD_ROOT}/usr/bin ln -s ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc README %{_bindir}/* /usr/bin/* %changelog * Mon Sep 30 2013 Michael Perzl - 20130926-1 - updated to version 20130926 * Mon Apr 15 2013 Michael Perzl - 20130412-1 - first version for AIX V5.1 and higher