!3 modify spec

Merge pull request !3 from seki099/shijian
This commit is contained in:
openeuler-ci-bot 2020-01-16 15:35:36 +08:00 committed by Gitee
commit 2b2e8849db
4 changed files with 5 additions and 62 deletions

BIN
SDL-1.2.15.tar.gz Normal file

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,12 @@
Name: SDL Name: SDL
Summary: A cross-platform multimedia library Summary: A cross-platform multimedia library
Version: 1.2.15 Version: 1.2.15
Release: 34 Release: 35
License: LGPLv2+ License: LGPLv2+
URL: http://www.libsdl.org/ URL: http://www.libsdl.org/
Source0: %{name}-%{version}_repackaged.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: SDL_config.h Source1: SDL_config.h
Source2: repackage.sh
Patch0: SDL-1.2.15-add_sdl_config_man.patch Patch0: SDL-1.2.15-add_sdl_config_man.patch
Patch9000: CVE-2019-7637.patch Patch9000: CVE-2019-7637.patch
@ -98,5 +97,8 @@ rm -f %{buildroot}%{_libdir}/*.la
%{_mandir}/man3/SDL*.3* %{_mandir}/man3/SDL*.3*
%changelog %changelog
* Thu Jan 16 2020 shijian <shijian16@huawei.com> - 1.2.15-35
- Modify Spec
* Wed Nov 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2.15-34 * Wed Nov 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.2.15-34
- Package init - Package init

View File

@ -1,59 +0,0 @@
#!/bin/bash
#
# Copyright (C) 2010 Red Hat, Inc.
# Authors:
# Thomas Woerner <twoerner@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
version=$1
[ -z "$version" ] && { echo "Usage: $0 <version>"; exit 1; }
# files to be removed without the main SDL-<version>/ prefix
declare -a REMOVE
REMOVE[${#REMOVE[*]}]="symbian.zip"
# no changes below this line should be needed
orig="SDL-${version}"
orig_tgz="${orig}.tar.gz"
repackaged="${orig}_repackaged"
repackaged_tar="${repackaged}.tar"
repackaged_tgz="${repackaged_tar}.gz"
# pre checks
[ ! -f "${orig_tgz}" ] && { echo "ERROR: ${orig_tgz} does not exist"; exit 1; }
[ -f "${repackaged_tgz}" ] && { echo "ERROR: ${repackaged_tgz} already exist"; exit 1; }
# repackage
failure=0
gzip -dc "${orig_tgz}" > "${repackaged_tar}"
for file in "${REMOVE[@]}"; do
tar -f "${repackaged_tar}" --delete "${orig}/${file}" >> repackage.log
[ $? != 0 ] && { echo "ERROR: Could not remove file ${orig}/${file} from archive."; failure=1; } || echo "Removed ${orig}/${file} from archive."
done
[ $failure != 0 ] && { echo "See repackage.log for details."; exit 1; }
gzip -9 -n "${repackaged_tar}"
# post checks
RET=0
for file in "${REMOVE[@]}"; do
found=$(tar -ztvf "${repackaged_tgz}" | grep "${file}")
[ -n "$found" ] && { echo "ERROR: file ${file} is still in the repackaged archive."; RET=1; }
done
[ $RET == 0 ] && echo "Sucessfully repackaged ${orig}: ${repackaged_tgz}"
exit $RET