]> git.pld-linux.org Git - packages/mhash.git/blob - mhash.spec
- release 3 (by relup.sh)
[packages/mhash.git] / mhash.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # don't perform "make check"
4 #
5 Summary:        Hash library
6 Summary(pl.UTF-8):      Biblioteka funkcji mieszających (skrótu)
7 Summary(pt_BR.UTF-8):   Interface uniforme para vários algoritmos hash
8 Name:           mhash
9 Version:        0.9.9.9
10 Release:        3
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://dl.sourceforge.net/mhash/%{name}-%{version}.tar.bz2
14 # Source0-md5:  f91c74f9ccab2b574a98be5bc31eb280
15 Patch0:         %{name}-shared.patch
16 URL:            http://mhash.sourceforge.net/
17 BuildRequires:  autoconf >= 2.59
18 BuildRequires:  automake
19 BuildRequires:  libtool
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
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
33 RFC 2104.
34
35 %description -l pt_BR.UTF-8
36 A biblioteca mhash provê uma interface uniforme para um grande número
37 de algoritmos hash. Estes algoritmos podem ser utilizados para
38 computar checksums, digests de mensagens, e outras assinaturas. O
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.
42 A biblioteca suporta os algoritmos CRC32, MD5, SHA1, HAVAL256, TIGER,
43 RIPEMD260, GOST, CRC32B, HAVAL224, HAVAL192, HAVAL160, HAVAL128,
44 TIGER128, TIGER160, MD4, SHA256, and ADLER32.
45
46 %package devel
47 Summary:        Header files and development documentation for libmhash
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
51 Group:          Development/Libraries
52 Requires:       %{name} = %{version}-%{release}
53
54 %description devel
55 Header files and development documentation for libmhash.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe i dokumentacja programisty do libmhash.
59
60 %description devel -l pt_BR.UTF-8
61 Esse pacote contém arquivos de desenvolvimento para a biblioteca
62 mhash.
63
64 %package static
65 Summary:        Static version of libmhash
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
69 Group:          Development/Libraries
70 Requires:       %{name}-devel = %{version}-%{release}
71
72 %description static
73 Static version of libmhash.
74
75 %description static -l pl.UTF-8
76 Statyczna wersja libmhash.
77
78 %description static -l pt_BR.UTF-8
79 Esse pacote contém arquivos de desenvolvimento estáticos para a
80 biblioteca mhash.
81
82 %prep
83 %setup -q
84 %patch0 -p0
85
86 %build
87 %{__libtoolize}
88 %{__aclocal}
89 %{__autoconf}
90 %{__autoheader}
91 %{__automake}
92 %configure \
93         --enable-static
94 %{__make}
95
96 %if %{with tests}
97 LD_LIBRARY_PATH=$(pwd)/lib/.libs; export LD_LIBRARY_PATH
98 %{__make} check
99 %endif
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post   -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files
114 %defattr(644,root,root,755)
115 %doc AUTHORS ChangeLog NEWS README THANKS TODO doc/skid2-authentication
116 %attr(755,root,root) %{_libdir}/libmhash.so.*.*.*
117 %attr(755,root,root) %ghost %{_libdir}/libmhash.so.2
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/libmhash.so
122 %{_libdir}/libmhash.la
123 %{_includedir}/mhash.h
124 %{_includedir}/mutils
125 %{_mandir}/man3/mhash.3*
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libmhash.a
This page took 0.120853 seconds and 3 git commands to generate.