[php-doctrine-lexer] Conditional %{?dist}

Shawn Iwinski siwinski at fedoraproject.org
Mon Jan 6 16:26:59 UTC 2014


commit f134e1288509e8c6f5c7b3211f29fbf3ee9006e1
Author: Shawn Iwinski <siwinski at redhat.com>
Date:   Mon Jan 6 11:26:42 2014 -0500

    Conditional %{?dist}

 php-doctrine-lexer.spec |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/php-doctrine-lexer.spec b/php-doctrine-lexer.spec
index f529244..6cf88e5 100644
--- a/php-doctrine-lexer.spec
+++ b/php-doctrine-lexer.spec
@@ -3,14 +3,14 @@
 %global github_version 1.0
 %global github_commit  f12a5f74e5f4a9e3f558f3288504e121edfad891
 # Additional commits after v1.0 tag
-%global github_release 20131220git%(c=%{github_commit}; echo ${c:0:7})
+%global github_release .20131220git%(c=%{github_commit}; echo ${c:0:7})
 
 # "php": ">=5.3.2"
 %global php_min_ver    5.3.2
 
 Name:          php-%{github_owner}-%{github_name}
 Version:       %{github_version}
-Release:       1.%{github_release}%{dist}
+Release:       2%{?github_release}%{?dist}
 Summary:       Base library for a lexer that can be used in top-down, recursive descent parsers
 
 Group:         Development/Libraries
@@ -57,5 +57,8 @@ cp -rp lib/* %{buildroot}/%{_datadir}/php/
 
 
 %changelog
+* Mon Jan 06 2014 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0-2.20131220gitf12a5f7
+- Conditional %%{?dist}
+
 * Mon Dec 23 2013 Shawn Iwinski <shawn.iwinski at gmail.com> 1.0-1.20131220gitf12a5f7
 - Initial package


More information about the scm-commits mailing list