]> git.pld-linux.org Git - packages/gemrb.git/blob - gemrb.spec
- up to 0.6.1
[packages/gemrb.git] / gemrb.spec
1 #
2 # TODO:
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
6 #
7 # Conditional build:
8 %bcond_without  png     # build without png
9 #
10 Summary:        Emulator of BioWare's Infinity game engine
11 Summary(pl.UTF-8):      Emulator silnika gier Infinity firmy BioWare
12 Name:           gemrb
13 Version:        0.6.1
14 Release:        0.1
15 License:        GPL v2+
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)
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
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ń.
41
42 %prep
43 %setup -q
44 %patch0 -p1
45 %patch1 -p1
46
47 %build
48 %{__libtoolize}
49 %{__aclocal}
50 %{__autoconf}
51 %{__autoheader}
52 %{__automake}
53 %configure
54 %{__make}
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 install -d $RPM_BUILD_ROOT%{_sysconfdir}
59
60 %{__make} install \
61         DESTDIR=$RPM_BUILD_ROOT
62
63 install gemrb/GemRB.cfg.sample $RPM_BUILD_ROOT%{_sysconfdir}/gemrb.cfg
64 rm -f $RPM_BUILD_ROOT%{_libdir}{,/gemrb,/gemrb/plugins}/*.la
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %post   -p /sbin/ldconfig
70 %postun -p /sbin/ldconfig
71
72 %files
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
76 %dir %{_libdir}/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
81 %{_datadir}/gemrb
82 %{_mandir}/man6/gemrb.6*
This page took 0.114403 seconds and 3 git commands to generate.