%define realname openmsx Name: openttd-%{realname} Version: 0.2.1 Release: %mkrel 1 Summary: OpenMSX music replacement set for OpenTTD Group: Games/Strategy License: GPLv2 URL: http://dev.openttdcoop.org/projects/openmsx Source0: http://bundles.openttdcoop.org/%{realname}/releases/%{realname}-%{version}-source.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: dos2unix BuildRequires: python Conflicts: openttd < 1.0.0-2mdv %description OpenMSX is an open source replacement for the original Transport Tycoon Deluxe (TTD) music. It's currently work-in-progress and does not have a huge collection of music. %prep %setup -q -n %{realname}-%{version}-source %build %make %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_gamesdatadir}/openttd/gm %make install INSTALL_DIR=%{buildroot}%{_gamesdatadir}/openttd/gm # fix EOLs for f in docs/*.txt; do dos2unix $f done %check %make check %clean rm -rf %{buildroot} %files %defattr(644,root,root,755) %doc docs/*.txt %{_gamesdatadir}/openttd/gm/%{realname}-%{version} %changelog * Tue Apr 13 2010 Jani Välimaa <wally@mandriva.org> 0.2.1-1mdv2010.1 + Revision: 534622 - import openttd-openmsx