]>
Commit | Line | Data |
---|---|---|
a1596f65 | 1 | # |
9ffd1e59 | 2 | # TODO: |
3 | # - what about libgemrb_core.so* files? | |
109d74e8 | 4 | # - set proper path to Cache dir or create it in datadir |
cfd02c51 | 5 | # - make it builds on x86_64 |
109d74e8 | 6 | # |
a1596f65 | 7 | # Conditional build: |
8 | %bcond_without png # build without png | |
9 | # | |
10 | Summary: Emulator of BioWare's Infinity game engine | |
801ccd0d | 11 | Summary(pl.UTF-8): Emulator silnika gier Infinity firmy BioWare |
a1596f65 | 12 | Name: gemrb |
211ac0fb | 13 | Version: 0.6.1 |
109d74e8 | 14 | Release: 0.1 |
a1596f65 | 15 | License: GPL v2+ |
16 | Group: Applications/Emulators | |
0c50e9d0 | 17 | Source0: http://downloads.sourceforge.net/gemrb/%{name}-%{version}.tar.gz |
211ac0fb | 18 | # Source0-md5: 3d7f10a0137b3a018d23540cdb676750 |
df0e4a22 | 19 | Patch0: %{name}-config_file.patch |
9ffd1e59 | 20 | Patch1: %{name}-useless_files.patch |
a1596f65 | 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} | |
b8eab58a | 27 | BuildRequires: libtool |
82bf3cda | 28 | BuildRequires: python-devel >= 1:2.3.0 |
a1596f65 | 29 | BuildRequires: zlib-devel |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
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. | |
36 | ||
0d3a0d02 | 37 | %description -l pl.UTF-8 |
0c50e9d0 | 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ń. | |
a1596f65 | 41 | |
42 | %prep | |
43 | %setup -q | |
df0e4a22 | 44 | %patch0 -p1 |
9ffd1e59 | 45 | %patch1 -p1 |
a1596f65 | 46 | |
47 | %build | |
b8eab58a | 48 | %{__libtoolize} |
a1596f65 | 49 | %{__aclocal} |
50 | %{__autoconf} | |
51 | %{__autoheader} | |
52 | %{__automake} | |
53 | %configure | |
54 | %{__make} | |
55 | ||
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
109d74e8 | 58 | install -d $RPM_BUILD_ROOT%{_sysconfdir} |
a1596f65 | 59 | |
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
109d74e8 | 63 | install gemrb/GemRB.cfg.sample $RPM_BUILD_ROOT%{_sysconfdir}/gemrb.cfg |
3b1ab0b5 | 64 | rm -f $RPM_BUILD_ROOT%{_libdir}{,/gemrb,/gemrb/plugins}/*.la |
72d64f95 | 65 | |
a1596f65 | 66 | %clean |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
72d64f95 JB |
69 | %post -p /sbin/ldconfig |
70 | %postun -p /sbin/ldconfig | |
71 | ||
a1596f65 | 72 | %files |
73 | %defattr(644,root,root,755) | |
9ffd1e59 | 74 | %doc AUTHORS ChangeLog NEWS README TODO %{name}{/docs/en/*.txt,/GemRB.cfg*.sample} |
b8eab58a | 75 | %attr(755,root,root) %{_bindir}/gemrb |
8a5d4511 | 76 | %dir %{_libdir}/gemrb |
72d64f95 | 77 | %attr(755,root,root) %{_libdir}/lib*.so.*.*.* |
6aea8949 | 78 | %dir %{_libdir}/gemrb/plugins |
79 | %attr(755,root,root) %{_libdir}/gemrb/plugins/*.so* | |
109d74e8 | 80 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gemrb.cfg |
b8eab58a | 81 | %{_datadir}/gemrb |
6aea8949 | 82 | %{_mandir}/man6/gemrb.6* |