File libpinyin-avoid_download_at_buildtime.patch of Package libpinyin

Index: b/data/CMakeLists.txt
===================================================================
--- a/data/CMakeLists.txt
+++ b/data/CMakeLists.txt
@@ -45,10 +45,6 @@ add_custom_command(
         ${CMAKE_SOURCE_DIR}/data/gb_char.table
         ${CMAKE_SOURCE_DIR}/data/gbk_char.table
         ${CMAKE_SOURCE_DIR}/data/interpolation2.text
-    COMMENT
-        "Downloading textual model data..."
-    COMMAND
-       wget http://downloads.sourceforge.net/libpinyin/models/model14.text.tar.gz
     COMMAND
        tar xvf model14.text.tar.gz -C ${CMAKE_SOURCE_DIR}/data
 )
Index: b/data/Makefile.am
===================================================================
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -48,7 +48,6 @@ libpinyin_dbdir		= $(libdir)/libpinyin/d
 CLEANFILES		= $(binary_model_data)
 
 interpolation2.text:
-	wget http://downloads.sourceforge.net/libpinyin/models/model14.text.tar.gz
 	tar xvf model14.text.tar.gz -C $(top_srcdir)/data
 
 
openSUSE Build Service is sponsored by