1 | %define alias_ttf /usr/share/fonts/TrueType-vlgothic/VL-PGothic-Regular.ttf |
---|
2 | |
---|
3 | %define name lincity-ng |
---|
4 | %define version 2.0 |
---|
5 | %define release 4%{?_dist_release} |
---|
6 | Summary: City Simulation Game |
---|
7 | Summary(ja): 都市シミュレーションゲーム |
---|
8 | Name: %{name} |
---|
9 | Version: %{version} |
---|
10 | Release: %{release} |
---|
11 | Source: http://download.berlios.de/%{name}/%{name}-%{version}.tar.bz2 |
---|
12 | License: GNU General Public License |
---|
13 | Group: Applications/Games |
---|
14 | URL: http://lincity-ng.berlios.de/ |
---|
15 | |
---|
16 | Requires: TrueType-vlgothic |
---|
17 | Requires: SDL, SDL_image, SDL_mixer, SDL_ttf, SDL_gfx, |
---|
18 | Requires: zlib, libxml2, physfs |
---|
19 | BuildRequires: SDL-devel, SDL_image-devel, SDL_mixer-devel, |
---|
20 | BuildRequires: SDL_ttf-devel, SDL_gfx-devel, |
---|
21 | BuildRequires: mesa-libGL-devel, mesa-libGLU-devel |
---|
22 | BuildRequires: zlib-devel, libxml2-devel, physfs-devel, |
---|
23 | BuildRequires: jam, vorbis-tools |
---|
24 | BuildRequires(check): desktop-file-utils |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
26 | |
---|
27 | %description |
---|
28 | LinCity-NG is a City Simulation Game. It is a polished and improved |
---|
29 | version of the old LinCity game. Within the scope of the GoTM |
---|
30 | project at happypenguin.org we create a new iso-3d graphics engine |
---|
31 | together with completely redone modern gui. |
---|
32 | |
---|
33 | %description |
---|
34 | LinCity-NG は都市シミュレーションゲームです。 |
---|
35 | 以前の LinCity を精錬し、改善されたバージョンです。 |
---|
36 | |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q |
---|
40 | sed -i "s/CFLAGS += -O3 -g -Wall/CFLAGS += $RPM_OPT_FLAGS/" Jamrules |
---|
41 | sed -i "s/CXXFLAGS += -O3 -g -Wall/CXXFLAGS += $RPM_OPT_FLAGS/" Jamrules |
---|
42 | |
---|
43 | %build |
---|
44 | #./autogen.sh |
---|
45 | # export CFLAGS="$RPM_OPT_FLAGS -fstack-protector" \ |
---|
46 | # CXXFLAGS="$RPM_OPT_FLAGS -fstack-protector" |
---|
47 | %configure |
---|
48 | jam |
---|
49 | |
---|
50 | %install |
---|
51 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
52 | jam -s DESTDIR=${RPM_BUILD_ROOT} install |
---|
53 | |
---|
54 | ### to convert the sounds |
---|
55 | for i in ${RPM_BUILD_ROOT}%{_datadir}/%{name}/sounds/*.wav; do |
---|
56 | oggenc --quiet $i && rm $i |
---|
57 | done |
---|
58 | |
---|
59 | # font alias |
---|
60 | pushd $RPM_BUILD_ROOT%{_datadir}/%{name}/fonts |
---|
61 | ln -s %alias_ttf sans-ja_JP.ttf |
---|
62 | popd |
---|
63 | |
---|
64 | %clean |
---|
65 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
66 | |
---|
67 | |
---|
68 | %check |
---|
69 | %{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/lincity-ng.desktop |
---|
70 | |
---|
71 | |
---|
72 | %post |
---|
73 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
74 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
75 | fi |
---|
76 | |
---|
77 | %postun |
---|
78 | if [ -x %{_bindir}/update-desktop-database ] ; then |
---|
79 | %{_bindir}/update-desktop-database %{_datadir}/applications |
---|
80 | fi |
---|
81 | |
---|
82 | |
---|
83 | %files |
---|
84 | %defattr(-,root,root) |
---|
85 | %doc %{_datadir}/doc/%{name}-%{version} |
---|
86 | %{_bindir}/lincity-ng |
---|
87 | %{_datadir}/pixmaps/* |
---|
88 | %{_datadir}/applications/lincity-ng.desktop |
---|
89 | %{_datadir}/lincity-ng |
---|
90 | |
---|
91 | %changelog |
---|
92 | * Mon Sep 20 2010 IWAI, Masaharu <iwai@alib.jp> 2.0-4 |
---|
93 | - build with SDL_gfx 2.0.22 |
---|
94 | - add BuildRequires: mesa-libGLU-devel |
---|
95 | - validating desktop file in %%check section |
---|
96 | - add %%post and %%postun sections for desktop file |
---|
97 | - add BuildRequires: desktop-file-utils |
---|
98 | |
---|
99 | * Thu Jul 30 2009 Munehiro Yamamoto <munepi@vinelinux.org> 2.0-3 |
---|
100 | - added Japanese Summary and description |
---|
101 | |
---|
102 | * Fri May 08 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 2.0-2 |
---|
103 | - added Requires: TrueType-vlgothic |
---|
104 | - corrected symbolic link to sans-ja_JP.ttf |
---|
105 | |
---|
106 | * Fri Mar 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0-1 |
---|
107 | - new upstream release. |
---|
108 | - changed Group to Applications/Games |
---|
109 | |
---|
110 | * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.2-1vl5 |
---|
111 | - new upstream release. |
---|
112 | - applied new versioning policy |
---|
113 | |
---|
114 | * Wed Jan 02 2008 Shu KONNO <owa@bg.wakwak.com> 1.1.1-0vl2 |
---|
115 | - rebuilt for VineSeed |
---|
116 | |
---|
117 | * Thu Sep 06 2007 Atsushi SHICHI <ats777@gmail.com> 1.1.1-0vl1 |
---|
118 | - new upstream release. |
---|
119 | - update Source:. |
---|
120 | - add "BuildRequires: XOrg-gl-devel". |
---|
121 | |
---|
122 | * Mon Sep 3 2007 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.1.0-0vl1 |
---|
123 | - initial build for Vine Linux 4.1 |
---|
124 | - add BuildRequires: vorbis-tools to convert the sounds |
---|
125 | |
---|
126 | * Sun Dec 11 2005 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.0.2-0vlmp1 |
---|
127 | - minor version up |
---|
128 | |
---|
129 | * Sun Jul 24 2005 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.0.1-0vlmp1 |
---|
130 | - minor version up |
---|
131 | |
---|
132 | * Fri Jun 24 2005 Munehiro Yamamoto <myamamoto@g.math.s.chiba-u.ac.jp> 1.0-0vlmp1 |
---|
133 | - initial build for Vine Linux 3.2 |
---|
134 | |
---|
135 | |
---|
136 | # end of file |
---|