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