]> git.pld-linux.org Git - packages/nettle.git/blob - nettle.spec
- updated to 1.12
[packages/nettle.git] / nettle.spec
1 Summary:        Nettle - a cryptographic library
2 Summary(pl):    Nettle - biblioteka kryptograficzna
3 Name:           nettle
4 Version:        1.12
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 Source0:        ftp://ftp.lysator.liu.se/pub/security/lsh/%{name}-%{version}.tar.gz
9 # Source0-md5:  0bda9389409e48462cd8357b80a55a4f
10 Patch0:         %{name}-info.patch
11 URL:            http://www.lysator.liu.se/~nisse/lsh/
12 BuildRequires:  gmp-devel
13 BuildRequires:  m4
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 Nettle is a cryptographic library that is designed to fit easily in
18 more or less any context: In crypto toolkits for object-oriented
19 languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
20 or even in kernel space. Nettle does only one thing, the low-level
21 crypto stuff, providing simple but general interface to it. In
22 particular, Nettle doesn't do algorithm selection. It doesn't do
23 memory allocation. It doesn't do any I/O. All these is up to
24 application.
25
26 %description -l pl
27 Nettle to biblioteka kryptograficzna zaprojektowana tak, aby ³atwo
28 da³o siê jej u¿yæ w prawie ka¿dej sytuacji: w narzêdziach
29 kryptograficznych dla jêzyków zorientowanych obiektowo (C++, Python,
30 Pike...), w aplikacjach typu LSH czy GNUPG, a nawet w przestrzeni
31 j±dra. Nettle robi tylko jedn± rzecz - niskopoziomow± kryptografiê,
32 udostêpniaj±c do tego prosty, ale ogólny interfejs. Nettle nie
33 dokonuje ¿adnego wyboru algorytmu, przydzielania pamiêci, czy operacji
34 we/wy - pozostawia to aplikacji.
35
36 %package devel
37 Summary:        Header files for nettle library
38 Summary(pl):    Pliki nag³ówkowe biblioteki nettle
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41
42 %description devel
43 Header files for nettle library.
44
45 %description devel -l pl
46 Pliki nag³ówkowe biblioteki nettle.
47
48 %package static
49 Summary:        Static nettle library
50 Summary(pl):    Statyczna biblioteka nettle
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static nettle library.
56
57 %description static -l pl
58 Statyczna biblioteka nettle.
59
60 %prep
61 %setup -q
62 %patch -p1
63
64 %build
65 %configure \
66         --enable-shared
67
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
81
82 %post devel
83 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
84
85 %postun devel
86 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
87
88 %files
89 %defattr(644,root,root,755)
90 %doc AUTHORS ChangeLog NEWS README TODO
91 %attr(755,root,root) %{_bindir}/*
92 %attr(755,root,root) %{_libdir}/lib*.so.*.*
93
94 %files devel
95 %defattr(644,root,root,755)
96 %attr(755,root,root) %{_libdir}/lib*.so
97 %{_includedir}/nettle
98 %{_infodir}/*.info*
99
100 %files static
101 %defattr(644,root,root,755)
102 %{_libdir}/lib*.a
This page took 0.069411 seconds and 3 git commands to generate.