]> git.pld-linux.org Git - packages/nml.git/blob - nml.spec
- up to 0.7.5
[packages/nml.git] / nml.spec
1 Summary:        convert meta-languate to openttd's grf and/or nfo files
2 Name:           nml
3 Version:        0.7.5
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:  d21154170e67afaddd78b2ef58419f35
9 URL:            https://dev.openttdcoop.org/projects/nml
10 BuildRequires:  python3-pillow
11 BuildRequires:  python3-ply
12 BuildRequires:  python3-setuptools
13 BuildRequires:  rpm-pythonprov
14 BuildRequires:  rpmbuild(macros) >= 1.234
15 Requires:       python3-pillow
16 Requires:       python3-ply
17 Requires:       python3-setuptools
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
28 %{__make} -j1
29 %{__make} -j1 extensions
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33
34 %{__python3} setup.py install \
35         --skip-build \
36         --optimize=2 \
37         --prefix=%{_prefix} \
38         --root=$RPM_BUILD_ROOT
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
45 %py_postclean
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %files
51 %defattr(644,root,root,755)
52 %attr(755,root,root) %{_bindir}/nmlc
53 %doc docs/*.txt
54 %{_mandir}/man1/nmlc.1*
55 %{py3_sitedir}/*
56 %{py3_sitescriptdir}/%{name}/
This page took 0.047005 seconds and 3 git commands to generate.