summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xphp-webmozart-assert2-get-source.sh2
-rw-r--r--php-webmozart-assert2.spec3
2 files changed, 3 insertions, 2 deletions
diff --git a/php-webmozart-assert2-get-source.sh b/php-webmozart-assert2-get-source.sh
index 81a3c06..76e9f57 100755
--- a/php-webmozart-assert2-get-source.sh
+++ b/php-webmozart-assert2-get-source.sh
@@ -63,7 +63,7 @@ pushd $TEMP_DIR
mv $GIT_DIR $TAR_DIR
- TAR_FILE=${SPEC_DIR}/${NAME}-${VERSION}-${GIT_COMMIT}.tar.gz
+ TAR_FILE=${SPEC_DIR}/${NAME}-${VERSION}-${GIT_COMMIT:0:7}.tar.gz
print "TAR_FILE = $TAR_FILE"
[ -e $TAR_FILE ] && rm -f $TAR_FILE
diff --git a/php-webmozart-assert2.spec b/php-webmozart-assert2.spec
index a4d77ec..1d99297 100644
--- a/php-webmozart-assert2.spec
+++ b/php-webmozart-assert2.spec
@@ -15,6 +15,7 @@
%global github_name assert
%global github_version 2.1.4
%global github_commit b39f1870fc7c3e9e4a26106df5053354b9260a33
+%global github_short %(c=%{github_commit}; echo ${c:0:7})
%global major 2
%global composer_vendor webmozart
@@ -47,7 +48,7 @@ URL: https://github.com/%{github_owner}/%{github_name}
# GitHub export does not include tests.
# Run php-webmozart-assert-get-source.sh to create full source.
-Source0: %{name}-%{github_version}-%{github_commit}.tar.gz
+Source0: %{name}-%{github_version}-%{github_short}.tar.gz
Source1: %{name}-get-source.sh
BuildArch: noarch