]> git.pld-linux.org Git - packages/widelands.git/blame - widelands.spec
- updated gettext BR
[packages/widelands.git] / widelands.spec
CommitLineData
7764f64d 1#
2# TODO:
11907a39 3# - create bcond for ggz
abdefe8d 4# - check locales
7764f64d 5#
abdefe8d 6%define buildver 16
325beb53 7Summary: Game like Settlers II
bf6aa356 8Summary(pl.UTF-8): Remake gry Settlers II
325beb53 9Name: widelands
48449069 10Version: 0.build%{buildver}
f7c1c799 11Release: 7
11907a39 12License: GPL v2+
325beb53 13Group: X11/Applications/Games
509c89d9 14Source0: http://launchpad.net/widelands/build%{buildver}/build%{buildver}/+download/%{name}-build%{buildver}-src.tar.bz2
abdefe8d 15# Source0-md5: 3d8c28e145b73c64d8ed1625319d25a2
325beb53 16Source1: %{name}.desktop
13357d0d 17Patch0: %{name}-libpng15.patch
325beb53 18URL: http://widelands.sourceforge.net/
7764f64d 19BuildRequires: SDL-devel >= 1.2.11
68f512a6 20BuildRequires: SDL_gfx-devel
325beb53 21BuildRequires: SDL_image-devel
00129253 22BuildRequires: SDL_mixer-devel >= 1.2.7
325beb53 23BuildRequires: SDL_net-devel
7764f64d 24BuildRequires: SDL_ttf-devel >= 2.0.0
48449069 25BuildRequires: boost-devel >= 1.35
509c89d9 26BuildRequires: cmake
acb61c96 27BuildRequires: gettext-tools
abdefe8d 28BuildRequires: glew-devel
5cf69a76 29BuildRequires: ggz-client-libs-devel
509c89d9 30BuildRequires: libjpeg-devel
929f8735 31BuildRequires: libpng-devel
325beb53 32BuildRequires: libstdc++-devel
509c89d9 33BuildRequires: libtiff-devel
15cde85f 34BuildRequires: lua51-devel
35BuildRequires: python
36BuildRequires: python-modules
abdefe8d 37BuildRequires: rpmbuild(macros) >= 1.600
48449069 38Requires: SDL_image >= 1.2.10
325beb53
AG
39BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41%description
42In Widelands, you are the regent of a small tribe. You start out with
43nothing but your headquarters, a kind of castle in which all your
44resources are stored. Every member of your tribe will do his or her
45part to produce more resources - wood, food, iron, gold and more - to
46further this growth. But you are not alone in the world, and you will
47meet other tribes sooner or later. Some of them may be friendly and
48trade with you. However, if you want to rule the world, you will have
49to train soldiers and fight.
50
d71c4d09
JR
51%description -l pl.UTF-8
52W grze Widelands jesteś regentem niewielkiego plemienia. Rozpoczynasz
53grę tylko z kwaterą główną, czymś w rodzaju zamku, w której
54przechowywane są wszystkie Twoje zasoby. Każdy członek plemienia
55wykona swoje zadanie w procesie produkcji tychże zasobów - drewna,
56żywności, żelaza, złota i wielu innych - aby zapewnić rozwój. Jednak
57nie jesteś sam na tym świecie i wcześniej lub później będziesz musiał
58spotkać się z innymi plemionami. Niektóre z nich mogą być przyjaźnie
59nastawione i rozpocząć z Tobą handel. Jednak, jeśli chcesz rządzić
60światem, będziesz musiał wyszkolić żołnierzy i walczyć.
325beb53
AG
61
62%prep
509c89d9 63%setup -q -n %{name}-build%{buildver}-src
13357d0d 64%patch0 -p1
325beb53
AG
65
66%build
509c89d9 67install -d build
68cd build
69%cmake \
509c89d9 70 -DWL_INSTALL_BINDIR=%{_bindir} \
71 -DWL_INSTALL_DATADIR=%{_datadir}/games/%{name} \
72 -DWL_INSTALL_LOCALEDIR=%{_datadir}/games/%{name}/locale \
509c89d9 73 ..
74
75%{__make}
abdefe8d 76%{__make} lang
325beb53
AG
77
78%install
79rm -rf $RPM_BUILD_ROOT
325beb53 80
509c89d9 81%{__make} -C build install \
82 DESTDIR=$RPM_BUILD_ROOT
bb198b26 83
abdefe8d 84install -d $RPM_BUILD_ROOT{%{_datadir}/games/%{name},%{_desktopdir},%{_pixmapsdir}}
325beb53 85
abdefe8d 86# install data
87cp -a campaigns fonts global maps music pics scripting sound tribes txts worlds $RPM_BUILD_ROOT%{_datadir}/games/%{name}
88
89# locales
90cp -a build/locale $RPM_BUILD_ROOT%{_datadir}/games/%{name}
91
92# unsupported locales
93%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/games/%{name}/locale/en_AU
94%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/games/%{name}/locale/en_CA
95
96# desktop and icon
97cp -a pics/wl-ico-128.png $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
bb198b26 98cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
325beb53
AG
99
100%clean
101rm -rf $RPM_BUILD_ROOT
102
103%files
104%defattr(644,root,root,755)
48449069 105%doc ChangeLog CREDITS
bb198b26 106%attr(755,root,root) %{_bindir}/%{name}
48449069 107%dir %{_datadir}/games/%{name}
48449069 108%{_datadir}/games/%{name}/campaigns
109%{_datadir}/games/%{name}/fonts
110%{_datadir}/games/%{name}/global
111%{_datadir}/games/%{name}/maps
112%{_datadir}/games/%{name}/music
113%{_datadir}/games/%{name}/pics
abdefe8d 114%{_datadir}/games/%{name}/scripting
48449069 115%{_datadir}/games/%{name}/sound
116%{_datadir}/games/%{name}/tribes
117%{_datadir}/games/%{name}/txts
118%{_datadir}/games/%{name}/worlds
119%dir %{_datadir}/games/%{name}/locale
509c89d9 120%lang(ar) %{_datadir}/games/%{name}/locale/ar
abdefe8d 121%lang(ast) %{_datadir}/games/%{name}/locale/ast
509c89d9 122%lang(ca) %{_datadir}/games/%{name}/locale/ca
123%lang(cs) %{_datadir}/games/%{name}/locale/cs
124%lang(da) %{_datadir}/games/%{name}/locale/da
125%lang(de) %{_datadir}/games/%{name}/locale/de
126%lang(en_GB) %{_datadir}/games/%{name}/locale/en_GB
127%lang(eo) %{_datadir}/games/%{name}/locale/eo
128%lang(es) %{_datadir}/games/%{name}/locale/es
abdefe8d 129%lang(et) %{_datadir}/games/%{name}/locale/et
509c89d9 130%lang(eu) %{_datadir}/games/%{name}/locale/eu
abdefe8d 131%lang(fa) %{_datadir}/games/%{name}/locale/fa
509c89d9 132%lang(fi) %{_datadir}/games/%{name}/locale/fi
133%lang(fr) %{_datadir}/games/%{name}/locale/fr
134%lang(gl) %{_datadir}/games/%{name}/locale/gl
135%lang(he) %{_datadir}/games/%{name}/locale/he
136%lang(hu) %{_datadir}/games/%{name}/locale/hu
137%lang(ia) %{_datadir}/games/%{name}/locale/ia
138%lang(id) %{_datadir}/games/%{name}/locale/id
139%lang(it) %{_datadir}/games/%{name}/locale/it
140%lang(ja) %{_datadir}/games/%{name}/locale/ja
abdefe8d 141%lang(ko) %{_datadir}/games/%{name}/locale/ko
509c89d9 142%lang(la) %{_datadir}/games/%{name}/locale/la
abdefe8d 143%lang(ms) %{_datadir}/games/%{name}/locale/ms
144%lang(nb) %{_datadir}/games/%{name}/locale/nb
509c89d9 145%lang(nl) %{_datadir}/games/%{name}/locale/nl
146%lang(nn) %{_datadir}/games/%{name}/locale/nn
abdefe8d 147%lang(oc) %{_datadir}/games/%{name}/locale/oc
509c89d9 148%lang(pl) %{_datadir}/games/%{name}/locale/pl
abdefe8d 149%lang(pt) %{_datadir}/games/%{name}/locale/pt
509c89d9 150%lang(pt_BR) %{_datadir}/games/%{name}/locale/pt_BR
151%lang(ru) %{_datadir}/games/%{name}/locale/ru
152%lang(si) %{_datadir}/games/%{name}/locale/si
153%lang(sk) %{_datadir}/games/%{name}/locale/sk
154%lang(sl) %{_datadir}/games/%{name}/locale/sl
155%lang(sr) %{_datadir}/games/%{name}/locale/sr
156%lang(sv) %{_datadir}/games/%{name}/locale/sv
abdefe8d 157%lang(tr) %{_datadir}/games/%{name}/locale/tr
158%lang(uk) %{_datadir}/games/%{name}/locale/uk
159%lang(vi) %{_datadir}/games/%{name}/locale/vi
160%lang(zh_CN) %{_datadir}/games/%{name}/locale/zh_CN
bb198b26 161%{_desktopdir}/%{name}.desktop
162%{_pixmapsdir}/%{name}.png
This page took 0.166603 seconds and 4 git commands to generate.