Blob Blame Raw
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}

Name:           nml
Version:        0.2.3
Release:        1%{?dist}
Summary:        NewGRF Meta Language compiler

License:        GPLv2+

BuildArch:      noarch
BuildRequires:  python2-devel python-setuptools-devel
Requires:       python-imaging python-ply

A tool to compile nml files to grf or nfo files, making newgrf coding easier.

%setup -q

%{__python} build

%{__python} install -O1 --skip-build --root $RPM_BUILD_ROOT

gzip docs/nmlc.1
install -Dpm 644 docs/nmlc.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/nmlc.1.gz
rm docs/nmlc.1.gz

%doc docs/*
%doc %{_mandir}/man1/nmlc.1.gz

* Thu Mar 29 2012 Felix Kaechele <> - 0.2.3-1
- initial spec