Blob Blame History Raw
Name:           minetestmapper
Version:        20161218
Release:        2%{?dist}
Summary:        Generates a overview image of a minetest map

License:        BSD

# Patch merged upstream to fix issue with water being transparent.
Patch0:         d490cf0a31b1a64c604082b814cc2c3588a73a08.patch

# Patch sent upstream by dmoerner to install man page.
Patch1:         07c371f68ccc10337fbdd60477bc621bf7cd2a7e.patch

BuildRequires:  gcc-c++, cmake, sqlite-devel, gd-devel, leveldb-devel, hiredis-devel

# Needs minetest for ownership of /usr/share/minetest if nothing else.
Requires:       minetest

Generates a overview image of a minetest map. This is a port of to C++, that is both faster and provides more
details than the deprecated Python script.

%autosetup -p1

# Remove reference to postgresql in manpage as per dmoerner's comments:
# (
# Postgresql backend was added upstream after the release of 20161218.
sed -i 's/\*postgresql\*, //' minetestmapper.6


# Install colors.txt into /usr/share/minetest.
mkdir -p %{buildroot}%{_datadir}/minetest
cp -a colors.txt %{buildroot}%{_datadir}/minetest/

# Remove copy of license from docdir.
rm -rf %{buildroot}%{_pkgdocdir}/COPYING

%license COPYING

* Fri Jan 20 2017 Ben Rosser <> - 20161218-2
- Add man page for minetestmapper written by dmoerner.
- Reference patches without using a URL.
- Use version macro in Source0 URL.

* Fri Jan  6 2017 Ben Rosser <> - 20161218-1
- Initial package for Fedora.