]>
Commit | Line | Data |
---|---|---|
fc2e3216 | 1 | Summary: Nettle - a cryptographic library |
54742823 | 2 | Summary(pl.UTF-8): Nettle - biblioteka kryptograficzna |
fc2e3216 | 3 | Name: nettle |
a1b7a2c8 | 4 | Version: 2.0 |
09fa9275 | 5 | Release: 1 |
fc2e3216 JB |
6 | License: GPL |
7 | Group: Libraries | |
8 | Source0: ftp://ftp.lysator.liu.se/pub/security/lsh/%{name}-%{version}.tar.gz | |
a1b7a2c8 | 9 | # Source0-md5: d813bc76b1042d76100efbc6a955d7df |
fc2e3216 JB |
10 | Patch0: %{name}-info.patch |
11 | URL: http://www.lysator.liu.se/~nisse/lsh/ | |
d65b8e1a | 12 | BuildRequires: ghostscript |
fc2e3216 JB |
13 | BuildRequires: gmp-devel |
14 | BuildRequires: m4 | |
d65b8e1a | 15 | BuildRequires: tetex-dvips |
a67d70d4 | 16 | BuildRequires: texinfo-texi2dvi |
fc2e3216 JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | Nettle is a cryptographic library that is designed to fit easily in | |
21 | more or less any context: In crypto toolkits for object-oriented | |
22 | languages (C++, Python, Pike, ...), in applications like LSH or GNUPG, | |
23 | or even in kernel space. Nettle does only one thing, the low-level | |
24 | crypto stuff, providing simple but general interface to it. In | |
25 | particular, Nettle doesn't do algorithm selection. It doesn't do | |
26 | memory allocation. It doesn't do any I/O. All these is up to | |
27 | application. | |
28 | ||
52e533c3 JR |
29 | %description -l pl.UTF-8 |
30 | Nettle to biblioteka kryptograficzna zaprojektowana tak, aby łatwo | |
31 | dało się jej użyć w prawie każdej sytuacji: w narzędziach | |
32 | kryptograficznych dla języków zorientowanych obiektowo (C++, Python, | |
fc2e3216 | 33 | Pike...), w aplikacjach typu LSH czy GNUPG, a nawet w przestrzeni |
52e533c3 JR |
34 | jądra. Nettle robi tylko jedną rzecz - niskopoziomową kryptografię, |
35 | udostępniając do tego prosty, ale ogólny interfejs. Nettle nie | |
36 | dokonuje żadnego wyboru algorytmu, przydzielania pamięci, czy operacji | |
fc2e3216 JB |
37 | we/wy - pozostawia to aplikacji. |
38 | ||
39 | %package devel | |
40 | Summary: Header files for nettle library | |
54742823 | 41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki nettle |
fc2e3216 | 42 | Group: Development/Libraries |
bd8b3db8 | 43 | Requires: %{name} = %{version}-%{release} |
fc2e3216 JB |
44 | |
45 | %description devel | |
46 | Header files for nettle library. | |
47 | ||
52e533c3 JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe biblioteki nettle. | |
fc2e3216 JB |
50 | |
51 | %package static | |
52 | Summary: Static nettle library | |
54742823 | 53 | Summary(pl.UTF-8): Statyczna biblioteka nettle |
fc2e3216 | 54 | Group: Development/Libraries |
bd8b3db8 | 55 | Requires: %{name}-devel = %{version}-%{release} |
fc2e3216 JB |
56 | |
57 | %description static | |
58 | Static nettle library. | |
59 | ||
52e533c3 | 60 | %description static -l pl.UTF-8 |
fc2e3216 JB |
61 | Statyczna biblioteka nettle. |
62 | ||
63 | %prep | |
64 | %setup -q | |
be3eb020 | 65 | %patch0 -p1 |
fc2e3216 JB |
66 | |
67 | %build | |
68 | %configure \ | |
69 | --enable-shared | |
70 | ||
b789d7e2 | 71 | %{__make} \ |
a1b7a2c8 | 72 | LIBHOGWEED_LIBS="-L. -lnettle -lgmp" |
fc2e3216 JB |
73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
a1b7a2c8 JB |
80 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir |
81 | ||
fc2e3216 JB |
82 | %clean |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %post -p /sbin/ldconfig | |
86 | %postun -p /sbin/ldconfig | |
87 | ||
a1b7a2c8 | 88 | %post devel -p /sbin/postshell |
9698e94a | 89 | -/usr/sbin/fix-info-dir -c %{_infodir} |
fc2e3216 | 90 | |
a1b7a2c8 | 91 | %postun devel -p /sbin/postshell |
9698e94a | 92 | -/usr/sbin/fix-info-dir -c %{_infodir} |
fc2e3216 JB |
93 | |
94 | %files | |
95 | %defattr(644,root,root,755) | |
96 | %doc AUTHORS ChangeLog NEWS README TODO | |
a1b7a2c8 JB |
97 | %attr(755,root,root) %{_bindir}/nettle-lfib-stream |
98 | %attr(755,root,root) %{_bindir}/pkcs1-conv | |
99 | %attr(755,root,root) %{_bindir}/sexp-conv | |
100 | %attr(755,root,root) %{_libdir}/libhogweed.so.*.* | |
101 | %attr(755,root,root) %ghost %{_libdir}/libhogweed.so.1 | |
102 | %attr(755,root,root) %{_libdir}/libnettle.so.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libnettle.so.3 | |
fc2e3216 JB |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
a1b7a2c8 JB |
107 | %attr(755,root,root) %{_libdir}/libhogweed.so |
108 | %attr(755,root,root) %{_libdir}/libnettle.so | |
fc2e3216 | 109 | %{_includedir}/nettle |
a1b7a2c8 | 110 | %{_infodir}/nettle.info* |
fc2e3216 JB |
111 | |
112 | %files static | |
113 | %defattr(644,root,root,755) | |
a1b7a2c8 JB |
114 | %{_libdir}/libhogweed.a |
115 | %{_libdir}/libnettle.a |