]>
Commit | Line | Data |
---|---|---|
daa7bc7e AG |
1 | Summary: convert meta-languate to openttd's grf and/or nfo files |
2 | Name: nml | |
c7a80376 | 3 | Version: 0.7.5 |
8689e9b5 | 4 | Release: 1 |
daa7bc7e AG |
5 | License: GPL v2 |
6 | Group: Applications | |
91d8da59 | 7 | Source0: https://github.com/OpenTTD/nml/releases/download/%{version}/%{name}-%{version}.tar.gz |
c7a80376 | 8 | # Source0-md5: d21154170e67afaddd78b2ef58419f35 |
daa7bc7e | 9 | URL: https://dev.openttdcoop.org/projects/nml |
91d8da59 KM |
10 | BuildRequires: python3-pillow |
11 | BuildRequires: python3-ply | |
12 | BuildRequires: python3-setuptools | |
daa7bc7e AG |
13 | BuildRequires: rpm-pythonprov |
14 | BuildRequires: rpmbuild(macros) >= 1.234 | |
91d8da59 KM |
15 | Requires: python3-pillow |
16 | Requires: python3-ply | |
17 | Requires: python3-setuptools | |
daa7bc7e AG |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | A tool to convert a meta-language to grf and/or nfo files, making | |
22 | newgrf coding easier. | |
23 | ||
24 | %prep | |
25 | %setup -q | |
26 | ||
27 | %build | |
77c2f9ac JR |
28 | %{__make} -j1 |
29 | %{__make} -j1 extensions | |
daa7bc7e AG |
30 | |
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | ||
91d8da59 KM |
34 | %{__python3} setup.py install \ |
35 | --skip-build \ | |
daa7bc7e | 36 | --optimize=2 \ |
91d8da59 | 37 | --prefix=%{_prefix} \ |
daa7bc7e | 38 | --root=$RPM_BUILD_ROOT |
91d8da59 KM |
39 | install -D docs/nmlc.1 $RPM_BUILD_ROOT%{_mandir}/man1/nmlc.1 |
40 | ||
41 | # The actual python code is not being installed?!? | |
42 | install -d $RPM_BUILD_ROOT%{py3_sitescriptdir}/nml | |
43 | cp -rp nml/* $RPM_BUILD_ROOT%{py3_sitescriptdir}/nml/ | |
44 | ||
daa7bc7e AG |
45 | %py_postclean |
46 | ||
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %files | |
51 | %defattr(644,root,root,755) | |
91d8da59 KM |
52 | %attr(755,root,root) %{_bindir}/nmlc |
53 | %doc docs/*.txt | |
54 | %{_mandir}/man1/nmlc.1* | |
55 | %{py3_sitedir}/* | |
56 | %{py3_sitescriptdir}/%{name}/ |