From 5b51807578f5b64e02a180b9ba797a1fa28c07bc Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Jan 28 2013 05:57:57 +0000 Subject: add %snapshot --- 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 \