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