SHA256
1
0
forked from pool/libtomcrypt
libtomcrypt/libtomcrypt.spec

114 lines
4.0 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package libtomcrypt
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2009 Exata T.I., Maringa, PR, Brasil.
#
# 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 https://bugs.opensuse.org/
#
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
%define soname libtomcrypt1
Name: libtomcrypt
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
Version: 1.18.2
Release: 0
Summary: Cryptographic Toolkit Written in Portable C
License: SUSE-Public-Domain
Group: Development/Libraries/C and C++
URL: http://libtom.org
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
Source2: %{name}.keyring
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
Source4: baselibs.conf
BuildRequires: libtommath-devel
BuildRequires: libtool
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
BuildRequires: pkgconfig
%description
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic
toolkit that provides developers with a vast array of well known published
block ciphers, one-way hash functions, chaining modes, pseudo-random number
generators, public key cryptography and a plethora of other routines.
%package -n %{soname}
Summary: Cryptographic toolkit with ciphers, hashes, PRNG and PKI
Group: System/Libraries
%description -n %{soname}
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic
toolkit that provides developers with a vast array of well known published
block ciphers, one-way hash functions, chaining modes, pseudo-random
numbergenerators, public key cryptography and a plethora of other routines.
This package contains shared libraries
%package devel
Summary: Development Files for LibTomCrypt
Group: Development/Libraries/C and C++
Requires: %{soname} = %{version}
%description devel
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic
toolkit that provides developers with a vast array of well known published
block ciphers, one-way hash functions, chaining modes, pseudo-random
numbergenerators, public key cryptography and a plethora of other routines.
This package contains headers and other development files.
%package examples
Summary: Example Files for LibTomCrypt
Group: Documentation/Other
Requires: %{name}-devel = %{version}
%description examples
LibTomCrypt is a fairly comprehensive, modular and portable cryptographic
toolkit that provides developers with a vast array of well known published
block ciphers, one-way hash functions, chaining modes, pseudo-random
numbergenerators, public key cryptography and a plethora of other routines.
This package contains example *.c files showing how to use TomCrypt library.
%prep
%autosetup
%build
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
export CFLAGS="%{optflags} -DLTM_DESC -DUSE_LTM"
%make_build LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared
%install
%make_install -f makefile.shared DESTDIR=%{buildroot} LIBPATH=%{_libdir} NODOCS=0 PREFIX=%{_prefix}
# Remove static libraries (It's upstream bug in makefile.shared I think.)
rm %{buildroot}%{_libdir}/*.a
find %{buildroot} -type f -name "*.la" -delete -print
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
%check
%make_build test CFLAGS="%{optflags}"
./test
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
%post -n %{soname} -p /sbin/ldconfig
%postun -n %{soname} -p /sbin/ldconfig
%files -n %{soname}
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
%{_libdir}/libtomcrypt.so.*
%license LICENSE
%doc README.md
%files devel
%attr(0644,root,root) %{_includedir}/tomcrypt*.h
%{_libdir}/libtomcrypt.so
Accepting request 620425 from home:deadpoint:branches:security - v1.18.2 - Fix Side Channel Based ECDSA Key Extraction (CVE-2018-12437) (PR #408) - Fix potential stack overflow when DER flexi-decoding (CVE-2018-0739) (PR #373) - Fix two-key 3DES (PR #390) - Fix accelerated CTR mode (PR #359) - Fix Fortuna PRNG (PR #363) - Fix compilation on platforms where cc doesn't point to gcc (PR #382) - Fix using the wrong environment variable LT instead of LIBTOOL (PR #392) - Fix build on platforms where the compiler provides __WCHAR_MAX__ but wchar.h is not available (PR #390) - Fix & re-factor crypt_list_all_sizes() and crypt_list_all_constants() (PR #414) - Minor fixes (PR's #350 #351 #375 #377 #378 #379) ` - Added libtommath-devl build requirement - Added baselibs.conf - v1.18.1 - Fix wrong SHA3 blocksizes, thanks to Claus Fischer for reporting this via Mail (PR #329) - Fix NULL-pointer dereference in `ccm_memory()` with LTC_CLEAN_STACK enabled (PR #327) - Fix `ccm_process()` being unable to process input buffers longer than 256 bytes (PR #326) - Fix the `register_all_{ciphers,hashes,prngs}()` return values (PR #316) - Fix some typos, warnings and duplicate prototypes in code & doc (PR's #310 #320 #321 #335) - Fix possible undefined behavior with LTC_PTHREAD (PR #337) - Fix some DER bugs (PR #339) - Fix CTR-mode when accelerator is used (OP-TEE/optee_os #2086) - Fix installation procedure (Issue #340) - udpate to version 1.18.0 - removed up upstream patches OBS-URL: https://build.opensuse.org/request/show/620425 OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=12
2018-07-12 12:33:03 +00:00
%{_libdir}/pkgconfig/libtomcrypt.pc
%files examples
%doc demos
%changelog