]> git.pld-linux.org Git - packages/gemrb.git/blob - gemrb.spec
a6d40f3c94909ea832240b2bdf4edfa30e18b588
[packages/gemrb.git] / gemrb.spec
1 #
2 # TODO:
3 # - what about libgemrb_core.so* files?
4
5 # Conditional build:
6 %bcond_without  png     # build without png
7 #
8 Summary:        Emulator of BioWare's Infinity game engine
9 Summary(pl.UTF-8):      Emulator silnika gier Infinity firmy BioWare
10 Name:           gemrb
11 Version:        0.4.0
12 Release:        1
13 License:        GPL v2+
14 Group:          Applications/Emulators
15 Source0:        http://dl.sourceforge.net/gemrb/%{name}-%{version}.tar.gz
16 # Source0-md5:  f01a6b9e91a437a7176d21c61f9a72de
17 Patch0:         %{name}-config_file.patch
18 Patch1:         %{name}-useless_files.patch
19 URL:            http://gemrb.sourceforge.net/
20 BuildRequires:  OpenAL-devel
21 BuildRequires:  SDL-devel >= 1.2
22 BuildRequires:  autoconf
23 BuildRequires:  automake
24 %{?with_png:BuildRequires:      libpng-devel}
25 BuildRequires:  libtool
26 BuildRequires:  python-devel >= 1:2.3.0
27 BuildRequires:  zlib-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 This Game Engine is a port of the original Infinity Engine (the one of
32 Baldur's Gate, Planescape: Torment, Icewind Dale) to Linux/Unix, MacOs
33 X and Windows with some Enhancements.
34
35 %description -l pl.UTF-8
36 Silnik ten jest portem oryginalnego silnika Infinity Engine (używanego
37 przez Baldur's Gate, Planescape: Torment, Icewind Dale) dla systemów
38 Linux/Unix, MacOS i Windows. Silnik posiada kilka ulepszeń.
39
40 %prep
41 %setup -q
42 %patch0 -p1
43 %patch1 -p1
44
45 %build
46 %{__libtoolize}
47 %{__aclocal}
48 %{__autoconf}
49 %{__autoheader}
50 %{__automake}
51 %configure
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56
57 %{__make} install \
58         DESTDIR=$RPM_BUILD_ROOT
59
60 rm -f $RPM_BUILD_ROOT%{_libdir}{,/gemrb,/gemrb/plugins}/*.la
61
62 %clean
63 rm -rf $RPM_BUILD_ROOT
64
65 %post   -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
67
68 %files
69 %defattr(644,root,root,755)
70 %doc AUTHORS ChangeLog NEWS README TODO %{name}{/docs/en/*.txt,/GemRB.cfg*.sample}
71 %attr(755,root,root) %{_bindir}/gemrb
72 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
73 %dir %{_libdir}/gemrb/plugins
74 %attr(755,root,root) %{_libdir}/gemrb/plugins/*.so*
75 %{_datadir}/gemrb
76 %{_mandir}/man6/gemrb.6*
This page took 0.84683 seconds and 2 git commands to generate.