1 |
Summary: Lincity - A City Simulation Game |
2 |
Name: lincity-ng |
3 |
Version: 2.0 |
4 |
Release: %mkrel 4 |
5 |
Source0: http://download.berlios.de/lincity-ng/%{name}-%{version}.tar.bz2 |
6 |
Patch0: lincity-ng-1.1.2-fix-desktop.patch |
7 |
Patch1: lincity-ng-2.0-fix-str-fmt.patch |
8 |
License: GPLv2+ |
9 |
URL: http://lincity-ng.berlios.de/ |
10 |
Group: Games/Other |
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
12 |
BuildRequires: imagemagick |
13 |
BuildRequires: jam |
14 |
BuildRequires: zlib-devel libxml2-devel |
15 |
BuildRequires: X11-devel |
16 |
BuildRequires: SDL-devel SDL_mixer-devel SDL_image-devel SDL_ttf-devel libSDL_gfx-devel |
17 |
BuildRequires: libphysfs-devel desktop-file-utils |
18 |
Obsoletes: lincity |
19 |
Provides: lincity |
20 |
|
21 |
%description |
22 |
Lincity is a city simulation game. Build your city up from a primitive village |
23 |
to an advanced civilization. Build a sustainable economy, or build rockets to |
24 |
escape from a pollution ridden and resource starved planet. |
25 |
|
26 |
LinCity-NG is a polished and improved version of the classic LinCity game with |
27 |
a new iso-3D graphics engine, with a completely redone and modern GUI. |
28 |
|
29 |
%prep |
30 |
%setup -q |
31 |
%patch0 -p0 |
32 |
%patch1 -p0 |
33 |
|
34 |
%build |
35 |
%configure2_5x --bindir=%{_gamesbindir} \ |
36 |
--datadir=%{_gamesdatadir} \ |
37 |
--with-gzip \ |
38 |
--with-svga \ |
39 |
--with-x \ |
40 |
--disable-rpath |
41 |
jam %_smp_mflags |
42 |
|
43 |
%install |
44 |
rm -fr %{buildroot} |
45 |
DESTDIR=%{buildroot} jam install |
46 |
mkdir -p %{buildroot}%{_miconsdir} |
47 |
convert -size 48x48 data/%{name}.png %{buildroot}%{_miconsdir}/%{name}.png |
48 |
mkdir -p %{buildroot}%{_iconsdir} |
49 |
convert -size 32x32 data/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png |
50 |
mkdir -p %{buildroot}%{_liconsdir} |
51 |
convert -size 16x16 data/%{name}.png %{buildroot}%{_liconsdir}/%{name}.png |
52 |
|
53 |
%find_lang %{name} |
54 |
|
55 |
mkdir -p %buildroot%_datadir/applications |
56 |
desktop-file-install --vendor="" --delete-original \ |
57 |
--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_gamesdatadir}/applications/* |
58 |
|
59 |
mkdir -p %buildroot%_datadir/pixmaps |
60 |
mv %buildroot%{_gamesdatadir}/pixmaps/* %buildroot%_datadir/pixmaps |
61 |
|
62 |
rm -fr %buildroot%_gamesdatadir/doc |
63 |
|
64 |
%clean |
65 |
rm -rf %{buildroot} |
66 |
|
67 |
%files -f %{name}.lang |
68 |
%defattr(-,root,root) |
69 |
%doc COPYING* README RELNOTES TODO |
70 |
%{_gamesbindir}/* |
71 |
%{_datadir}/pixmaps/* |
72 |
%{_datadir}/applications/* |
73 |
%{_gamesdatadir}/%{name} |
74 |
%{_miconsdir}/%{name}.png |
75 |
%{_iconsdir}/%{name}.png |
76 |
%{_liconsdir}/%{name}.png |
77 |
|
78 |
|