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
41 mkdir -p %{buildroot}/usr/share/license
42 cp COPYING.LIB %{buildroot}/usr/share/license/%{name}
45 rm -rf $RPM_BUILD_ROOT
48 /usr/share/license/%{name}
49 %manifest nettle.manifest
52 %{_libdir}/libnettle.so.%{nettlemajor}*
53 %{_libdir}/libhogweed.so.%{hogweedmajor}*
56 %{_libdir}/libnettle.so
57 %{_libdir}/libhogweed.so
60 %post -p /sbin/ldconfig
62 %postun -p /sbin/ldconfig