Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > a8b250c651278da44cad032d09089274 > files > 2

corsixth-0.40-1.mga5.src.rpm

%define oname	CorsixTH

Name:		corsixth
Version:	0.40
Release:	%mkrel 1
Epoch:		1
Summary:	Open source clone of Theme Hospital
Group:		Games/Strategy
License:	MIT
URL:		http://code.google.com/p/corsix-th/
Source0:	https://github.com/CorsixTH/CorsixTH/archive/v%{version}/%{oname}-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	ffmpeg-devel
Recommends:	TiMidity++

%description
This project aims to reimplement the game engine of Theme Hospital, and
be able to load the original game data files. This means that you will
need a purchased copy of Theme Hospital in order to enjoy CorsixTH.

%prep
%setup -q -n %{oname}-%{version}
%apply_patches

%build
%cmake -DCMAKE_INSTALL_PREFIX=%{_gamesdatadir}
%make

%install
%makeinstall_std -C build

install -d %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{oname} << EOF
#!/bin/bash
%{_gamesdatadir}/%{oname}/%{oname}
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{oname}

install -d %{buildroot}%{_gamesdatadir}/%{oname}/th-files/

install -D -m 0644 %{oname}/Original_Logo.svg -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=CorsixTH
Comment=Open Source clone of Theme Hospital game
Exec=%{oname}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}-mapedit.desktop << EOF
[Desktop Entry]
Name=CorsixTh MapEdit
Comment=Map Editor for Theme Hospital
Exec=MapEdit
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF

%files
%doc LICENSE.txt README.txt
%{_gamesbindir}/%{oname}
%{_gamesdatadir}/%{oname}/
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{_datadir}/applications/%{name}*.desktop


%changelog
* Tue Dec 23 2014 akien <akien> 1:0.40-1.mga5
+ Revision: 805119
- Version 0.40

* Fri Nov 14 2014 akien <akien> 1:0.30-4.mga5
+ Revision: 797145
- Rebuild for ffmpeg 2.4

* Wed Oct 15 2014 umeabot <umeabot> 1:0.30-3.mga5
+ Revision: 740788
- Second Mageia 5 Mass Rebuild

* Wed Sep 17 2014 umeabot <umeabot> 1:0.30-2.mga5
+ Revision: 693124
- Mageia 5 Mass Rebuild

  + tv <tv>
    - s/uggests:/Recommends:/

  + dams <dams>
    - new version 0.30

* Tue Dec 17 2013 dams <dams> 1:0.30-0.20131216.1.mga4
+ Revision: 558278
- new git snapshot (20131216)

* Wed Oct 23 2013 dams <dams> 1:0.30-0.20131023.2.mga4
+ Revision: 546587
- use .svg for the icon game instead of building .png with the .ico

* Wed Oct 23 2013 dams <dams> 1:0.30-0.20131023.1.mga4
+ Revision: 546568
- new git snapshot (20131023)

* Sat Oct 19 2013 umeabot <umeabot> 1:0.30-0.20130908.2.mga4
+ Revision: 534211
- Mageia 4 Mass Rebuild

* Mon Sep 09 2013 dams <dams> 1:0.30-0.20130908.1.mga4
+ Revision: 476510
- new version svn snapshot for 0.30
- add a patch for CMakeLists for moved LICENSE.txt (reported upstream)

* Mon Jul 15 2013 fwang <fwang> 1:0.21-2.mga4
+ Revision: 454446
- rebuild for new ffmpeg

* Thu May 23 2013 dams <dams> 1:0.21-1.mga4
+ Revision: 425067
- new version 0.21

* Tue Mar 26 2013 dams <dams> 1:0.20-1.mga3
+ Revision: 405247
- new version 0.20
- update BuildRequires

* Fri Jan 11 2013 umeabot <umeabot> 1:0.11-2.mga3
+ Revision: 348187
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Nov 18 2012 dams <dams> 1:0.11-1.mga3
+ Revision: 319410
- new version 0.11

* Tue Sep 25 2012 dams <dams> 1:0.10-1.mga3
+ Revision: 297686
- new version 0.10
- clean specfile

* Mon Jun 25 2012 dams <dams> 1:0.01b-4.mga3
+ Revision: 263543
- remove 'how to use' from 'description'

* Thu Jun 14 2012 dams <dams> 1:0.01b-3.mga3
+ Revision: 260593
- Add 'TiMidity++' as require to make music work

* Tue Jun 12 2012 dams <dams> 1:0.01b-2.mga3
+ Revision: 260140
- Update game icon with the legal/official icon

* Mon Jun 11 2012 dams <dams> 1:0.01b-1.mga3
+ Revision: 259769
- add the good BuildRequire for freetype2-devel
- new version 0.01b
- clean specfile
- update BuildRequires
- add Epoch as previous version was not the good one

* Fri Jan 27 2012 fwang <fwang> 0.8-2.mga2
+ Revision: 202196
- cleanup spec

* Wed Sep 28 2011 supp <supp> 0.8-1.mga2
+ Revision: 149929
- update to Beta8, fixing various bugs and adding VIP visits...

* Sun Jun 26 2011 supp <supp> 0.7-1.mga2
+ Revision: 114064
-update to b7 release

* Mon Apr 25 2011 wally <wally> 0.6-2.mga1
+ Revision: 90308
- fix desktop file name (mga#954)
- drop buildroot definition

* Sun Mar 27 2011 supp <supp> 0.6-1.mga1
+ Revision: 78013
- imported package corsixth