2 # - make it build on x86_64
5 %bcond_without png # build without png
7 Summary: Emulator of BioWare's Infinity game engine
8 Summary(pl.UTF-8): Emulator silnika gier Infinity firmy BioWare
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)
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.
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ń.
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_datadir}/gemrb/Cache}
59 DESTDIR=$RPM_BUILD_ROOT
61 install gemrb/GemRB.cfg.sample.in $RPM_BUILD_ROOT%{_sysconfdir}/gemrb.cfg
62 rm -f $RPM_BUILD_ROOT%{_libdir}{,/gemrb,/gemrb/plugins}/*.la
65 rm -rf $RPM_BUILD_ROOT
67 %post -p /sbin/ldconfig
68 %postun -p /sbin/ldconfig
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
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
81 %{_mandir}/man6/gemrb.6*