From 973e69e824e07ebdb6e3230ec8dabb691386ff74bb99a8e4c394ad7c1f3dae86 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 25 Nov 2011 22:19:26 +0000 Subject: [PATCH] Remove redundant/unwanted tags/section (cf. specfile guidelines) OBS-URL: https://build.opensuse.org/package/show/games/widelands?expand=0&rev=30 --- widelands.changes | 6 ++++++ widelands.spec | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/widelands.changes b/widelands.changes index 0975f07..3eabf3c 100644 --- a/widelands.changes +++ b/widelands.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 25 22:06:22 UTC 2011 - jengelh@medozas.de + +- Remove redundant/unwanted tags/section (cf. specfile guidelines) +- Simplify call to perl-rename + ------------------------------------------------------------------- Fri Nov 25 08:07:31 UTC 2011 - jreidinger@suse.com diff --git a/widelands.spec b/widelands.spec index 7c9f042..f1d2fbc 100644 --- a/widelands.spec +++ b/widelands.spec @@ -24,7 +24,7 @@ Release: 1 Summary: Open source realtime-strategy game Group: Amusements/Games/Strategy/Other License: GPLv2+ -Url: http://www.widelands.org +URL: http://www.widelands.org Source0: %name-build16-src.tar.bz2 Source1: %{name}.desktop BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -64,7 +64,6 @@ perhaps will have a thought, what Widelands is all about. %package data Summary: Data files for Widelands -License: GPLv2+ Requires: %{name} = %{version} %if 0%{?suse_version} >= 1120 BuildArch: noarch @@ -79,7 +78,7 @@ Data files for Widelands. Including localization, maps graphics and music. # for launchpad translation update cd .. tar -xzf %SOURCE2 -find po -name "*.po" |perl -ne 'chomp;$a=$_;$a=~s/\/[^\/]*-/\//; rename $_,"widelands/$a";' +find po -name "*.po" |perl -ne 'chomp;$a=$_;$a=~s{/[^/]*-}{/}; rename $_,"widelands/$a";' %endif %build @@ -112,9 +111,6 @@ install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.de %fdupes $RPM_BUILD_ROOT%{_datadir} %find_lang %{name} --all-name -%clean -rm -rf $RPM_BUILD_ROOT - %files %defattr(-,root,root,-) %doc COPYING CREDITS ChangeLog