7090977 Remaining cddl licence parts.
authorjenda
Sun, 18 Sep 2011 00:14:10 +0200
changeset 710 c3bab8c574de
parent 709 84483152d06b
child 711 bdaa5522fce9
7090977 Remaining cddl licence parts.
specs/ibus-sunpinyin.spec
--- a/specs/ibus-sunpinyin.spec	Fri Sep 02 00:51:07 2011 +0900
+++ b/specs/ibus-sunpinyin.spec	Sun Sep 18 00:14:10 2011 +0200
@@ -45,6 +45,9 @@
 find ${RPM_BUILD_ROOT} -name "*.a" -exec rm  {} \; -print
 find ${RPM_BUILD_ROOT} -name "*.la" -exec rm {} \; -print
 
+# removing CDDL from copies of source/text files delivered to the binary product
+(cd ${RPM_BUILD_ROOT}; ggrep -rlF 'CDDL' . 2>/dev/null|xargs perl -i -ne 'print unless /The contents of this file are subject to the terms of either the GNU Lesser/ .. /to such option by the copyright holder./')
+
 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
 
 %clean