]> git.pld-linux.org Git - packages/gemrb.git/blob - gemrb.spec
- 0.6.3
[packages/gemrb.git] / gemrb.spec
1 # TODO:
2 # - make it build on x86_64
3 #
4 # Conditional build:
5 %bcond_without  png     # build without png
6
7 Summary:        Emulator of BioWare's Infinity game engine
8 Summary(pl.UTF-8):      Emulator silnika gier Infinity firmy BioWare
9 Name:           gemrb
10 Version:        0.6.3
11 Release:        0.1
12 License:        GPL v2+
13 Group:          Applications/Emulators
14 Source0:        http://downloads.sourceforge.net/gemrb/%{name}-%{version}.tar.gz
15 # Source0-md5:  87a637a69d878d2bcab463ce085331f0
16 Patch0:         %{name}-config_file.patch
17 Patch1:         %{name}-useless_files.patch
18 URL:            http://gemrb.sourceforge.net/
19 BuildRequires:  OpenAL-devel
20 BuildRequires:  SDL-devel >= 1.2
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 %{?with_png:BuildRequires:      libpng-devel}
24 BuildRequires:  libtool
25 BuildRequires:  python-devel >= 1:2.3.0
26 BuildRequires:  zlib-devel
27 Suggests:       synce-unshield
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 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_datadir}/gemrb/Cache}
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 install gemrb/GemRB.cfg.sample.in $RPM_BUILD_ROOT%{_sysconfdir}/gemrb.cfg
62 rm -f $RPM_BUILD_ROOT%{_libdir}{,/gemrb,/gemrb/plugins}/*.la
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %post   -p /sbin/ldconfig
68 %postun -p /sbin/ldconfig
69
70 %files
71 %defattr(644,root,root,755)
72 %doc AUTHORS ChangeLog NEWS README TODO %{name}{/docs/en/*.txt,/GemRB.cfg*.sample}
73 %attr(755,root,root) %{_bindir}/gemrb
74 %dir %{_libdir}/gemrb
75 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
76 %dir %{_libdir}/gemrb/plugins
77 %attr(755,root,root) %{_libdir}/gemrb/plugins/*.so*
78 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gemrb.cfg
79 %dir %{_datadir}/gemrb/Cache
80 %{_datadir}/gemrb
81 %{_mandir}/man6/gemrb.6*
This page took 0.060705 seconds and 3 git commands to generate.