Summary: sha is a simple program that hashes files Name: sha Version: 1.1 Release: 1 License: BSD-style Group: Applications/File URL: http://www.saddi.com/software/sha/ Source0: http://www.saddi.com/software/sha/dist/%{name}-%{version}.tar.gz Patch0: %{name}-%{version}-aix.patch Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root %description sha is a simple program that hashes files. It uses the National Institute of Standards and Technology's Secure Hash Algorithm. It can use SHA-1, SHA-256, SHA-384, or SHA-512, which generate respectively, hashes of 160, 256, 384, or 512 bits. sha can be used in scripts to do, for example, file integrity checking. For more information on SHA (the algorithms), visit: http://csrc.nist.gov/encryption/tkhash.html %prep %setup -q %patch0 %build ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make DESTDIR=${RPM_BUILD_ROOT} install /usr/bin/strip ${RPM_BUILD_ROOT}%{_bindir}/* || : cd ${RPM_BUILD_ROOT} mkdir -p usr/bin cd usr/bin ln -sf ../..%{_bindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc ChangeLog INSTALL README README.SHA %{_bindir}/* %{_mandir}/man?/* /usr/bin/* %changelog * Wed Apr 13 2011 Michael Perzl - 1.1-1 - first version for AIX V5.1 and higher