1 Summary: Message digest library
2 Summary(pl.UTF-8): Biblioteka skrótów wiadomości (Message Digest)
6 License: RSA non-commercial (MD2), RSA BSD-like (MD4), Public Domain (MD5)
8 Source0: ftp://ftp.penguin.cz/pub/users/mhi/libmd/%{name}-%{version}.tar.bz2
9 # Source0-md5: 1db1795b7e87bbda542e4c33b6ce5566
10 Patch0: %{name}-install.patch
11 Patch1: %{name}-types.patch
13 URL: http://martin.hinner.info/libmd/
14 BuildRequires: autoconf
15 BuildRequires: automake
16 BuildRequires: sgml-tools
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Libmd is a cryptographic message digest library. It implements these
21 message digest algorithms:
22 - MD2 (RFC 1319 - B. Kaliski)
23 - MD4 (RFC 1186 - R. Rivest)
24 - MD5 (RFC 1321 - R. Rivest)
25 - SHA-1 (FIPS PUB 180 and 180.1 - NIST)
26 - RIPEMD-160 <http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html>
28 %description -l pl.UTF-8
29 Libmd to biblioteka kryptograficznych skrótów wiadomości. Implementuje
30 następujące algorytmy skrótów wiadomości:
31 - MD2 (RFC 1319 - B. Kaliski)
32 - MD4 (RFC 1186 - R. Rivest)
33 - MD5 (RFC 1321 - R. Rivest)
34 - SHA-1 (FIPS PUB 180 oraz 180.1 - NIST)
35 - RIPEMD-160 <http://www.esat.kuleuven.ac.be/~bosselae/ripemd160.html>
38 Summary: Header files for libmd library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libmd
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
44 Header files for libmd library.
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki libmd.
50 Summary: Static libmd library
51 Summary(pl.UTF-8): Statyczna biblioteka libmd
52 Group: Development/Libraries
53 Requires: %{name}-devel = %{version}-%{release}
58 %description static -l pl.UTF-8
59 Statyczna biblioteka libmd.
68 cp -f /usr/share/automake/config.* .
73 CFLAGS="%{rpmcflags} %{rpmcppflags} -fPIC -I."
75 %{__make} -C docs libmd.txt
78 rm -rf $RPM_BUILD_ROOT
80 # install headers to include/libmd to avoid too common filenames under /usr/include
82 BUILDROOT=$RPM_BUILD_ROOT \
83 includedir=%{_includedir}/libmd \
87 rm -rf $RPM_BUILD_ROOT
89 %post -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
93 %defattr(644,root,root,755)
94 %doc README TODO md2.copyright md4.copyright md5.copyright
95 %attr(755,root,root) %{_libdir}/libmd.so.*.*
96 %attr(755,root,root) %ghost %{_libdir}/libmd.so.1
99 %defattr(644,root,root,755)
100 %doc docs/libmd.txt docs/algorithms
101 %attr(755,root,root) %{_libdir}/libmd.so
103 %{_mandir}/man3/md2.3*
104 %{_mandir}/man3/md4.3*
105 %{_mandir}/man3/md5.3*
108 %defattr(644,root,root,755)