lincity-ng-vl.spec 3.3 KB

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