SHA256
1
0
forked from pool/libtomcrypt

Accepting request 1078478 from security

- Modernise spec file
- Run tests during build (forwarded request 1072834 from pluskalm)

OBS-URL: https://build.opensuse.org/request/show/1078478
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtomcrypt?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2023-04-12 10:51:15 +00:00 committed by Git OBS Bridge
commit 29dce26624
2 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Mar 18 11:29:17 UTC 2023 - Martin Pluskal <mpluskal@suse.com>
- Modernise spec file
- Run tests during build
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Sep 23 19:45:14 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de> Mon Sep 23 19:45:14 UTC 2019 - Stefan Brüns <stefan.bruens@rwth-aachen.de>

View File

@ -1,7 +1,7 @@
# #
# spec file for package libtomcrypt # spec file for package libtomcrypt
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2023 SUSE LLC
# Copyright (c) 2009 Exata T.I., Maringa, PR, Brasil. # Copyright (c) 2009 Exata T.I., Maringa, PR, Brasil.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -13,7 +13,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -24,7 +24,7 @@ Release: 0
Summary: Cryptographic Toolkit Written in Portable C Summary: Cryptographic Toolkit Written in Portable C
License: SUSE-Public-Domain License: SUSE-Public-Domain
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Url: http://libtom.org URL: http://libtom.org
Source0: https://github.com/libtom/libtomcrypt/releases/download/v%{version}/crypt-%{version}.tar.xz Source0: https://github.com/libtom/libtomcrypt/releases/download/v%{version}/crypt-%{version}.tar.xz
Source1: https://github.com/libtom/libtomcrypt/releases/download/v%{version}/crypt-%{version}.tar.xz.asc Source1: https://github.com/libtom/libtomcrypt/releases/download/v%{version}/crypt-%{version}.tar.xz.asc
Source2: %{name}.keyring Source2: %{name}.keyring
@ -78,11 +78,11 @@ numbergenerators, public key cryptography and a plethora of other routines.
This package contains example *.c files showing how to use TomCrypt library. This package contains example *.c files showing how to use TomCrypt library.
%prep %prep
%setup -q -n %{name}-%{version} %autosetup
%build %build
export CFLAGS="%{optflags} -DLTM_DESC -DUSE_LTM" export CFLAGS="%{optflags} -DLTM_DESC -DUSE_LTM"
make %{?_smp_mflags} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared %make_build LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
%install %install
%make_install -f makefile.shared DESTDIR=%{buildroot} LIBPATH=%{_libdir} NODOCS=0 PREFIX=%{_prefix} %make_install -f makefile.shared DESTDIR=%{buildroot} LIBPATH=%{_libdir} NODOCS=0 PREFIX=%{_prefix}
@ -91,6 +91,8 @@ rm %{buildroot}%{_libdir}/*.a
find %{buildroot} -type f -name "*.la" -delete -print find %{buildroot} -type f -name "*.la" -delete -print
%check %check
%make_build test CFLAGS="%{optflags}"
./test
%post -n %{soname} -p /sbin/ldconfig %post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig %postun -n %{soname} -p /sbin/ldconfig