]> git.pld-linux.org Git - packages/nettle.git/blob - nettle.spec
- missing BRs (ghostscript and tetex-dvips)
[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:  ghostscript
13 BuildRequires:  gmp-devel
14 BuildRequires:  m4
15 BuildRequires:  tetex-dvips
16 BuildRequires:  texinfo-texi2dvi
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
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,
33 Pike...), w aplikacjach typu LSH czy GNUPG, a nawet w przestrzeni
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
37 we/wy - pozostawia to aplikacji.
38
39 %package devel
40 Summary:        Header files for nettle library
41 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki nettle
42 Group:          Development/Libraries
43 Requires:       %{name} = %{version}-%{release}
44
45 %description devel
46 Header files for nettle library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki nettle.
50
51 %package static
52 Summary:        Static nettle library
53 Summary(pl.UTF-8):      Statyczna biblioteka nettle
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static nettle library.
59
60 %description static -l pl.UTF-8
61 Statyczna biblioteka nettle.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66
67 %build
68 %configure \
69         --enable-shared
70
71 %{__make} \
72         SHLIBLIBS="-lgmp"
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
This page took 0.146112 seconds and 3 git commands to generate.