]> git.pld-linux.org Git - packages/tmw.git/blobdiff - tmw.spec
- rel 5; build fixed
[packages/tmw.git] / tmw.spec
index f9080936f4aac4b071a4a598b88994ac1d9991a1..daf3fcff9697765cd93caf6e70ca21464ae9092c 100644 (file)
--- a/tmw.spec
+++ b/tmw.spec
@@ -1,29 +1,37 @@
+%bcond_without opengl  #disable OpenGL support
 Summary:       A free Open Source 2D MMORPG
-Summary(pl):   Darmowa gra typu MMORPG 2D
+Summary(pl.UTF-8):     Gra typu MMORPG 2D o otwartych źródłach
 Name:          tmw
-Version:       0.0.21
-Release:       1
-License:       GPL v2
+Version:       0.5.2
+Release:       5
+License:       GPL v2+
 Group:         X11/Applications/Games
-Source0:       http://dl.sourceforge.net/themanaworld/%{name}-%{version}.tar.gz
-# Source0-md5: e13a748b8e279fa694db5eb14ac4a8a9
+Source0:       http://downloads.sourceforge.net/themanaworld/%{name}-%{version}.tar.bz2
+# Source0-md5: c843ef420aced82db1e51fa14e80174a
 Patch0:                %{name}-desktop.patch
+Patch1:                %{name}-build.patch
 URL:           http://themanaworld.org/
+%{?with_opengl:BuildRequires:  OpenGL-GLU-devel}
+%{?with_opengl:BuildRequires:  OpenGL-devel}
+BuildRequires: SDL_gfx-devel
 BuildRequires: SDL_image-devel
 BuildRequires: SDL_mixer-devel
 BuildRequires: SDL_net-devel
-BuildRequires: autoconf
-BuildRequires: automake >= 1:1.9
+BuildRequires: SDL_ttf-devel
+BuildRequires: cmake
 BuildRequires: curl-devel
-BuildRequires: guichan-devel >= 0.5.0
+BuildRequires: gettext-devel
+BuildRequires: guichan-devel >= 0.8.0
+BuildRequires: libpng-devel
 BuildRequires: libxml2-devel
 BuildRequires: physfs-devel
 BuildRequires: pkgconfig
-# should be autodetected
-Requires:      curl
+BuildRequires: rpmbuild(macros) >= 1.600
 Requires:      SDL_image
 Requires:      SDL_mixer
 Requires:      SDL_net
+# should be autodetected
+Requires:      curl
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,43 +48,44 @@ until our own server has matured enough to replace it. Once ready,
 we'll be making releases of our server too so anybody will be free to
 set up their own server and start building their own online world.
 
-%description -l pl
-The Mana World (TMW) to powa¿na próba stworzenia innowacyjnej darmowej
-gry MMORPG z otwartymi ¼ród³ami. TMW u¿ywa grafiki 2D i ma stworzyæ
-du¿y i ró¿norodny interaktywny ¶wiat. Jest licencjonowana na warunkach
-GPL, dziêki czemu nigdy nie zostanie zabrana.
+%description -l pl.UTF-8
+The Mana World (TMW) to poważna próba stworzenia innowacyjnej darmowej
+gry MMORPG z otwartymi źródłami. TMW używa grafiki 2D i ma stworzyć
+duży i różnorodny interaktywny świat. Jest licencjonowana na warunkach
+GPL, dzięki czemu nigdy nie zostanie zabrana.
 
-Projekt obejmuje rozwój zarówno klienta jak i serwera, a tak¿e
-tworzenie ¶wiata online. Aktualnie s± tworzone wydania alpha klienta,
-natomiast serwer jest we wczesnym etapie rozwoju. Do czasu osi±gniêcia
-dojrza³o¶ci serwera TMW u¿ywany jest darmowy serwer eAthena Ragnarok
+Projekt obejmuje rozwój zarówno klienta jak i serwera, a także
+tworzenie świata online. Aktualnie są tworzone wydania alpha klienta,
+natomiast serwer jest we wczesnym etapie rozwoju. Do czasu osiągnięcia
+dojrzałości serwera TMW używany jest darmowy serwer eAthena Ragnarok
 Online.
 
 %prep
-%setup -q
+%setup -q -c
 %patch0 -p1
+%patch1 -p1
 
 %build
-%{__aclocal}
-%{__autoconf}
-%{__autoheader}
-%{__automake}
-%configure
+install -d build
+cd build
+%cmake ..
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install \
+%{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%find_lang %{name} --all-name
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc AUTHORS ChangeLog NEWS README
-%attr(755,root,root) %{_bindir}/*
-%{_datadir}/tmw
-%{_desktopdir}/tmw.desktop
-%{_pixmapsdir}/*
+%doc AUTHORS NEWS README
+%attr(755,root,root) %{_bindir}/mana
+%{_datadir}/mana
+%{_desktopdir}/mana.desktop
+%{_pixmapsdir}/mana.png
This page took 0.039165 seconds and 4 git commands to generate.