3 # - what about libgemrb_core.so* files?
4 # - set proper path to Cache dir or create it in datadir
5 # - make it builds on x86_64
8 %bcond_without png # build without png
10 Summary: Emulator of BioWare's Infinity game engine
11 Summary(pl.UTF-8): Emulator silnika gier Infinity firmy BioWare
16 Group: Applications/Emulators
17 Source0: http://downloads.sourceforge.net/gemrb/%{name}-%{version}.tar.gz
18 # Source0-md5: 3d7f10a0137b3a018d23540cdb676750
19 Patch0: %{name}-config_file.patch
20 Patch1: %{name}-useless_files.patch
21 URL: http://gemrb.sourceforge.net/
22 BuildRequires: OpenAL-devel
23 BuildRequires: SDL-devel >= 1.2
24 BuildRequires: autoconf
25 BuildRequires: automake
26 %{?with_png:BuildRequires: libpng-devel}
27 BuildRequires: libtool
28 BuildRequires: python-devel >= 1:2.3.0
29 BuildRequires: zlib-devel
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 This Game Engine is a port of the original Infinity Engine (the one of
34 Baldur's Gate, Planescape: Torment, Icewind Dale) to Linux/Unix, MacOs
35 X and Windows with some Enhancements.
37 %description -l pl.UTF-8
38 Silnik ten jest portem oryginalnego silnika Infinity Engine (używanego
39 przez Baldur's Gate, Planescape: Torment, Icewind Dale) dla systemów
40 Linux/Unix, MacOS i Windows. Silnik posiada kilka ulepszeń.
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_sysconfdir}
61 DESTDIR=$RPM_BUILD_ROOT
63 install gemrb/GemRB.cfg.sample $RPM_BUILD_ROOT%{_sysconfdir}/gemrb.cfg
64 rm -f $RPM_BUILD_ROOT%{_libdir}{,/gemrb,/gemrb/plugins}/*.la
67 rm -rf $RPM_BUILD_ROOT
69 %post -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
73 %defattr(644,root,root,755)
74 %doc AUTHORS ChangeLog NEWS README TODO %{name}{/docs/en/*.txt,/GemRB.cfg*.sample}
75 %attr(755,root,root) %{_bindir}/gemrb
77 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
78 %dir %{_libdir}/gemrb/plugins
79 %attr(755,root,root) %{_libdir}/gemrb/plugins/*.so*
80 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gemrb.cfg
82 %{_mandir}/man6/gemrb.6*