From 325beb53edd43b8235d68e153a45b2b745cc1b7f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Adam=20Go=C5=82=C4=99biowski?= Date: Fri, 8 Apr 2005 12:05:48 +0000 Subject: [PATCH] - new Changed files: widelands.spec -> 1.1 --- widelands.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 widelands.spec diff --git a/widelands.spec b/widelands.spec new file mode 100644 index 0000000..133275f --- /dev/null +++ b/widelands.spec @@ -0,0 +1,67 @@ +%define _version b9 +Summary: Game like Settlers II +Summary(pl): Remake gry Settlers II +Name: widelands +Version: 0.%{_version} +Release: 0.1 +License: GPL +Group: X11/Applications/Games +Source0: http://dl.sourceforge.net/widelands/%{name}-%{_version}-source.tar.bz2 +# Source0-md5: 0efaa379795496c05feee47de27b5dae +Source1: %{name}.desktop +URL: http://widelands.sourceforge.net/ +BuildRequires: SDL-devel +BuildRequires: SDL_image-devel +BuildRequires: SDL_net-devel +BuildRequires: SDL_ttf-devel +BuildRequires: libstdc++-devel +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +In Widelands, you are the regent of a small tribe. You start out with +nothing but your headquarters, a kind of castle in which all your +resources are stored. Every member of your tribe will do his or her +part to produce more resources - wood, food, iron, gold and more - to +further this growth. But you are not alone in the world, and you will +meet other tribes sooner or later. Some of them may be friendly and +trade with you. However, if you want to rule the world, you will have +to train soldiers and fight. + +%description -l pl +W grze Widelands jeste¶ regentem niewielkiego plemienia. Rozpoczynasz +grê tylko z kwater± g³ówn±, czym¶ w rodzaju zamku, w której +przechowywane s± wszystkie Twoje zasoby. Ka¿dy cz³onek plemienia +wykona swoje zadanie w procesie produkcji tych¿e zasobów - drewna, +¿ywno¶ci, ¿elaza, z³ota i wielu innych - aby zapewniæ rozwój. Jednak +nie jeste¶ sam na tym ¶wiecie i wcze¶niej lub pó¼niej bêdziesz musia³ +spotkaæ siê z innymi plemionami. Niektóre z nich mog± byæ przyja¼nie +nastawione i rozpocz±æ z Tob± handel. Jednak, je¶li chcesz rz±dziæ +¶wiatem, bêdziesz musia³ wyszkoliæ ¿o³nierzy i walczyæ. + +%prep +%setup -q -n %{name} + +%build +rm -f widelands +%{__make} \ + CXX="%{__cxx}" \ + CXXFLAGS="%{rpmcflags} -Isrc/ui/ui_basic -Isrc -Isrc/editor -Isrc/editor/ui_menus -Isrc/ui/ui_fs_menus -Isrc/editor/tools `sdl-config --cflags`" + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir}} + +install widelands $RPM_BUILD_ROOT%{_bindir} +cp -r fonts maps pics tribes worlds $RPM_BUILD_ROOT%{_datadir}/%{name} + +cp %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc README COPYING AUTHORS +%attr(755,root,root) %{_bindir}/widelands +%{_datadir}/widelands +%{_desktopdir}/widelands.desktop -- 2.44.0