56 lines
1.2 KiB
RPMSpec
56 lines
1.2 KiB
RPMSpec
Name: CorsixTH
|
|
Version: 0.0.1
|
|
Release: 1
|
|
URL: http://code.google.com/p/corsix-th/
|
|
License: MIT
|
|
Group: Amusements/Games
|
|
Summary: Theme Hospital clone
|
|
Source: http://corsix-th.googlecode.com/files/CorsixTH-PlayableBeta1-Source.tar.gz
|
|
Patch0: %{name}-datapath.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: cmake
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: lua-devel
|
|
BuildRequires: SDL-devel
|
|
BuildRequires: SDL_mixer-devel
|
|
|
|
%description
|
|
Theme Hospital clone.
|
|
|
|
%prep
|
|
%setup -q -n CorsixTH-PlayableBeta1-Source
|
|
%patch0
|
|
chmod -x README.txt
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
export CXXFLAGS="%{optflags}"
|
|
export FFLAGS="%{optflags}"
|
|
cmake . -DCMAKE_INSTALL_PREFIX=%{_libdir}
|
|
make %{?jobs:-j%jobs}
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{_bindir}
|
|
mkdir -p %{buildroot}%{_libdir}/%{name}/Data
|
|
make DESTDIR=%{buildroot} install
|
|
# create wrapper
|
|
cat <<EOF >%{buildroot}%{_bindir}/%{name}
|
|
#!/bin/sh
|
|
cd %{_libdir}/%{name}
|
|
./%{name}
|
|
cd -
|
|
EOF
|
|
chmod +x %{buildroot}%{_bindir}/%{name}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README.txt
|
|
%{_bindir}/%{name}
|
|
%dir %{_libdir}/%{name}
|
|
%{_libdir}/%{name}/*
|
|
|
|
%changelog
|