]> git.pld-linux.org Git - packages/libgcrypt.git/blob - libgcrypt.spec
- automake epoch
[packages/libgcrypt.git] / libgcrypt.spec
1 Summary:        Cryptographic library based on the code from GnuPG
2 Summary(es):    Libgcrypt es una biblioteca general de desarrole embasada em GnuPG
3 Summary(pl):    Biblioteka kryptograficzna oparta na kodzie GnuPG
4 Summary(pt_BR): libgcrypt é uma biblioteca de criptografia de uso geral baseada no GnuPG
5 Name:           libgcrypt
6 Version:        1.2.0
7 Release:        6
8 License:        LGPL
9 Group:          Libraries
10 # devel versions:
11 #Source0:       ftp://ftp.gnupg.org/gcrypt/alpha/libgcrypt/%{name}-%{version}.tar.gz
12 Source0:        ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.gz
13 # Source0-md5:  5c508072d8387ce17d1ab05075c2be40
14 Patch0:         %{name}-no_libnsl.patch
15 Patch1:         %{name}-info.patch
16 Patch2:         %{name}-am18.patch
17 URL:            http://www.gnu.org/directory/security/libgcrypt.html
18 BuildRequires:  autoconf >= 2.57
19 BuildRequires:  automake >= 1:1.8.1
20 BuildRequires:  binutils >= 2:2.12
21 BuildRequires:  gcc >= 3.2
22 BuildRequires:  libgpg-error-devel >= 0.5
23 BuildRequires:  libtool >= 1:1.4.3
24 BuildRequires:  texinfo
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This is a general purpose cryptographic library based on the code from
29 GnuPG. It provides functions for all cryptograhic building blocks:
30 symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
31 algorithms (MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all
32 hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
33 integer functions, random numbers and a lot of supporting functions.
34
35 %description -l pl
36 Ten pakiet zawiera bibliotekê kryptograficzn± ogólnego przeznaczenia,
37 opart± na kodzie GnuPG. Biblioteka ta dostarcza funkcje do wszystkich
38 podstawowych bloków kryptografii: szyfrów symetrycznych (AES, DES,
39 Blowfish, CAST5, Twofish, Acrfour), algorytmów mieszaj±cych (MD5,
40 RIPE-MD160, SHA-1, RIGER-192), MAC-ów (HMAC dla wszystkich algorytmów
41 mieszaj±cych), algorytmów klucza publicznego (RSA, ElGamal, DSA),
42 funkcji du¿ych liczb ca³kowitych, liczb losowych i wiele funkcji
43 pomocniczych.
44
45 %description -l pt_BR
46 Libgcrypt é uma biblioteca de criptografia de uso geral baseada no
47 GnuPG.
48
49 %package devel
50 Summary:        Header files etc to develop libgcrypt applications
51 Summary(es):    Archivos de desarrollo de libgcrypt
52 Summary(pl):    Pliki nag³ówkowe i inne do libgcrypt
53 Summary(pt_BR): Arquivos de desenvolvimento da libgcrypt
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Requires:       libgpg-error-devel >= 0.5
57
58 %description devel
59 Header files etc to develop libgcrypt applications.
60
61 %description devel -l pl
62 Pliki nag³ówkowe i inne do libgcrypt.
63
64 %description devel -l pt_BR
65 Bibliotecas de desenvolvimento para libgcrypt.
66
67 %package static
68 Summary:        Static libgcrypt library
69 Summary(es):    Archivos de desarrollo de libgcrypt - estatico
70 Summary(pl):    Biblioteka statyczna libgcrypt
71 Summary(pt_BR): Arquivos de desenvolvimento da libgcrypt - biblioteca estática
72 Group:          Development/Libraries
73 Requires:       %{name}-devel = %{version}-%{release}
74
75 %description static
76 Static libgcrypt library.
77
78 %description static -l pl
79 Biblioteka statyczna libgcrypt.
80
81 %description static -l pt_BR
82 Bibliotecas de desenvolvimento para libgcrypt - estático.
83
84 %prep
85 %setup -q
86 %patch0 -p1
87 %patch1 -p1
88 %patch2 -p1
89
90 %build
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoconf}
94 %{__automake}
95 %configure \
96         --enable-static
97
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT \
105         m4datadir=%{_aclocaldir}
106
107 install -d $RPM_BUILD_ROOT/%{_lib}
108 mv -f $RPM_BUILD_ROOT%{_libdir}/libgcrypt.so.*.*.* $RPM_BUILD_ROOT/%{_lib}
109 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libgcrypt.so.*.*.*) \
110         $RPM_BUILD_ROOT%{_libdir}/libgcrypt.so
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %post   -p /sbin/ldconfig
116 %postun -p /sbin/ldconfig
117
118 %post devel
119 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
120
121 %postun devel
122 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
123
124 %files
125 %defattr(644,root,root,755)
126 %doc AUTHORS THANKS NEWS README ChangeLog
127 %attr(755,root,root) /%{_lib}/libgcrypt.so.*.*.*
128
129 %files devel
130 %defattr(644,root,root,755)
131 %attr(755,root,root) %{_bindir}/libgcrypt-config
132 %attr(755,root,root) %{_libdir}/libgcrypt.so
133 %{_libdir}/libgcrypt.la
134 %{_infodir}/*.info*
135 %{_includedir}/*.h
136 %{_aclocaldir}/*.m4
137
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/libgcrypt.a
This page took 0.082737 seconds and 4 git commands to generate.