diff options
author | François Andriot <albator78@libertysurf.fr> | 2013-07-23 13:24:21 +0200 |
---|---|---|
committer | François Andriot <albator78@libertysurf.fr> | 2013-07-23 13:24:21 +0200 |
commit | 700ec263535470631ef4f6fb816000500eb4227e (patch) | |
tree | 7aeb6931d9a5bf859131c2d5511913f5bbbf40a7 /redhat/applications/gwenview-i18n/gwenview-i18n-14.0.0.spec | |
parent | a28a81a1e4d7de6ba67b1cd65d3f688582a0745e (diff) | |
download | tde-packaging-700ec263535470631ef4f6fb816000500eb4227e.tar.gz tde-packaging-700ec263535470631ef4f6fb816000500eb4227e.zip |
RPM Packaging: remove old redhat macros
Diffstat (limited to 'redhat/applications/gwenview-i18n/gwenview-i18n-14.0.0.spec')
-rw-r--r-- | redhat/applications/gwenview-i18n/gwenview-i18n-14.0.0.spec | 36 |
1 files changed, 15 insertions, 21 deletions
diff --git a/redhat/applications/gwenview-i18n/gwenview-i18n-14.0.0.spec b/redhat/applications/gwenview-i18n/gwenview-i18n-14.0.0.spec index c8f83f1e6..67ce0d3f5 100644 --- a/redhat/applications/gwenview-i18n/gwenview-i18n-14.0.0.spec +++ b/redhat/applications/gwenview-i18n/gwenview-i18n-14.0.0.spec @@ -120,33 +120,13 @@ export PATH="%{tde_bindir}:${PATH}" %__rm -rf %{buildroot} %__make install DESTDIR=%{buildroot} - - - ## File lists %find_lang gwenview -# HTML (1.0) -HTML_DIR=$(tde-config --expandvars --install html) -if [ -d %{buildroot}$HTML_DIR ]; then -for lang_dir in %{buildroot}$HTML_DIR/* ; do - if [ -d $lang_dir ]; then - lang=$(basename $lang_dir) - echo "%lang($lang) $HTML_DIR/$lang/*" >> gwenview.lang - # replace absolute symlinks with relative ones - pushd $lang_dir - for i in *; do - [ -d $i -a -L $i/common ] && rm -f $i/common && ln -sf ../common $i/common - done - popd - fi -done -fi - - # Removes useless files (-devel ?) %__rm -f %{?buildroot}%{tde_libdir}/libgwenviewcore.so + %clean %__rm -rf %{buildroot} @@ -158,6 +138,7 @@ for f in crystalsvg hicolor ; do done /sbin/ldconfig + %postun for f in crystalsvg hicolor ; do touch --no-create %{tde_datadir}/icons/${f} || : @@ -165,9 +146,22 @@ for f in crystalsvg hicolor ; do done /sbin/ldconfig + %files -f gwenview.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING TODO +%lang(da) %{tde_tdedocdir}/HTML/da/gwenview/ +%lang(de) %{tde_tdedocdir}/HTML/de/gwenview/ +%lang(et) %{tde_tdedocdir}/HTML/et/gwenview/ +%lang(fr) %{tde_tdedocdir}/HTML/fr/gwenview/ +%lang(it) %{tde_tdedocdir}/HTML/it/gwenview/ +%lang(nl) %{tde_tdedocdir}/HTML/nl/gwenview/ +%lang(pl) %{tde_tdedocdir}/HTML/pl/gwenview/ +%lang(pt) %{tde_tdedocdir}/HTML/pt/gwenview/ +%lang(pt_BR) %{tde_tdedocdir}/HTML/pt_BR/gwenview/ +%lang(ru) %{tde_tdedocdir}/HTML/ru/gwenview/ +%lang(sv) %{tde_tdedocdir}/HTML/sv/gwenview/ + %changelog * Fri Jul 05 2013 Francois Andriot <francois.andriot@free.fr> - 1.4.2-3 |