Accepting request 84675 from devel:libraries:c_c++

- BuildRequire pkgconfig to fix rpmlint warning (forwarded request 84667 from elvigia)

OBS-URL: https://build.opensuse.org/request/show/84675
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnettle?expand=0&rev=6
This commit is contained in:
Sascha Peilicke 2011-09-26 08:07:48 +00:00 committed by Git OBS Bridge
parent d123741ad4
commit 1abde36d26
2 changed files with 17 additions and 11 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Sep 24 15:58:07 UTC 2011 - crrodriguez@opensuse.org
- BuildRequire pkgconfig to fix rpmlint warning
-------------------------------------------------------------------
Mon Sep 19 19:04:36 UTC 2011 - crrodriguez@opensuse.org

View File

@ -15,22 +15,22 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: libnettle
Version: 2.4
Release: 3
License: LGPL-2.1+ and GPL-2.0+
%define soname 4
%define hogweed_soname 2
Summary: Cryptographic Library
Group: System/Libraries
Source0: ftp://ftp.lysator.liu.se/pub/security/lsh/nettle-%{version}.tar.gz
Source1: baselibs.conf
Group: System/Libraries
License: LGPL-2.1+ and GPL-2.0+
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gmp-devel
BuildRequires: pkgconfig
PreReq: %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Nettle is a cryptographic library that is designed to fit easily in more or
@ -39,9 +39,9 @@ Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
%package -n libnettle%{soname}
License: LGPL-2.1+
Summary: Cryptographic Library
Group: System/Libraries
License: LGPL-2.1+
%description -n libnettle%{soname}
Nettle is a cryptographic library that is designed to fit easily in more or
@ -50,9 +50,9 @@ Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
%package -n libhogweed%{hogweed_soname}
License: LGPL-2.1+
Summary: Cryptographic Library for Public Key Algorithms
Group: System/Libraries
License: LGPL-2.1+
%description -n libhogweed%{hogweed_soname}
Nettle is a cryptographic library that is designed to fit easily in more or
@ -62,12 +62,13 @@ Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
The libhogweed library contains public key algorithms to use with libnettie.
%package -n libnettle-devel
License: LGPL-2.1+
Summary: Cryptographic Library
Group: Development/Libraries/C and C++
Requires: libnettle%{soname} = %{version}
Requires: glibc-devel
Requires: gmp-devel
Requires: libhogweed%{hogweed_soname} = %{version}
Requires: gmp-devel glibc-devel
License: LGPL-2.1+
Requires: libnettle%{soname} = %{version}
%description -n libnettle-devel
Nettle is a cryptographic library that is designed to fit easily in more or
@ -94,7 +95,7 @@ operations using the nettle library.
%configure --disable-static \
--enable-shared
%__make %{?jobs:-j%{jobs}}
make %{?_smp_mflags}
%install
%makeinstall
@ -115,7 +116,7 @@ rm -f %{buildroot}%{_libdir}/*.a
%install_info_delete --info-dir="%{_infodir}" "%{_infodir}"/nettle.info%{ext_info}
%clean
%__rm -rf "%{buildroot}"
rm -rf %{buildroot}
%check
make check