]> git.pld-linux.org Git - packages/adonthell.git/blob - adonthell.spec
- lib64.patch
[packages/adonthell.git] / adonthell.spec
1 Summary:        A 2D graphical RPG game
2 Summary(pl):    Darmowa gra RPG z graficznym interfejsem
3 Name:           adonthell
4 Version:        0.3.3
5 Release:        5
6 License:        GPL
7 Group:          X11/Applications/Games
8 Source0:        http://savannah.nongnu.org/download/adonthell/src/%{name}-%{version}.tar.gz
9 # Source0-md5:  8ed4a8b02ea24fd393b67bca355cc70b
10 Patch0:         %{name}-etc_dir.patch
11 Patch1:         %{name}-lib64.patch
12 URL:            http://adonthell.linuxgames.com/
13 BuildRequires:  SDL-devel >= 1.2.0
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  gettext-devel
17 BuildRequires:  gtk+-devel
18 BuildRequires:  intltool
19 BuildRequires:  libtool
20 BuildRequires:  libvorbis-devel
21 BuildRequires:  python
22 BuildRequires:  python-devel
23 BuildRequires:  python-modules
24 BuildRequires:  sed >= 4.0
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _gamedatadir    %{_datadir}/%{name}
28
29 %description
30 Adonthell is a role playing game in development that aims to combine
31 the best features of the Final Fantasy and Ultima series with an epic
32 plot. It is set in a detailed virtual world. With the current engine,
33 a small demo game (Waste's Edge) is available.
34
35 %description -l pl
36 Adonthell jest ci±gle rozwijan± gr± RPG której celem jest po³±czenie
37 najlepszych cech takich serii jak Final Fantasy i Ultima. Akcja gry
38 toczy siê w szczegó³owym, wirtualnym ¶wiecie. Razem z obecnym engine
39 gry jest dostêpna ma³a plansza (Waste's Edge).
40
41 %prep
42 %setup -q
43 %patch0 -p1
44 %if "%{_lib}" == "lib64"
45 %patch1 -p1
46 %endif
47 :> acinclude.m4
48 # ugly workaround for a buggy libtool
49 sed -i 's/-Wl,-E/-Wl,-Xlinker,-E/' configure.in
50
51 %build
52 %{__gettextize}
53 %{__libtoolize}
54 intltoolize --copy --force
55 %{__aclocal}
56 %{__autoconf}
57 %{__automake}
58 %configure \
59         --disable-py-debug
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65 install -d $RPM_BUILD_ROOT{%{_gamedatadir}/{modules,games},%{_bindir},adonthell-wastesedge}
66
67 cp src/modules/adonthell.py $RPM_BUILD_ROOT%{_gamedatadir}/modules/adonthell.py
68
69 %{__make} install \
70         prefix=$RPM_BUILD_ROOT%{_prefix} \
71         bindir=$RPM_BUILD_ROOT%{_bindir} \
72         gamedatadir=$RPM_BUILD_ROOT%{_gamedatadir}
73
74 %clean
75 rm -rf $RPM_BUILD_ROOT
76
77 %files
78 %defattr(644,root,root,755)
79 %doc ChangeLog NEWBIE README.* AUTHORS NEWS
80 %attr(755,root,root) %{_bindir}/adonthell
81 %dir %{_gamedatadir}
82 %{_gamedatadir}/modules
83 %{_gamedatadir}/games
This page took 0.042537 seconds and 3 git commands to generate.