Accepting request 111039 from home:vuntz:branches:GNOME:Factory

Remove help lang hack

OBS-URL: https://build.opensuse.org/request/show/111039
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gedit?expand=0&rev=117
This commit is contained in:
Vincent Untz 2012-03-26 08:05:08 +00:00 committed by Git OBS Bridge
parent 8932ad7c1d
commit 85dc5cedd1
2 changed files with 7 additions and 10 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Mar 26 07:40:24 UTC 2012 - vuntz@opensuse.org
- Remove hack to find localized help: this has been fixed in
find-lang.sh.
-------------------------------------------------------------------
Tue Mar 20 20:24:21 UTC 2012 - dimstar@opensuse.org

View File

@ -19,7 +19,6 @@
Name: gedit
Version: 3.3.8
Release: 0
# FIXME: the %%{_datadir}/help/$locale/ files be found by %%find_lang
Summary: Small and lightweight UTF-8 text editor
License: GPL-2.0+
Group: Productivity/Text/Editors
@ -101,14 +100,6 @@ rm %{buildroot}%{_libdir}/*/*/*.*a
rm %{buildroot}%{_libdir}/*.la
%suse_update_desktop_file -N gedit -G "Text Editor" gedit TextEditor
%find_lang %{name} %{?no_lang_C}
# Localized help
for help in %{buildroot}%{_datadir}/help/*/%{name}/; do
LOCALE=`echo $help | sed "s:.*%{_datadir}/help/\([^/]*\)/%{name}/:\1:g"`
echo "%%lang($LOCALE) %%dir %%{_datadir}/help/$LOCALE" >> %{name}.help-lang.tmp
echo "%%lang($LOCALE) %%doc /${help##%{buildroot}}" >> %{name}.help-lang.tmp
done
sort -u %{name}.help-lang.tmp | grep -v "^%%lang(C)" > %{name}.help-lang
rm %{name}.help-lang.tmp
%fdupes %{buildroot}
%clean
@ -176,7 +167,7 @@ rm -rf %{buildroot}
%{py_sitedir}/gi/overrides/Gedit.py*
%doc %{_mandir}/man1/gedit*
%files lang -f %{name}.lang -f %{name}.help-lang
%files lang -f %{name}.lang
%files plugin-zeitgeist
%defattr(-, root, root)