]> git.pld-linux.org Git - packages/gemrb.git/blame - gemrb.spec
up to 0.8.7
[packages/gemrb.git] / gemrb.spec
CommitLineData
109d74e8 1#
a1596f65 2# Conditional build:
f645b233 3%bcond_with gles # build GLES backend
0adea672 4
a1596f65 5Summary: Emulator of BioWare's Infinity game engine
801ccd0d 6Summary(pl.UTF-8): Emulator silnika gier Infinity firmy BioWare
a1596f65 7Name: gemrb
f645b233 8Version: 0.8.7
109d74e8 9Release: 0.1
a1596f65 10License: GPL v2+
11Group: Applications/Emulators
f645b233
JP
12Source0: https://downloads.sourceforge.net/gemrb/%{name}-%{version}-sources.tar.gz
13# Source0-md5: d1bf1dd8ca03ce9649b52240d363f357
df0e4a22 14Patch0: %{name}-config_file.patch
a1596f65 15URL: http://gemrb.sourceforge.net/
16BuildRequires: OpenAL-devel
f645b233
JP
17%{!?with_gles:BuildRequires: OpenGL-devel}
18%{?with_gles:BuildRequires: OpenGLESv2-devel}
19BuildRequires: SDL2-devel
20BuildRequires: SDL2_mixer-devel
21BuildRequires: cmake >= 3.1
22BuildRequires: freetype-devel
23BuildRequires: libpng-devel
24BuildRequires: libstdc++-devel >= 6:4.8.1
25BuildRequires: libvorbis-devel
f676213a 26BuildRequires: pkgconfig
82bf3cda 27BuildRequires: python-devel >= 1:2.3.0
f676213a 28BuildRequires: python-modules
f645b233
JP
29BuildRequires: rpmbuild(macros) >= 1.605
30BuildRequires: vlc-devel
a1596f65 31BuildRequires: zlib-devel
f645b233
JP
32Requires(post,postun): desktop-file-utils
33Requires(post,postun): gtk-update-icon-cache
34Requires(post,postun): hicolor-icon-theme
0adea672 35Suggests: synce-unshield
a1596f65 36BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38%description
39This Game Engine is a port of the original Infinity Engine (the one of
40Baldur's Gate, Planescape: Torment, Icewind Dale) to Linux/Unix, MacOs
41X and Windows with some Enhancements.
42
0d3a0d02 43%description -l pl.UTF-8
0c50e9d0 44Silnik ten jest portem oryginalnego silnika Infinity Engine (używanego
45przez Baldur's Gate, Planescape: Torment, Icewind Dale) dla systemów
46Linux/Unix, MacOS i Windows. Silnik posiada kilka ulepszeń.
a1596f65 47
48%prep
49%setup -q
df0e4a22 50%patch0 -p1
f645b233
JP
51
52%{__sed} -i -e '1s,/usr/bin/python$,%{__python},' admin/extend2da.py
a1596f65 53
54%build
f645b233
JP
55install -d build
56cd build
57%cmake .. \
58 -DBIN_DIR="%{_bindir}" \
59 -DSYSCONF_DIR="%{_sysconfdir}/gemrb" \
60 -DLIB_DIR="%{_libdir}" \
61 -DPLUGIN_DIR="%{_libdir}/gemrb/plugins" \
62 -DDATA_DIR="%{_datadir}/gemrb" \
63 -DMAN_DIR="%{_mandir}/man6" \
64 -DICON_DIR="%{_pixmapsdir}" \
65 -DSVG_DIR="%{_iconsdir}/hicolor/scalable/apps" \
66 -DMENU_DIR="%{_desktopdir}" \
67 -DOPENGL_BACKEND=%{!?with_gles:OpenGL}%{?with_gles:GLES} \
68 -DSDL_BACKEND=SDL2
a1596f65 69%{__make}
70
71%install
72rm -rf $RPM_BUILD_ROOT
73
f645b233 74%{__make} install -C build \
a1596f65 75 DESTDIR=$RPM_BUILD_ROOT
76
f645b233
JP
77%{__rm} -r $RPM_BUILD_ROOT%{_docdir}
78%{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/gemrb/GemRB.cfg{.noinstall,}.sample
79%{__mv} $RPM_BUILD_ROOT%{_sysconfdir}/gemrb/{GemRB.cfg,gemrb.cfg}
72d64f95 80
a1596f65 81%clean
82rm -rf $RPM_BUILD_ROOT
83
f645b233
JP
84%post
85/sbin/ldconfig
86%update_desktop_database_post
87%update_icon_cache hicolor
88
89%postun
90/sbin/ldconfig
91%update_desktop_database_postun
92%update_icon_cache hicolor
72d64f95 93
a1596f65 94%files
95%defattr(644,root,root,755)
f645b233
JP
96%doc AUTHORS CONTRIBUTING.md NEWS README.md %{name}/{docs/en/*.txt,GemRB.cfg*.sample}
97%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gemrb/gemrb.cfg
b8eab58a 98%attr(755,root,root) %{_bindir}/gemrb
f645b233 99%attr(755,root,root) %{_libdir}/libgemrb_core.so.*.*.*
8a5d4511 100%dir %{_libdir}/gemrb
6aea8949 101%dir %{_libdir}/gemrb/plugins
f645b233 102%attr(755,root,root) %{_libdir}/gemrb/plugins/*.so
b8eab58a 103%{_datadir}/gemrb
6aea8949 104%{_mandir}/man6/gemrb.6*
f645b233
JP
105%{_desktopdir}/gemrb.desktop
106%{_iconsdir}/hicolor/scalable/apps/gemrb.svg
107%{_pixmapsdir}/gemrb.png
This page took 0.106082 seconds and 4 git commands to generate.