8 |
# re-pack to get rid of ugly directory names |
# re-pack to get rid of ugly directory names |
9 |
Source0: %{name}-%{version}.tar.gz |
Source0: %{name}-%{version}.tar.gz |
10 |
Source1: %{name}_game-%{version}.tar.gz |
Source1: %{name}_game-%{version}.tar.gz |
11 |
|
Patch0: minetest-0.4.3.jthread_phtread.patch |
12 |
BuildRequires: cmake >= 2.6.0 |
BuildRequires: cmake >= 2.6.0 |
13 |
BuildRequires: bzip2-devel |
BuildRequires: bzip2-devel |
14 |
BuildRequires: gettext-devel |
BuildRequires: gettext-devel |
16 |
BuildRequires: jpeg-devel |
BuildRequires: jpeg-devel |
17 |
BuildRequires: zlib-devel |
BuildRequires: zlib-devel |
18 |
BuildRequires: pkgconfig(gl) |
BuildRequires: pkgconfig(gl) |
|
BuildRequires: pkgconfig(jthread) |
|
19 |
BuildRequires: pkgconfig(libpng) |
BuildRequires: pkgconfig(libpng) |
20 |
BuildRequires: pkgconfig(openal) |
BuildRequires: pkgconfig(openal) |
21 |
BuildRequires: pkgconfig(sqlite3) |
BuildRequires: pkgconfig(sqlite3) |
33 |
|
|
34 |
%prep |
%prep |
35 |
%setup -q -a 1 |
%setup -q -a 1 |
36 |
|
%apply_patches |
37 |
|
|
38 |
%build |
%build |
39 |
%cmake -DRUN_IN_PLACE=0 -DCUSTOM_BINDIR:STRING=%{_gamesbindir} -DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} -DCMAKE_BUILD_TYPE:STRING=release -DENABLE_GETTEXT:BOOL=ON #-DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread |
%cmake -DRUN_IN_PLACE=0 -DCUSTOM_BINDIR:STRING=%{_gamesbindir} -DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} -DCMAKE_BUILD_TYPE:STRING=release -DENABLE_GETTEXT:BOOL=ON |
40 |
%make |
%make |
41 |
|
|
42 |
%install |
%install |
43 |
%makeinstall_std |
%makeinstall_std -C build |
44 |
mkdir -p %{buildroot}%{_datadir}/%{name}/games/%{name}_game |
mkdir -p %{buildroot}%{_gamedatadir}/%{name}/games/%{name}_game |
45 |
cp -r %{name}_game-%{version}/* %{buildroot}%{_datadir}/%{name}/games/%{name}_game |
cp -r %{name}_game-%{version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game |
46 |
|
|
47 |
%find_lang %{name} |
%find_lang %{name} |
48 |
|
|