Hello community, here is the log from the commit of package extreme-tuxracer for openSUSE:Factory checked in at 2015-09-27 08:39:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/extreme-tuxracer (Old) and /work/SRC/openSUSE:Factory/.extreme-tuxracer.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "extreme-tuxracer" Changes: -------- --- /work/SRC/openSUSE:Factory/extreme-tuxracer/extreme-tuxracer.changes 2015-01-14 11:45:15.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.extreme-tuxracer.new/extreme-tuxracer.changes 2015-09-27 08:39:17.000000000 +0200 @@ -1,0 +2,11 @@ +Wed Sep 23 16:14:16 UTC 2015 - nemy...@opensuse.org + +- Use %{oname} instead of etr +- Change URL +- Use BuildRequires pkgconfig() instead of devel packages +- Add BuildRequires for dos2unix +- Change Description +- Use default autoreconf -fi and %make_install +- Use for suse_update_desktop_file and fdupes %if 0%{?suse_version} + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ extreme-tuxracer.spec ++++++ --- /var/tmp/diff_new_pack.LUzk2S/_old 2015-09-27 08:39:18.000000000 +0200 +++ /var/tmp/diff_new_pack.LUzk2S/_new 2015-09-27 08:39:18.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package extreme-tuxracer # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,26 @@ # +%define oname etr + Name: extreme-tuxracer Version: 0.6.0 Release: 0 Summary: Open source racing game featuring Tux the Linux Penguin -%global pkgsummary %summary License: GPL-2.0 Group: Amusements/Games/3D/Race -Url: http://www.extremetuxracer.com -Source: http://downloads.sourceforge.net/extremetuxracer/etr-%{version}.tar.xz -BuildRequires: SDL-devel -BuildRequires: SDL_mixer-devel -BuildRequires: SDL_image-devel -BuildRequires: fdupes -BuildRequires: freetype2-devel +%global pkgsummary %summary +Url: http://sourceforge.net/projects/extremetuxracer/ +Source: http://downloads.sourceforge.net/extremetuxracer/%{oname}-%{version}.tar.xz +BuildRequires: dos2unix BuildRequires: gcc-c++ BuildRequires: libpng-devel BuildRequires: libtool -BuildRequires: pkgconfig +BuildRequires: pkgconfig(SDL_image) +BuildRequires: pkgconfig(SDL_mixer) +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(sdl) + %if 0%{?sles_version} BuildRequires: Mesa-devel BuildRequires: xorg-x11-libXmu-devel @@ -46,34 +48,45 @@ BuildRequires: pkgconfig(xt) %endif %if 0%{?suse_version} +BuildRequires: fdupes BuildRequires: update-desktop-files %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description -Extreme Tux Racer is an open source racing game featuring Tux the Linux -Penguin. ETRacer continues in the tracks of Tux Racer and its forks. +Extreme Tux Racer is an open source racing game featuring Tux +the Linux Penguin. Extreme Tux Racer continues in the tracks +of Tux Racer and its forks. %prep -%setup -q -n etr-%{version} +%setup -q -n %{oname}-%{version} + +# Convert to unix line end +dos2unix gui.h gui.cpp ogl.cpp race_select.cpp version.rc data/char/samuel/start.lst %build -NOCONFIGURE=1 ./autogen.sh +autoreconf -fi + %configure make %{?_smp_mflags} %install -make DESTDIR=%{buildroot} install -%suse_update_desktop_file etr -%fdupes -s %{buildroot}%{_datadir} -rm -rf %{buildroot}%{_datadir}/doc +%make_install + +%if 0%{?suse_version} + %suse_update_desktop_file %{oname} + %fdupes -s %{buildroot}%{_prefix} +%endif + +# Remove not needed files +rm -fr %{buildroot}%{_datadir}/doc %files %defattr(-,root,root) %doc AUTHORS COPYING doc/code doc/courses_events doc/guide doc/score_algorithm -%{_bindir}/etr -%{_datadir}/etr/ -%{_datadir}/pixmaps/etr.png -%{_datadir}/applications/etr.desktop +%{_bindir}/%{oname} +%{_datadir}/%{oname}/ +%{_datadir}/pixmaps/%{oname}.png +%{_datadir}/applications/%{oname}.desktop %changelog