[xorg-x11-drv-evdev/f14/master] automatically use git sources if gitdate is defined
Peter Hutterer
whot at fedoraproject.org
Mon Aug 23 01:24:12 UTC 2010
commit 0bbb768ea7fde342142a0fccbffdd7dc7603cb35
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Mon Aug 23 11:21:40 2010 +1000
automatically use git sources if gitdate is defined
xorg-x11-drv-evdev.spec | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/xorg-x11-drv-evdev.spec b/xorg-x11-drv-evdev.spec
index 5b1186a..593b5a9 100644
--- a/xorg-x11-drv-evdev.spec
+++ b/xorg-x11-drv-evdev.spec
@@ -7,16 +7,19 @@
Summary: Xorg X11 evdev input driver
Name: xorg-x11-drv-evdev
Version: 2.4.0
-Release: 3.%{?gitdate}%{?dist}
+Release: 3%{?gitdate:.%{gitdate}}%{dist}
URL: http://www.x.org
License: MIT
Group: User Interface/X Hardware Support
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-#Source0: ftp://ftp.x.org/pub/individual/driver/%{tarball}-%{version}.tar.bz2
+%if 0%{?gitdate}
Source0: %{tarball}-%{gitdate}.tar.bz2
Source1: make-git-snapshot.sh
Source2: commitid
+%else
+Source0: ftp://ftp.x.org/pub/individual/driver/%{tarball}-%{version}.tar.bz2
+%endif
ExcludeArch: s390 s390x
@@ -32,8 +35,7 @@ Requires: xkeyboard-config >= 1.4-1
X.Org X11 evdev input driver.
%prep
-%setup -q -n %{tarball}-%{gitdate}
-#%setup -q -n %{tarball}-%{version}
+%setup -q -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
%build
autoreconf -v --install || exit 1
@@ -74,6 +76,9 @@ X.Org X11 evdev input driver development files.
%changelog
+* Mon Aug 23 2010 Peter Hutterer <peter.hutterer at redhat.com>
+- automatically use git sources if gitdate is defined
+
* Thu Jul 08 2010 Adam Jackson <ajax at redhat.com> 2.4.0-3
- Package COPYING.
More information about the scm-commits
mailing list