]>
Commit | Line | Data |
---|---|---|
a4b40e3b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # don't perform "make check" | |
4 | # | |
869edb82 | 5 | Summary: Hash library |
a76b3555 ER |
6 | Summary(pl.UTF-8): Biblioteka funkcji mieszających (skrótu) |
7 | Summary(pt_BR.UTF-8): Interface uniforme para vários algoritmos hash | |
87206f21 | 8 | Name: mhash |
f873ef3f | 9 | Version: 0.9.9.9 |
d4397b70 | 10 | Release: 3 |
c3ad76d9 | 11 | License: LGPL v2+ |
055ac971 | 12 | Group: Libraries |
855300df | 13 | Source0: http://dl.sourceforge.net/mhash/%{name}-%{version}.tar.bz2 |
f873ef3f | 14 | # Source0-md5: f91c74f9ccab2b574a98be5bc31eb280 |
5d810daa | 15 | Patch0: %{name}-shared.patch |
d3d399ec | 16 | URL: http://mhash.sourceforge.net/ |
c3ad76d9 | 17 | BuildRequires: autoconf >= 2.59 |
00e8ded9 | 18 | BuildRequires: automake |
19 | BuildRequires: libtool | |
055ac971 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Mhash is a library which provides a uniform interface to a large | |
24 | number of hash algorithms. These algorithms can be used to compute | |
25 | checksums, message digests, and other signatures. The HMAC support | |
26 | implements the basics for message authentication, following RFC 2104. | |
27 | ||
2754f6ba JR |
28 | %description -l pl.UTF-8 |
29 | Mhash to biblioteka dostarczająca jednolity interfejs do dużej liczby | |
30 | algorytmów mieszających (skrótu). Te algorytmy mogą być używane do | |
31 | liczenia sum kontrolnych, oznaczeń komunikatów oraz innych sygnatur. | |
32 | Obsługa HMAC daje podstawy dla uwierzytelniania wiadomości, zgodnie z | |
febeeb09 | 33 | RFC 2104. |
9e365730 | 34 | |
2754f6ba JR |
35 | %description -l pt_BR.UTF-8 |
36 | A biblioteca mhash provê uma interface uniforme para um grande número | |
f8eaea04 ER |
37 | de algoritmos hash. Estes algoritmos podem ser utilizados para |
38 | computar checksums, digests de mensagens, e outras assinaturas. O | |
2754f6ba JR |
39 | suporte a HMAC implementa o básico para autenticação de mensagens, |
40 | seguindo o RFC 2104. Nas versões mais recentes foram adicionados | |
41 | alguns algoritmos de geração de chaves, que utilizam algoritmos hash. | |
f8eaea04 ER |
42 | A biblioteca suporta os algoritmos CRC32, MD5, SHA1, HAVAL256, TIGER, |
43 | RIPEMD260, GOST, CRC32B, HAVAL224, HAVAL192, HAVAL160, HAVAL128, | |
d3d399ec PG |
44 | TIGER128, TIGER160, MD4, SHA256, and ADLER32. |
45 | ||
055ac971 | 46 | %package devel |
47 | Summary: Header files and development documentation for libmhash | |
a76b3555 ER |
48 | Summary(es.UTF-8): Archivos de inclusión y bibliotecas de desarrollo |
49 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do libmhash | |
50 | Summary(pt_BR.UTF-8): Arquivos de desenvolvimento para a biblioteca mhash | |
055ac971 | 51 | Group: Development/Libraries |
e9bc54f2 | 52 | Requires: %{name} = %{version}-%{release} |
055ac971 | 53 | |
54 | %description devel | |
55 | Header files and development documentation for libmhash. | |
56 | ||
2754f6ba JR |
57 | %description devel -l pl.UTF-8 |
58 | Pliki nagłówkowe i dokumentacja programisty do libmhash. | |
9e365730 | 59 | |
2754f6ba JR |
60 | %description devel -l pt_BR.UTF-8 |
61 | Esse pacote contém arquivos de desenvolvimento para a biblioteca | |
febeeb09 | 62 | mhash. |
d3d399ec | 63 | |
055ac971 | 64 | %package static |
869edb82 | 65 | Summary: Static version of libmhash |
a76b3555 ER |
66 | Summary(es.UTF-8): bibliotecas estaticas mhash |
67 | Summary(pl.UTF-8): Statyczna wersja biblioteki libmhash | |
68 | Summary(pt_BR.UTF-8): Bibliotecas estáticas do mhash para desenvolvimento | |
055ac971 | 69 | Group: Development/Libraries |
e9bc54f2 | 70 | Requires: %{name}-devel = %{version}-%{release} |
055ac971 | 71 | |
72 | %description static | |
00e8ded9 | 73 | Static version of libmhash. |
055ac971 | 74 | |
2754f6ba | 75 | %description static -l pl.UTF-8 |
9e365730 JB |
76 | Statyczna wersja libmhash. |
77 | ||
2754f6ba JR |
78 | %description static -l pt_BR.UTF-8 |
79 | Esse pacote contém arquivos de desenvolvimento estáticos para a | |
febeeb09 | 80 | biblioteca mhash. |
d3d399ec | 81 | |
055ac971 | 82 | %prep |
fc860082 | 83 | %setup -q |
5d810daa | 84 | %patch0 -p0 |
b0a037a2 | 85 | |
055ac971 | 86 | %build |
807fba4d | 87 | %{__libtoolize} |
474e371d | 88 | %{__aclocal} |
1208d65f | 89 | %{__autoconf} |
e9bc54f2 | 90 | %{__autoheader} |
1208d65f | 91 | %{__automake} |
7552464f | 92 | %configure \ |
93 | --enable-static | |
d5cefe00 | 94 | %{__make} |
055ac971 | 95 | |
3c105f1e AM |
96 | %if %{with tests} |
97 | LD_LIBRARY_PATH=$(pwd)/lib/.libs; export LD_LIBRARY_PATH | |
98 | %{__make} check | |
99 | %endif | |
1eeb3090 | 100 | |
055ac971 | 101 | %install |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
d722b9ad | 104 | %{__make} install \ |
e9bc54f2 | 105 | DESTDIR=$RPM_BUILD_ROOT |
055ac971 | 106 | |
055ac971 | 107 | %clean |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
9e365730 JB |
110 | %post -p /sbin/ldconfig |
111 | %postun -p /sbin/ldconfig | |
112 | ||
055ac971 | 113 | %files |
114 | %defattr(644,root,root,755) | |
e9bc54f2 | 115 | %doc AUTHORS ChangeLog NEWS README THANKS TODO doc/skid2-authentication |
c3ad76d9 JB |
116 | %attr(755,root,root) %{_libdir}/libmhash.so.*.*.* |
117 | %attr(755,root,root) %ghost %{_libdir}/libmhash.so.2 | |
055ac971 | 118 | |
119 | %files devel | |
120 | %defattr(644,root,root,755) | |
c3ad76d9 JB |
121 | %attr(755,root,root) %{_libdir}/libmhash.so |
122 | %{_libdir}/libmhash.la | |
123 | %{_includedir}/mhash.h | |
124 | %{_includedir}/mutils | |
125 | %{_mandir}/man3/mhash.3* | |
055ac971 | 126 | |
127 | %files static | |
128 | %defattr(644,root,root,755) | |
c3ad76d9 | 129 | %{_libdir}/libmhash.a |