[ibus-libpinyin] add %snapshot

Peng Wu pwu at fedoraproject.org
Mon Jan 28 06:03:37 UTC 2013


commit 5b51807578f5b64e02a180b9ba797a1fa28c07bc
Author: Peng Wu <alexepico at gmail.com>
Date:   Mon Jan 28 13:57:57 2013 +0800

    add %snapshot

 ibus-libpinyin.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/ibus-libpinyin.spec b/ibus-libpinyin.spec
index 2389506..96b46f1 100644
--- a/ibus-libpinyin.spec
+++ b/ibus-libpinyin.spec
@@ -1,3 +1,5 @@
+%global snapshot 1
+
 Name:       ibus-libpinyin
 Version:    1.4.93
 Release:    4%{?dist}
@@ -6,7 +8,9 @@ License:    GPLv2+
 Group:      System Environment/Libraries
 URL:        https://github.com/libpinyin/ibus-libpinyin
 Source0:    https://github.com/downloads/libpinyin/ibus-libpinyin/%{name}-%{version}.tar.gz
+%if %snapshot
 Patch0:     ibus-libpinyin-1.5.x-head.patch
+%endif
 
 BuildRequires:  gettext-devel
 BuildRequires:  intltool
@@ -36,7 +40,9 @@ input method based on libpinyin for IBus.
 
 %prep
 %setup -q
+%if %snapshot
 %patch0 -p1 -b .head
+%endif
 
 %build
 %configure --disable-static \


More information about the scm-commits mailing list