Summary: convert meta-languate to openttd's grf and/or nfo files Name: nml Version: 0.5.3 Release: 1 License: GPL v2 Group: Applications Source0: https://github.com/OpenTTD/nml/releases/download/%{version}/%{name}-%{version}.tar.gz # Source0-md5: 0c2010b53f864f74d0a8b36bc40c7e84 Source1: https://github.com/OpenTTD/nml/raw/07c5a4de27fec1383d2657aa51a092b1d2c658fe/regression/arctic_railwagons.pcx # Source1-md5: bc911035b624da91088dd6377622ee5b Source2: https://github.com/OpenTTD/nml/raw/07c5a4de27fec1383d2657aa51a092b1d2c658fe/regression/opengfx_generic_trams1.pcx # Source2-md5: d28093991e9d1b27a1ecd81405ce5b70 Source3: https://github.com/OpenTTD/nml/raw/07c5a4de27fec1383d2657aa51a092b1d2c658fe/regression/opengfx_trains_start.pcx # Source3-md5: 57ee354661cf5f66e5ea99fedf4068d3 URL: https://dev.openttdcoop.org/projects/nml BuildRequires: python3-pillow BuildRequires: python3-ply BuildRequires: python3-setuptools BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.234 Requires: python3-pillow Requires: python3-ply Requires: python3-setuptools BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description A tool to convert a meta-language to grf and/or nfo files, making newgrf coding easier. %prep %setup -q cp %{SOURCE1} %{SOURCE2} %{SOURCE3} regression %build %{__make} -j1 %{__make} -j1 extensions %install rm -rf $RPM_BUILD_ROOT %{__python3} setup.py install \ --skip-build \ --optimize=2 \ --prefix=%{_prefix} \ --root=$RPM_BUILD_ROOT install -D docs/nmlc.1 $RPM_BUILD_ROOT%{_mandir}/man1/nmlc.1 # The actual python code is not being installed?!? install -d $RPM_BUILD_ROOT%{py3_sitescriptdir}/nml cp -rp nml/* $RPM_BUILD_ROOT%{py3_sitescriptdir}/nml/ %py_postclean %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/nmlc %doc docs/*.txt %{_mandir}/man1/nmlc.1* %{py3_sitedir}/* %{py3_sitescriptdir}/%{name}/