]> git.pld-linux.org Git - packages/nettle.git/blob - nettle.spec
6e1fbfb871e297ec8cc381915a5dd149765c8691
[packages/nettle.git] / nettle.spec
1 Summary:        Nettle - a cryptographic library
2 Summary(pl.UTF-8):      Nettle - biblioteka kryptograficzna
3 Name:           nettle
4 Version:        3.2
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Libraries
8 Source0:        http://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
9 # Source0-md5:  afb15b4764ebf1b4e6d06c62bd4d29e4
10 Patch0:         %{name}-info.patch
11 URL:            http://www.lysator.liu.se/~nisse/nettle/
12 BuildRequires:  ghostscript
13 BuildRequires:  gmp-devel >= 3.1
14 BuildRequires:  m4
15 BuildRequires:  tetex-dvips
16 BuildRequires:  texinfo-texi2dvi
17 Requires:       gmp >= 3.1
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
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,
34 Pike...), w aplikacjach typu LSH czy GNUPG, a nawet w przestrzeni
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
38 we/wy - pozostawia to aplikacji.
39
40 %package devel
41 Summary:        Header files for nettle library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki nettle
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
45
46 %description devel
47 Header files for nettle library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki nettle.
51
52 %package static
53 Summary:        Static nettle library
54 Summary(pl.UTF-8):      Statyczna biblioteka nettle
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 Static nettle library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka nettle.
63
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
77 %prep
78 %setup -q
79 %patch0 -p1
80
81 %build
82 %configure \
83         --enable-shared
84
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %post   devel -p /sbin/postshell
102 -/usr/sbin/fix-info-dir -c %{_infodir}
103
104 %postun devel -p /sbin/postshell
105 -/usr/sbin/fix-info-dir -c %{_infodir}
106
107 %files
108 %defattr(644,root,root,755)
109 %doc AUTHORS ChangeLog NEWS README TODO
110 %attr(755,root,root) %{_libdir}/libhogweed.so.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libhogweed.so.4
112 %attr(755,root,root) %{_libdir}/libnettle.so.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libnettle.so.6
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libhogweed.so
118 %attr(755,root,root) %{_libdir}/libnettle.so
119 %{_includedir}/nettle
120 %{_pkgconfigdir}/hogweed.pc
121 %{_pkgconfigdir}/nettle.pc
122 %{_infodir}/nettle.info*
123
124 %files static
125 %defattr(644,root,root,755)
126 %{_libdir}/libhogweed.a
127 %{_libdir}/libnettle.a
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
This page took 0.084702 seconds and 2 git commands to generate.