3 %define develname nettle-devel
6 Summary: Nettle cryptographic library
10 Group: System/Libraries
11 URL: http://www.lysator.liu.se/~nisse/nettle/
12 Source: http://www.lysator.liu.se/~nisse/archive/%{name}-%{version}.tar.gz
13 BuildRequires: autoconf
14 BuildRequires: openssl-devel
15 BuildRequires: gmp-devel
18 Nettle is a cryptographic library that is designed to fit easily in more or less any context:
19 In crypto toolkits for object-oriented languages (C++, Python, Pike, ...),
20 in applications like LSH or GNUPG, or even in kernel space.
22 %package -n %develname
23 Group: Development/C++
24 Summary: Header files for compiling against Nettle library
25 Provides: %name-devel = %{version}-%{release}
27 %description -n %develname
28 This is the development package of nettle.
34 %configure --disable-openssl --enable-shared
38 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
39 make install-shared DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
40 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
43 rm -rf $RPM_BUILD_ROOT
48 %{_libdir}/libnettle.so.%{nettlemajor}*
49 %{_libdir}/libhogweed.so.%{hogweedmajor}*
52 %{_libdir}/libnettle.so
53 %{_libdir}/libhogweed.so
56 %post -p /sbin/ldconfig
58 %postun -p /sbin/ldconfig