d21f45
Name:           nml
8da482
Version:        0.4.1
8da482
Release:        1%{?dist}
d21f45
Summary:        NewGRF Meta Language compiler
d21f45
d21f45
License:        GPLv2+
d21f45
URL:            http://dev.openttdcoop.org/projects/nml
8da482
Source0:        http://bundles.openttdcoop.org/nml/releases/%{version}/%{name}-%{version}.tar.gz
d21f45
8da482
BuildRequires:  python3-devel python3-setuptools
8da482
Requires:       python3-pillow python3-ply python3-setuptools
d21f45
d21f45
%description
d21f45
A tool to compile nml files to grf or nfo files, making newgrf coding easier.
d21f45
d21f45
d21f45
%prep
8da482
%setup -q
d21f45
d21f45
d21f45
%build
8da482
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
d21f45
d21f45
d21f45
%install
d21f45
rm -rf $RPM_BUILD_ROOT
8da482
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
d21f45
d21f45
gzip docs/nmlc.1
d21f45
install -Dpm 644 docs/nmlc.1.gz $RPM_BUILD_ROOT%{_mandir}/man1/nmlc.1.gz
d21f45
rm docs/nmlc.1.gz
d21f45
d21f45
 
d21f45
%files
d21f45
%doc docs/*
d21f45
%doc %{_mandir}/man1/nmlc.1.gz
d21f45
%{_bindir}/nmlc
8da482
%{python3_sitearch}/nml*
d21f45
d21f45
d21f45
%changelog
8da482
* Mon May 18 2015 Felix Kaechele <heffer@fedoraproject.org> - 0.4.1-1
8da482
- update to 0.4.1
8da482
- remove version_foo variable (YAY!)
8da482
8da482
* Wed Feb 18 2015 Felix Kaechele <heffer@fedoraproject.org> - 0.4.0-1
8da482
- update to 0.4.0
8da482
- now uses Python 3
8da482
- is no longer noarch
8da482
213339
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 0.3.1-2
213339
- Replace python-setuptools-devel BR with python-setuptools
213339
6712bb
* Sat Jun 21 2014 Felix Kaechele <heffer@fedoraproject.org> - 0.3.1-1
6712bb
- update to 0.3.1
6712bb
- change Source0 URL / source dir name *again* (for the worse, le sigh)
6712bb
533339
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.0-2
533339
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
533339
9f3c22
* Mon Mar 31 2014 Felix Kaechele <heffer@fedoraproject.org> - 0.3.0-1
9f3c22
- update to 0.3.0
9f3c22
- drop patch for pillow support (upstreamed)
9f3c22
- change Source0 URL / source dir name
9f3c22
8d8bad
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.4-2
8d8bad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
8d8bad
494b65
* Thu Mar 14 2013 Felix Kaechele <heffer@fedoraproject.org> - 0.2.4-1
494b65
- update to 0.2.4
494b65
- patch for pillow support
494b65
96051d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-4
96051d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
96051d
3c6a94
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.3-3
3c6a94
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3c6a94
3d7d73
* Wed Apr 11 2012 Felix Kaechele <heffer@fedoraproject.org> - 0.2.3-2
3d7d73
- add python-setuptools runtime requirement
3d7d73
d21f45
* Thu Mar 29 2012 Felix Kaechele <heffer@fedoraproject.org> - 0.2.3-1
d21f45
- initial spec