]> git.pld-linux.org Git - packages/tmw.git/blob - tmw.spec
- added link patch (needs explicit linking with -lX11)
[packages/tmw.git] / tmw.spec
1 #
2 # Conditional build:
3 %bcond_without  opengl  # OpenGL support
4 #
5 Summary:        A free Open Source 2D MMORPG
6 Summary(pl.UTF-8):      Gra typu MMORPG 2D o otwartych źródłach
7 Name:           tmw
8 Version:        0.5.2
9 Release:        6
10 License:        GPL v2+
11 Group:          X11/Applications/Games
12 Source0:        http://downloads.sourceforge.net/themanaworld/%{name}-%{version}.tar.bz2
13 # Source0-md5:  c843ef420aced82db1e51fa14e80174a
14 Patch0:         %{name}-desktop.patch
15 Patch1:         %{name}-build.patch
16 Patch2:         %{name}-link.patch
17 URL:            http://themanaworld.org/
18 %{?with_opengl:BuildRequires:   OpenGL-GLU-devel}
19 %{?with_opengl:BuildRequires:   OpenGL-devel}
20 BuildRequires:  SDL-devel
21 BuildRequires:  SDL_gfx-devel
22 BuildRequires:  SDL_image-devel
23 BuildRequires:  SDL_mixer-devel
24 BuildRequires:  SDL_net-devel
25 BuildRequires:  SDL_ttf-devel
26 BuildRequires:  cmake >= 2.6
27 BuildRequires:  curl-devel
28 BuildRequires:  gettext-tools
29 BuildRequires:  guichan-devel >= 0.8.0
30 BuildRequires:  guichan-sdl-devel >= 0.8.0
31 BuildRequires:  libpng-devel
32 BuildRequires:  libxml2-devel >= 2
33 BuildRequires:  physfs-devel
34 BuildRequires:  pkgconfig
35 BuildRequires:  rpmbuild(macros) >= 1.605
36 BuildRequires:  xorg-lib-libX11-devel
37 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38
39 %description
40 The Mana World (TMW) is a serious effort to create an innovative free
41 and open source MMORPG. TMW uses 2D graphics and aims to create a
42 large and diverse interactive world. It is licensed under the GPL,
43 making sure this game can't ever run away from you.
44
45 The project includes the development of both a client and a server, as
46 well as the development of an online world. At the moment we're making
47 alpha releases of the client, while our server is in early
48 development. The eAthena free software Ragnarok Online server is used
49 until our own server has matured enough to replace it. Once ready,
50 we'll be making releases of our server too so anybody will be free to
51 set up their own server and start building their own online world.
52
53 %description -l pl.UTF-8
54 The Mana World (TMW) to poważna próba stworzenia innowacyjnej darmowej
55 gry MMORPG z otwartymi źródłami. TMW używa grafiki 2D i ma stworzyć
56 duży i różnorodny interaktywny świat. Jest licencjonowana na warunkach
57 GPL, dzięki czemu nigdy nie zostanie zabrana.
58
59 Projekt obejmuje rozwój zarówno klienta jak i serwera, a także
60 tworzenie świata online. Aktualnie są tworzone wydania alpha klienta,
61 natomiast serwer jest we wczesnym etapie rozwoju. Do czasu osiągnięcia
62 dojrzałości serwera TMW używany jest darmowy serwer eAthena Ragnarok
63 Online.
64
65 %prep
66 %setup -q -c
67 %patch0 -p1
68 %patch1 -p1
69 %patch2 -p1
70
71 %build
72 install -d build
73 cd build
74 %cmake .. \
75         %{!?with_opengl:-DWITH_OPENGL=OFF}
76 %{__make}
77
78 %install
79 rm -rf $RPM_BUILD_ROOT
80
81 %{__make} -C build install \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %find_lang %{name} --all-name
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %files -f %{name}.lang
90 %defattr(644,root,root,755)
91 %doc AUTHORS NEWS README
92 %attr(755,root,root) %{_bindir}/mana
93 %{_datadir}/mana
94 %{_desktopdir}/mana.desktop
95 %{_pixmapsdir}/mana.png
This page took 0.063346 seconds and 3 git commands to generate.