SHA256
1
0
forked from pool/libtomcrypt

Accepting request 625485 from home:jengelh:branches:security

- Fix RPM groups.
- Don't pipe find, use the safer -exec.

OBS-URL: https://build.opensuse.org/request/show/625485
OBS-URL: https://build.opensuse.org/package/show/security/libtomcrypt?expand=0&rev=14
This commit is contained in:
Marcus Meissner 2018-08-02 09:56:28 +00:00 committed by Git OBS Bridge
parent c470bd9489
commit 0802aa73a0
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 26 19:40:32 UTC 2018 - jengelh@inai.de
- Fix RPM groups.
- Don't pipe find, use the safer -exec.
-------------------------------------------------------------------
Thu Jul 12 12:41:50 UTC 2018 - meissner@suse.com

View File

@ -23,7 +23,7 @@ Version: 1.18.2
Release: 0
Summary: Cryptographic Toolkit Written in Portable C
License: SUSE-Public-Domain
Group: System/Libraries
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
@ -68,7 +68,7 @@ This package contains headers and other development files.
%package examples
Summary: Example Files for LibTomCrypt
Group: Development/Libraries/Other
Group: Documentation/Other
Requires: %{name}-devel = %{version}
%description examples
@ -84,7 +84,7 @@ This package contains example *.c files showing how to use TomCrypt library.
modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{SOURCE3}")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find . -name '*.[ch]' | xargs sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"
find . -name '*.[ch]' -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" "{}" "+"
%build
export CFLAGS="%{optflags} -DLTM_DESC -DUSE_LTM"