Autobuild autoformatter for 79152

OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libnettle?expand=0&rev=2
This commit is contained in:
Sascha Peilicke 2011-08-18 07:36:29 +00:00 committed by Git OBS Bridge
parent 9fefcb815f
commit 744c3bc758

View File

@ -1,18 +1,36 @@
#
# spec file for package libnettle
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild # norootforbuild
Name: libnettle
Version: 2.2 Name: libnettle
Version: 2.2
Release: 1
%define soname 4 %define soname 4
%define hogweed_soname 2 %define hogweed_soname 2
Release: 0 Summary: Cryptographic Library
Summary: Cryptographic Library Url: ftp://ftp.lysator.liu.se/pub/security/lsh/nettle-%{version}.tar.gz
Url: ftp://ftp.lysator.liu.se/pub/security/lsh/nettle-%{version}.tar.gz Source: nettle-%{version}.tar.bz2
Source: nettle-%{version}.tar.bz2 Group: System/Libraries
Group: System/Libraries
License: LGPL-2.1+ and GPL-2.0+ License: LGPL-2.1+ and GPL-2.0+
BuildRoot: %{_tmppath}/build-%{name}-%{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gmp-devel BuildRequires: gmp-devel
PreReq: %install_info_prereq PreReq: %install_info_prereq
%if 0%{?suse_version} >= 1030 && 0%{?suse_version} < 1210 %if 0%{?suse_version} >= 1030 && 0%{?suse_version} < 1210
BuildRequires: licenses BuildRequires: licenses
Requires: licenses Requires: licenses
@ -24,8 +42,9 @@ less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space. Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
%package -n libnettle%{soname} %package -n libnettle%{soname}
Summary: Cryptographic Library
Group: System/Libraries Summary: Cryptographic Library
Group: System/Libraries
License: LGPL-2.1+ License: LGPL-2.1+
%description -n libnettle%{soname} %description -n libnettle%{soname}
@ -34,8 +53,9 @@ less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space. Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
%package -n libhogweed%{hogweed_soname} %package -n libhogweed%{hogweed_soname}
Summary: Cryptographic Library for Public Key Algorithms
Group: System/Libraries Summary: Cryptographic Library for Public Key Algorithms
Group: System/Libraries
License: LGPL-2.1+ License: LGPL-2.1+
%description -n libhogweed%{hogweed_soname} %description -n libhogweed%{hogweed_soname}
@ -46,11 +66,11 @@ Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
The libhogweed library contains public key algorithms to use with libnettie. The libhogweed library contains public key algorithms to use with libnettie.
%package -n libnettle-devel %package -n libnettle-devel
Summary: Cryptographic Library Summary: Cryptographic Library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: libnettle%{soname} = %{version} Requires: libnettle%{soname} = %{version}
Requires: libhogweed%{hogweed_soname} = %{version} Requires: libhogweed%{hogweed_soname} = %{version}
Requires: gmp-devel glibc-devel Requires: gmp-devel glibc-devel
License: LGPL-2.1+ License: LGPL-2.1+
%description -n libnettle-devel %description -n libnettle-devel
@ -59,8 +79,9 @@ less any context: In crypto toolkits for object-oriented languages (C++,
Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space. Python, Pike, ...), in applications like LSH or GNUPG, or even in kernel space.
%package -n nettle %package -n nettle
Summary: Cryptographic Tools
Group: Productivity/Security Summary: Cryptographic Tools
Group: Productivity/Security
%description -n nettle %description -n nettle
Nettle is a cryptographic library that is designed to fit easily in more or Nettle is a cryptographic library that is designed to fit easily in more or
@ -90,8 +111,11 @@ done
rm -f %{buildroot}%{_libdir}/*.a rm -f %{buildroot}%{_libdir}/*.a
%post -n libnettle%{soname} -p /sbin/ldconfig %post -n libnettle%{soname} -p /sbin/ldconfig
%postun -n libnettle%{soname} -p /sbin/ldconfig %postun -n libnettle%{soname} -p /sbin/ldconfig
%post -n libhogweed%{hogweed_soname} -p /sbin/ldconfig %post -n libhogweed%{hogweed_soname} -p /sbin/ldconfig
%postun -n libhogweed%{hogweed_soname} -p /sbin/ldconfig %postun -n libhogweed%{hogweed_soname} -p /sbin/ldconfig
%post -n libnettle-devel %post -n libnettle-devel
@ -131,9 +155,10 @@ make check
%{_bindir}/pkcs1-conv %{_bindir}/pkcs1-conv
%{_bindir}/sexp-conv %{_bindir}/sexp-conv
%{_bindir}/nettle-hash %{_bindir}/nettle-hash
%changelog
# vim: set sw=3 ts=3 noet: # vim: set sw=3 ts=3 noet:
# Local Variables: # Local Variables:
# mode: rpm-spec # mode: rpm-spec
# tab-width: 3 # tab-width: 3
# End: # End:
%changelog