/[packages]/updates/8/minetest/current/SPECS/minetest.spec
ViewVC logotype

Contents of /updates/8/minetest/current/SPECS/minetest.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1929729 - (show annotations) (download)
Tue Jan 3 23:14:40 2023 UTC (5 months ago) by akien
File size: 3072 byte(s)
- Version 5.6.1
1 %define game_version %{version}
2 %define irrlichtmt_version 1.9.0mt8
3
4 Name: minetest
5 Version: 5.6.1
6 Release: %mkrel 1
7 Summary: Open source voxel game engine and InfiniMiner/Minecraft-inspired game
8 Group: Games/Simulation
9 License: LGPLv2+ and CC-BY-SA 3.0
10 URL: https://minetest.net/
11 Source0: https://github.com/minetest/minetest/archive/%{version}/%{name}-%{version}.tar.gz
12 Source1: https://github.com/minetest/minetest_game/archive/%{version}/%{name}_game-%{game_version}.tar.gz
13 # Now using its own Minetest-specific fork of irrlicht.
14 Source2: https://github.com/minetest/irrlicht/archive/%{irrlichtmt_version}/irrlicht-%{irrlichtmt_version}.tar.gz
15
16 BuildRequires: cmake
17 BuildRequires: bzip2-devel
18 BuildRequires: gettext
19 BuildRequires: gmp-devel
20 BuildRequires: pkgconfig(jsoncpp)
21 BuildRequires: pkgconfig(freetype2)
22 BuildRequires: pkgconfig(gl)
23 BuildRequires: pkgconfig(leveldb)
24 BuildRequires: pkgconfig(libcurl)
25 BuildRequires: pkgconfig(libjpeg)
26 BuildRequires: pkgconfig(libpng)
27 BuildRequires: pkgconfig(libzstd)
28 BuildRequires: pkgconfig(luajit)
29 BuildRequires: pkgconfig(openal)
30 BuildRequires: pkgconfig(ncursesw)
31 BuildRequires: pkgconfig(sqlite3)
32 BuildRequires: pkgconfig(vorbisfile)
33 BuildRequires: pkgconfig(x11)
34 BuildRequires: pkgconfig(xi)
35 BuildRequires: pkgconfig(zlib)
36
37 # Extra deps for irrlichtMT:
38 BuildRequires: pkgconfig(xcursor)
39 BuildRequires: pkgconfig(xext)
40 BuildRequires: pkgconfig(xft)
41 BuildRequires: pkgconfig(xxf86vm)
42
43 %description
44 Minetest in an open source voxel game engine. You can play one of the many
45 games designed by its community, mod a game to your liking, make your own
46 game, or play on a multiplayer server.
47
48 The base package comes with the default Minetest game and some pre-installed
49 mods, which should provide a gaming experience similar to Minecraft.
50
51 %prep
52 # autosetup can't handle multiple -a arguments sources...
53 %setup -q -a 1 -a 2
54 %autopatch -p1
55
56 mv irrlicht-%{irrlichtmt_version} lib/irrlichtmt
57
58 # purge bundled jsoncpp and lua, and gmp
59 rm -rf lib/jsoncpp lib/lua lib/gmp
60
61 %build
62 %cmake \
63 -DBUILD_SHARED_LIBS:BOOL=OFF \
64 -DCUSTOM_BINDIR:STRING=%{_gamesbindir} \
65 -DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale \
66 -DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name} \
67 -DENABLE_CURL:BOOL=ON \
68 -DENABLE_FREETYPE:BOOL=ON \
69 -DENABLE_GETTEXT:BOOL=ON \
70 -DENABLE_LEVELDB:BOOL=ON \
71 -DENABLE_REDIS:BOOL=OFF \
72 -DENABLE_SOUND:BOOL=ON \
73 -DENABLE_SYSTEM_GMP:BOOL=ON \
74 -DENABLE_SYSTEM_JSONCPP:BOOL=ON
75 %cmake_build
76
77 %install
78 %cmake_install
79 install -d %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game
80 cp -r %{name}_game-%{game_version}/* %{buildroot}%{_gamesdatadir}/%{name}/games/%{name}_game
81
82 rm -rf %{buildroot}%{_gamesdatadir}/%{name}/client/serverlist/.gitignore
83
84 %find_lang %{name}
85
86 %files -f %{name}.lang
87 %doc doc/* README.md minetest.conf.example
88 %license LICENSE.txt
89 %{_gamesbindir}/%{name}
90 %{_gamesdatadir}/%{name}/
91 %{_datadir}/applications/net.minetest.%{name}.desktop
92 %{_datadir}/metainfo/net.minetest.%{name}.appdata.xml
93 %{_iconsdir}/hicolor/*/apps/%{name}.*
94 %{_mandir}/man6/%{name}.6*
95 %{_mandir}/man6/%{name}server.6*

  ViewVC Help
Powered by ViewVC 1.1.28