]> git.pld-linux.org Git - packages/nml.git/blob - nml.spec
- disable parallel build, breaks tests
[packages/nml.git] / nml.spec
1 Summary:        convert meta-languate to openttd's grf and/or nfo files
2 Name:           nml
3 Version:        0.5.3
4 Release:        1
5 License:        GPL v2
6 Group:          Applications
7 Source0:        https://github.com/OpenTTD/nml/releases/download/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  0c2010b53f864f74d0a8b36bc40c7e84
9 Source1:        https://github.com/OpenTTD/nml/raw/07c5a4de27fec1383d2657aa51a092b1d2c658fe/regression/arctic_railwagons.pcx
10 # Source1-md5:  bc911035b624da91088dd6377622ee5b
11 Source2:        https://github.com/OpenTTD/nml/raw/07c5a4de27fec1383d2657aa51a092b1d2c658fe/regression/opengfx_generic_trams1.pcx
12 # Source2-md5:  d28093991e9d1b27a1ecd81405ce5b70
13 Source3:        https://github.com/OpenTTD/nml/raw/07c5a4de27fec1383d2657aa51a092b1d2c658fe/regression/opengfx_trains_start.pcx
14 # Source3-md5:  57ee354661cf5f66e5ea99fedf4068d3
15 URL:            https://dev.openttdcoop.org/projects/nml
16 BuildRequires:  python3-pillow
17 BuildRequires:  python3-ply
18 BuildRequires:  python3-setuptools
19 BuildRequires:  rpm-pythonprov
20 BuildRequires:  rpmbuild(macros) >= 1.234
21 Requires:       python3-pillow
22 Requires:       python3-ply
23 Requires:       python3-setuptools
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 A tool to convert a meta-language to grf and/or nfo files, making
28 newgrf coding easier.
29
30 %prep
31 %setup -q
32 cp %{SOURCE1} %{SOURCE2} %{SOURCE3} regression
33
34 %build
35 %{__make} -j1
36 %{__make} -j1 extensions
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40
41 %{__python3} setup.py install \
42         --skip-build \
43         --optimize=2 \
44         --prefix=%{_prefix} \
45         --root=$RPM_BUILD_ROOT
46 install -D docs/nmlc.1 $RPM_BUILD_ROOT%{_mandir}/man1/nmlc.1
47
48 # The actual python code is not being installed?!?
49 install -d $RPM_BUILD_ROOT%{py3_sitescriptdir}/nml
50 cp -rp nml/* $RPM_BUILD_ROOT%{py3_sitescriptdir}/nml/
51
52 %py_postclean
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %attr(755,root,root) %{_bindir}/nmlc
60 %doc docs/*.txt
61 %{_mandir}/man1/nmlc.1*
62 %{py3_sitedir}/*
63 %{py3_sitescriptdir}/%{name}/
This page took 0.062895 seconds and 3 git commands to generate.