]>
Commit | Line | Data |
---|---|---|
fc2e3216 | 1 | Summary: Nettle - a cryptographic library |
54742823 | 2 | Summary(pl.UTF-8): Nettle - biblioteka kryptograficzna |
fc2e3216 | 3 | Name: nettle |
09fa9275 JB |
4 | Version: 1.15 |
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 | |
09fa9275 | 9 | # Source0-md5: 6b0fd004359660b65ff3eca77b3d5fa6 |
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 JB |
71 | %{__make} \ |
72 | SHLIBLIBS="-lgmp" | |
fc2e3216 JB |
73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %post devel | |
87 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
88 | ||
89 | %postun devel | |
90 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1 | |
91 | ||
92 | %files | |
93 | %defattr(644,root,root,755) | |
94 | %doc AUTHORS ChangeLog NEWS README TODO | |
95 | %attr(755,root,root) %{_bindir}/* | |
96 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
97 | ||
98 | %files devel | |
99 | %defattr(644,root,root,755) | |
100 | %attr(755,root,root) %{_libdir}/lib*.so | |
101 | %{_includedir}/nettle | |
102 | %{_infodir}/*.info* | |
103 | ||
104 | %files static | |
105 | %defattr(644,root,root,755) | |
106 | %{_libdir}/lib*.a |