]> git.pld-linux.org Git - packages/libgcrypt.git/blame - libgcrypt.spec
- updated to 1.10.1
[packages/libgcrypt.git] / libgcrypt.spec
CommitLineData
a01c2c55 1#
db595231 2# Conditional build:
9885abc4 3%bcond_with dietlibc # static dietlibc library
ffb9394c 4%bcond_with libcap # Linux capabilities usage
fd9ca9a8 5#
4ecd37fd 6Summary: Cryptographic library based on the code from GnuPG
20b5cab2
ER
7Summary(es.UTF-8): Libgcrypt es una biblioteca general de desarrole embasada em GnuPG
8Summary(pl.UTF-8): Biblioteka kryptograficzna oparta na kodzie GnuPG
9Summary(pt_BR.UTF-8): libgcrypt é uma biblioteca de criptografia de uso geral baseada no GnuPG
4ecd37fd 10Name: libgcrypt
9885abc4 11Version: 1.10.1
f8778084 12Release: 1
3804524e 13License: LGPL v2.1+
4ecd37fd 14Group: Libraries
44126e3c 15Source0: ftp://ftp.gnupg.org/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2
9885abc4 16# Source0-md5: 8fadbe1fddafa341dce5ef3869f70e25
3804524e 17Patch0: %{name}-info.patch
25369dba 18Patch1: %{name}-libgcrypt_config.patch
27a21139 19URL: https://directory.fsf.org/wiki/Libgcrypt
53fa4918 20BuildRequires: autoconf >= 2.60
25454cff 21BuildRequires: automake >= 1:1.14
9b03de5c 22BuildRequires: binutils >= 2:2.12
393f4c30 23%{?with_dietlibc:BuildRequires: dietlibc-static >= 2:0.31-5}
3c1a6646 24BuildRequires: gcc >= 5:3.2
9f887196 25%{?with_libcap:BuildRequires: libcap-devel}
099faaf4 26BuildRequires: libgpg-error-devel >= 1.27
37929a93 27BuildRequires: libtool >= 2:2.2.6
7d8f3174 28BuildRequires: texinfo
099faaf4 29Requires: libgpg-error >= 1.27
9885abc4
JB
30# getrandom() for getentropy()
31Requires: uname(release) >= 3.17
4ecd37fd
GS
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
393f4c30
JR
34# for some reason known only to rpm there must be "\\|" not "\|" here
35%define dietarch %(echo %{_target_cpu} | sed -e 's/i.86\\|pentium.\\|athlon/i386/;s/amd64/x86_64/;s/armv.*/arm/')
36%define dietlibdir %{_prefix}/lib/dietlibc/lib-%{dietarch}
37
4ecd37fd
GS
38%description
39This is a general purpose cryptographic library based on the code from
40GnuPG. It provides functions for all cryptograhic building blocks:
a7d3a772 41symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour), hash
4ecd37fd
GS
42algorithms (MD5, RIPE-MD160, SHA-1, TIGER-192), MACs (HMAC for all
43hash algorithms), public key algorithms (RSA, ElGamal, DSA), large
44integer functions, random numbers and a lot of supporting functions.
45
b50b58a0 46%description -l pl.UTF-8
3535d24f 47Ten pakiet zawiera bibliotekę kryptograficzną ogólnego przeznaczenia,
48opartą na kodzie GnuPG. Biblioteka ta dostarcza funkcje do wszystkich
49podstawowych bloków kryptografii: szyfrów symetrycznych (AES, DES,
50Blowfish, CAST5, Twofish, Acrfour), algorytmów mieszających (MD5,
51RIPE-MD160, SHA-1, RIGER-192), MAC-ów (HMAC dla wszystkich algorytmów
52mieszających), algorytmów klucza publicznego (RSA, ElGamal, DSA),
53funkcji dużych liczb całkowitych, liczb losowych i wiele funkcji
54pomocniczych.
a7d3a772 55
b50b58a0
JR
56%description -l pt_BR.UTF-8
57Libgcrypt é uma biblioteca de criptografia de uso geral baseada no
7d8f3174 58GnuPG.
59
f5cdaef6 60%package tools
f8778084
ŁK
61Summary: Additional binary tools for libgcrypt
62Summary(pl.UTF-8): Dodatkowe narzędzia dla biblioteki libgcrypt
63Group: Development/Libraries
64Requires: %{name} = %{version}-%{release}
f5cdaef6
ŁM
65
66%description tools
335309d0
JB
67Additional binary tools for libgcrypt.
68
69%description tools -l pl.UTF-8
70Dodatkowe narzędzia dla biblioteki libgcrypt.
f5cdaef6 71
4ecd37fd
GS
72%package devel
73Summary: Header files etc to develop libgcrypt applications
20b5cab2
ER
74Summary(es.UTF-8): Archivos de desarrollo de libgcrypt
75Summary(pl.UTF-8): Pliki nagłówkowe i inne do libgcrypt
76Summary(pt_BR.UTF-8): Arquivos de desenvolvimento da libgcrypt
4ecd37fd 77Group: Development/Libraries
01efb238 78Requires: %{name} = %{version}-%{release}
9f887196 79%{?with_libcap:Requires: libcap-devel}
e7d29211 80Requires: libgpg-error-devel >= 1.25
4ecd37fd
GS
81
82%description devel
83Header files etc to develop libgcrypt applications.
84
b50b58a0
JR
85%description devel -l pl.UTF-8
86Pliki nagłówkowe i inne do libgcrypt.
4ecd37fd 87
b50b58a0 88%description devel -l pt_BR.UTF-8
7d8f3174 89Bibliotecas de desenvolvimento para libgcrypt.
90
cb76832e 91%package static
92Summary: Static libgcrypt library
20b5cab2
ER
93Summary(es.UTF-8): Archivos de desarrollo de libgcrypt - estatico
94Summary(pl.UTF-8): Biblioteka statyczna libgcrypt
95Summary(pt_BR.UTF-8): Arquivos de desenvolvimento da libgcrypt - biblioteca estática
cb76832e 96Group: Development/Libraries
01efb238 97Requires: %{name}-devel = %{version}-%{release}
cb76832e 98
99%description static
100Static libgcrypt library.
101
b50b58a0 102%description static -l pl.UTF-8
cb76832e 103Biblioteka statyczna libgcrypt.
104
b50b58a0
JR
105%description static -l pt_BR.UTF-8
106Bibliotecas de desenvolvimento para libgcrypt - estático.
7d8f3174 107
393f4c30
JR
108%package dietlibc
109Summary: Static dietlibc libgcrypt library
110Summary(pl.UTF-8): Biblioteka statyczna dietlibc libgcrypt
111Group: Development/Libraries
112Requires: %{name}-devel = %{version}-%{release}
113
114%description dietlibc
115Static dietlibc libgcrypt library.
116
117%description dietlibc -l pl.UTF-8
118Biblioteka statyczna dietlibc libgcrypt.
119
4ecd37fd
GS
120%prep
121%setup -q
7d8f3174 122%patch0 -p1
123%patch1 -p1
4ecd37fd
GS
124
125%build
25369dba 126%{__rm} m4/libtool.m4
7d8f3174 127%{__libtoolize}
16ad79d3 128%{__aclocal} -I m4
34926466 129%{__autoconf}
01efb238 130%{__automake}
393f4c30
JR
131
132%if %{with dietlibc}
cb76832e 133%configure \
68508f33 134 CC="diet %{__cc} %{rpmcflags} %{rpmldflags} -Os" \
db595231 135 --enable-static \
393f4c30
JR
136 --disable-shared
137
138# libtool sucks, build just the libs
37929a93 139%{__make} -C compat
393f4c30
JR
140%{__make} -C cipher
141%{__make} -C mpi
142%{__make} -C random
c4b9e883
JB
143%{__make} -C src \
144 PROGRAMS=
9885abc4 145%{__mv} src/.libs/libgcrypt.a diet-libgcrypt.a
393f4c30
JR
146%{__make} clean
147%endif
148
149%configure \
9f887196
JB
150 --enable-static \
151 %{?with_libcap:--with-capabilities}
565dcb22 152
4ecd37fd
GS
153%{__make}
154
155%install
156rm -rf $RPM_BUILD_ROOT
393f4c30 157%{?with_dietlibc:install -d $RPM_BUILD_ROOT%{dietlibdir}}
cb76832e 158
159%{__make} install \
160 DESTDIR=$RPM_BUILD_ROOT \
161 m4datadir=%{_aclocaldir}
4ecd37fd 162
4759a87d 163install -d $RPM_BUILD_ROOT/%{_lib}
9885abc4 164%{__mv} $RPM_BUILD_ROOT%{_libdir}/libgcrypt.so.* $RPM_BUILD_ROOT/%{_lib}
3804524e 165ln -sf /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libgcrypt.so.*.*.*) \
4759a87d
JB
166 $RPM_BUILD_ROOT%{_libdir}/libgcrypt.so
167
393f4c30
JR
168%{?with_dietlibc:install diet-libgcrypt.a $RPM_BUILD_ROOT%{dietlibdir}/libgcrypt.a}
169
4ecd37fd
GS
170%clean
171rm -rf $RPM_BUILD_ROOT
172
a7d3a772
JB
173%post -p /sbin/ldconfig
174%postun -p /sbin/ldconfig
175
ca354e80 176%post devel -p /sbin/postshell
75a5f44a 177-/usr/sbin/fix-info-dir -c %{_infodir}
7d8f3174 178
ca354e80 179%postun devel -p /sbin/postshell
75a5f44a 180-/usr/sbin/fix-info-dir -c %{_infodir}
7d8f3174 181
4ecd37fd
GS
182%files
183%defattr(644,root,root,755)
3804524e 184%doc AUTHORS ChangeLog NEWS README THANKS TODO
f5cdaef6
ŁM
185%attr(755,root,root) /%{_lib}/libgcrypt.so.*.*.*
186%attr(755,root,root) %ghost /%{_lib}/libgcrypt.so.20
187
188%files tools
189%defattr(644,root,root,755)
ca354e80
JB
190%attr(755,root,root) %{_bindir}/dumpsexp
191%attr(755,root,root) %{_bindir}/hmac256
c4b9e883 192%attr(755,root,root) %{_bindir}/mpicalc
c4b9e883 193%{_mandir}/man1/hmac256.1*
4ecd37fd
GS
194
195%files devel
196%defattr(644,root,root,755)
35243943 197%attr(755,root,root) %{_bindir}/libgcrypt-config
4759a87d
JB
198%attr(755,root,root) %{_libdir}/libgcrypt.so
199%{_libdir}/libgcrypt.la
3804524e 200%{_includedir}/gcrypt*.h
a890b62b 201%{_pkgconfigdir}/libgcrypt.pc
3804524e 202%{_aclocaldir}/libgcrypt.m4
a890b62b 203%{_infodir}/gcrypt.info*
cb76832e 204
205%files static
206%defattr(644,root,root,755)
4759a87d 207%{_libdir}/libgcrypt.a
393f4c30
JR
208
209%if %{with dietlibc}
210%files dietlibc
211%defattr(644,root,root,755)
212%{dietlibdir}/libgcrypt.a
db595231 213%endif
This page took 0.217244 seconds and 4 git commands to generate.