1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
%define prefix /usr
Summary: Thread-safe hash library
Name: @PACKAGE@
Version: @VERSION@
Release: 1
Copyright: LGPL
Group: System Environment/Libraries
Source: http://mhash.sf.net/dl/%{name}-%{version}.tar.gz
BuildRoot: /tmp/%{name}-%{version}-root
Packager: Germano Rizzo <mano@pluto.linux.it>
URL: http://mhash.sf.net
%description
mhash is a thread-safe hash library, implemented in C, and provides a
uniform interface to a large number of hash algorithms (MD5, SHA-1,
HAVAL, RIPEMD128, RIPEMD160, TIGER, GOST). These algorithms can be
used to compute checksums, message digests, and other signatures.
The HMAC support implements the basics for message authentication,
following RFC 2104.
%package devel
Summary: Header files and libraries for developing apps which will use mhash
Group: Development/Libraries
Requires: mhash
%description devel
The mhash-devel package contains the header files and libraries needed
to develop programs that use the mhash library.
Install the mhash-devel package if you want to develop applications that
will use the mhash library.
%changelog
* Fri Feb 01 2002 Germano Rizzo <mano@pluto.linux.it>
- Built version 0.8.13 basing on Kyle Wheeler's SPEC file
* Sat Jun 10 2000 Kyle Wheeler <memoryhole@penguinpowered.com>
- Updated for version 0.8.1
* Wed Feb 9 2000 Clinton Work <clinton@scripty.com>
- Created a new spec file for version 0.6.1
- Created both a shared library and devel packages
%prep
%setup
%build
CFLAGS="${RPM_OPT_FLAGS}"
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} install
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{prefix}/lib/libmhash.so.*
%files devel
%defattr(-, root, root)
%doc AUTHORS COPYING INSTALL ChangeLog NEWS README TODO
%doc doc/example.c doc/md5-rfc1321.txt doc/mhash.html doc/skid2-authentication
%{prefix}/man/man3/mhash.3*
%{prefix}/lib/*.a
%{prefix}/lib/*.la
%{prefix}/lib/*.so
%{prefix}/include/*.h
|