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