66 lines
1.5 KiB
RPMSpec
66 lines
1.5 KiB
RPMSpec
Name: sha2
|
|
Version: 1.0.1
|
|
Release: 1%{?dist}
|
|
Summary: SHA Implementation Library
|
|
License: BSD
|
|
URL: http://www.aarongifford.com/computers/sha.html
|
|
Source0: http://www.aarongifford.com/computers/%{name}-%{version}.tgz
|
|
# Makefile to build the binaries. Sent upstream via email
|
|
Source1: %{name}-Makefile
|
|
|
|
%description
|
|
The library implements the SHA-256, SHA-384, and SHA-512 hash algorithms. The
|
|
interface is similar to the interface to SHA-1 found in the OpenSSL library.
|
|
|
|
sha2 is a simple program that accepts input from either STDIN or reads one or
|
|
more files specified on the command line, and then generates the specified hash
|
|
(either SHA-256, SHA-384, SHA-512, or any combination thereof, including all
|
|
three at once).
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
cp -a %{SOURCE1} Makefile
|
|
|
|
%build
|
|
make %{?_smp_mflags} \
|
|
OPTFLAGS="%{optflags}"
|
|
|
|
%install
|
|
make install \
|
|
DESTDIR=%{buildroot} \
|
|
LIBDIR=%{_libdir} \
|
|
INCLUDEDIR=%{_includedir} \
|
|
BINDIR=%{_bindir} \
|
|
OPTFLAGS="%{optflags}"
|
|
|
|
%check
|
|
LD_PRELOAD=./libsha2.so ./sha2test.pl
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
%doc README
|
|
%{_libdir}/libsha2.so.*
|
|
%{_bindir}/sha2*
|
|
|
|
|
|
%files devel
|
|
%{_includedir}/sha2.h
|
|
%{_libdir}/libsha2.so
|
|
|
|
|
|
%changelog
|
|
* Mon Jan 16 2012 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 1.0.1-1
|
|
- Initial build
|