Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 6407662e393f36a88e2ed8d6fdfe7c84 > files > 5

netpanzer-0.8.2-3mdv2010.0.src.rpm

%define	name	netpanzer
%define	version	0.8.2
%define release	%mkrel 3
%define	Summary	An online multiplayer tactical warfare game

Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Games/Strategy
Summary:	%{Summary}
URL:		http://netpanzer.berlios.de/
Source0:  	http://download.berlios.de/netpanzer/%{name}-%{version}.tar.bz2
Patch3:		netpanzer-0.8.2-fix-format-errors.patch
Patch4:		netpanzer-0.8.2-fix-stdc++-includes.patch
Patch5:		netpanzer-0.8.2-fix-crash-x86_64.patch
#Source10:	%{name}-16x16.png
#Source11:	%{name}-32x32.png
#Source12:	%{name}-48x48.png
BuildRequires:	SDL_net-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	jam
BuildRequires:	libwxgtk-devel
BuildRequires:	physfs-devel
BuildRequires:	libxml2-devel
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
netPanzer is an online multiplayer tactical warfare game designed for
play across the Internet and over LAN systems. One on one games are
possible via direct connect or modem. netPanzer is designed for FAST
ACTION combat -- it is not another resource management clone. In fact,
there aren't any resources at all. Each player will have many units of
different types at their disposal. Players can fight until their units
are destroyed -- then respawn and keep on going. The game is real-time,
but it's based on quick tactical action and unit management. Battles
progress quickly and constantly; in fact, they never let up. There is no
stop in the action because there is no waiting for resources to be
collected and converted into weaponry. Players can join or leave
multiplayer games at any time.

%prep
%setup -q
%patch3 -p 1
%patch4 -p 1
%patch5 -p 1

%build
CXXFLAGS="$RPM_OPT_FLAGS -O3" \
%configure2_5x	--datadir=%{_gamesdatadir} \
		--bindir=%{_gamesbindir}
perl -pi -e "s#-g3##g" Jamrules
jam -d2 %_smp_mflags

%install
%{__rm} -rf %{buildroot}
jam \
    -s libdir=%{buildroot}%{_libdir} \
    -s bindir=%{buildroot}%{_gamesbindir} \
    -s datadir=%{buildroot}%{_gamesdatadir} \
    -s mandir=%{buildroot}%{_mandir} \
    -s icondir=%{buildroot}%{_datadir}/pixmaps \
    -s appdocdir=docdir \
    -s applicationsdir=%{buildroot}%{_datadir}/applications/ install
cp docs/*.html -f docdir

mv %{buildroot}%{_gamesdatadir}/pixmaps %{buildroot}%{_datadir}/pixmaps


desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Game;StrategyGame" \
  --add-category="X-MandrivaLinux-MoreApplications-Games-Strategy" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

#%{__install} %{SOURCE10} -D %{buildroot}%{_miconsdir}/%{name}.png
#%{__install} %{SOURCE11} -D %{buildroot}%{_iconsdir}/%{name}.png
#%{__install} %{SOURCE12} -D %{buildroot}%{_liconsdir}/%{name}.png

%{__install} -d %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert %{name}.png -size 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert %{name}.png -size 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert %{name}.png -size 48x48 %{buildroot}%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc docdir/*
%{_datadir}/pixmaps/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_gamesbindir}/*



%changelog
* Mon Sep 14 2009 Thierry Vignaud <tvignaud@mandriva.com> 0.8.2-3mdv2010.0
+ Revision: 440324
- rebuild

* Mon Apr 13 2009 Guillaume Rousse <guillomovitch@mandriva.org> 0.8.2-2mdv2009.1
+ Revision: 366801
- fix build
- fix missing files
- fix crash on x86_64
- spec cleanup

  + Oden Eriksson <oeriksson@mandriva.com>
    - lowercase ImageMagick

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild
    - drop old menu
    - kill re-definition of %%buildroot on Pixel's request

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Wed Oct 24 2007 Jérôme Soyer <saispo@mandriva.org> 0.8.2-1mdv2008.1
+ Revision: 101788
- New release


* Tue Sep 12 2006 Emmanuel Andry <eandry@mandriva.org> 0.8-2mdv2007.0
- %%mkrel
- xdg menu
- build with jam instead of boost-jam (doesn't compile)
- add P0 from fedora to fix build
- add P1 and P2 from fedora for cve-2005-2295 and cve-2006-2575

* Thu Feb 03 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.8-1mdk
- 0.8

* Tue Jan 11 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.2.0-0.rc4.1mdk
- 0.2.0rc4

* Wed Nov 03 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.2.0-0.rc3.1mdk
- 0.2.0rc3
- don't quit on minor error during install

* Tue Oct 19 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.2.0-0.rc2.1mdk
- 0.2.0rc2

* Fri Mar 05 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.5-1mdk
- 0.1.5
- drop own icons, use icons shipped with source

* Tue Mar 02 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.4-2mdk
- buildrequires
- do parallel build

* Fri Feb 27 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.4-1mdk
- 0.1.4

* Thu Jan 08 2004 Olivier Blin <blino@mandrake.org> 0.1.3-2mdk
- BuildRequires (clean, libxml2-devel)

* Tue Jan 06 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.3-1mdk
- 0.1.3

* Wed Nov 12 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.2-1mdk
- 0.1.2

* Thu Oct 16 2003 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.1.1-1mdk
- initial mdk release