equal
deleted
inserted
replaced
139 |
139 |
140 %description devel |
140 %description devel |
141 Software Development Kit to embed XUL or Gecko into other applications. |
141 Software Development Kit to embed XUL or Gecko into other applications. |
142 |
142 |
143 %if %localize |
143 %if %localize |
144 |
|
145 %package translations-common |
144 %package translations-common |
146 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
145 License: MPLv1.1 or GPLv2+ or LGPLv2+ |
147 Summary: Common translations for XULRunner 2.0 |
146 Summary: Common translations for XULRunner 2.0 |
148 Group: System/Localization |
147 Group: System/Localization |
149 Requires: %{name} = %{version} |
148 Requires: %{name} = %{version} |
221 %patch15 -p1 |
220 %patch15 -p1 |
222 %patch16 -p1 |
221 %patch16 -p1 |
223 %patch17 -p1 |
222 %patch17 -p1 |
224 |
223 |
225 %build |
224 %build |
|
225 modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")" |
|
226 DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\"" |
|
227 TIME="\"$(date -d "${modified}" "+%%R")\"" |
|
228 find . -regex ".*\.c\|.*\.cpp\|.*\.h" -exec sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g" {} + |
226 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) |
229 kdehelperversion=$(cat toolkit/xre/nsKDEUtils.cpp | grep '#define KMOZILLAHELPER_VERSION' | cut -d ' ' -f 3) |
227 if test "$kdehelperversion" != %{kde_helper_version}; then |
230 if test "$kdehelperversion" != %{kde_helper_version}; then |
228 echo fix kde helper version in the .spec file |
231 echo fix kde helper version in the .spec file |
229 exit 1 |
232 exit 1 |
230 fi |
233 fi |