Update to git snapshot to fix CVEs listed below
- CVE-2013-2063
This commit is contained in:
parent
dc340bb8db
commit
5d2cb927dc
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
||||
libXtst-1.0.99.2.tar.bz2
|
||||
/libXtst-1.2.0.tar.bz2
|
||||
/libXtst-1.2.1.tar.bz2
|
||||
/libXtst-20130524.tar.bz2
|
||||
|
22
libXtst.spec
22
libXtst.spec
@ -1,12 +1,22 @@
|
||||
%global tarball libXtst
|
||||
%global gitdate 20130524
|
||||
%global gitversion e7e04b7be
|
||||
|
||||
Summary: X.Org X11 libXtst runtime library
|
||||
Name: libXtst
|
||||
Version: 1.2.1
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?gitdate:.%{gitdate}git%{gitversion}}%{?dist}
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
URL: http://www.x.org
|
||||
|
||||
Source0: ftp://ftp.x.org/pub/individual/lib/%{name}-%{version}.tar.bz2
|
||||
%if 0%{?gitdate}
|
||||
Source0: %{tarball}-%{gitdate}.tar.bz2
|
||||
Source1: make-git-snapshot.sh
|
||||
Source2: commitid
|
||||
%else
|
||||
Source0: http://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.bz2
|
||||
%endif
|
||||
|
||||
BuildRequires: xorg-x11-util-macros
|
||||
BuildRequires: autoconf automake libtool
|
||||
@ -29,7 +39,7 @@ Requires: libXi-devel%{?_isa}
|
||||
X.Org X11 libXtst development package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
|
||||
|
||||
%build
|
||||
autoreconf -v --install --force
|
||||
@ -55,7 +65,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING ChangeLog
|
||||
%doc COPYING
|
||||
%{_libdir}/libXtst.so.6
|
||||
%{_libdir}/libXtst.so.6.1.0
|
||||
|
||||
@ -68,6 +78,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_mandir}/man3/XTest*.3*
|
||||
|
||||
%changelog
|
||||
* Fri May 24 2013 Peter Hutterer <peter.hutterer@redhat.com> 1.2.1-6.20130524gite7e04b7be
|
||||
- Update to git snapshot to fix CVEs listed below
|
||||
- CVE-2013-2063
|
||||
|
||||
* Thu Mar 07 2013 Peter Hutterer <peter.hutterer@redhat.com> - 1.2.1-5
|
||||
- autoreconf for aarch64
|
||||
|
||||
|
17
make-git-snapshot.sh
Executable file
17
make-git-snapshot.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
DIRNAME=libXtst-$( date +%Y%m%d )
|
||||
|
||||
rm -rf $DIRNAME
|
||||
git clone git://git.freedesktop.org/git/xorg/lib/libXtst $DIRNAME
|
||||
cd $DIRNAME
|
||||
if [ -z "$1" ]; then
|
||||
git log | head -1
|
||||
else
|
||||
git checkout $1
|
||||
fi
|
||||
git log | head -1 | awk '{ print $2 }' > ../commitid
|
||||
git repack -a -d
|
||||
cd ..
|
||||
tar jcf $DIRNAME.tar.bz2 $DIRNAME
|
||||
rm -rf $DIRNAME
|
Loading…
Reference in New Issue
Block a user