fheroes2/fheroes2.spec

68 lines
2.1 KiB
RPMSpec
Raw Normal View History

2012-10-24 20:31:19 +11:00
%define rev r2931
2012-02-02 02:15:30 +04:00
Name: fheroes2
2012-10-24 20:31:19 +11:00
Version: 20120917
2014-06-03 08:57:12 +04:00
Release: 2
2012-02-02 02:15:30 +04:00
Summary: Free implementation of Heroes of the Might and Magic II engine
License: GPL
Group: Games/Strategy
Url: http://sourceforge.net/projects/fheroes2/
Source: http://sourceforge.net/projects/fheroes2/files/fheroes2/%{name}-src-%{rev}.tgz
Source2: %{name}.sh
Source3: %{name}.png
Source4: %{name}.desktop
Source5: %{name}.cfg
BuildRequires: gcc-c++
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_net-devel
BuildRequires: SDL_ttf-devel
2012-10-24 20:31:19 +11:00
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(libpng)
2012-02-02 02:15:30 +04:00
BuildRequires: zlib-devel
%description
Free implementation of Heroes of the Might and Magic II engine.
You need to copy files from data and maps directories from original game
into your /usr/share/games/fheroes2/{maps,data} directories respectively
%prep
%setup -qn fheroes-src
%build
%make WITH_AI=simple CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"
%install
# let's create directory structure...
2012-10-24 20:31:19 +11:00
mkdir -p %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
2012-02-02 02:15:30 +04:00
# and install what we need where we need it to be...
2012-10-24 20:31:19 +11:00
install -pm755 %{name} %{buildroot}%{_gamesbindir}/%{name}.bin
install -pm755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
install -pm 644 %{name}.cfg %{buildroot}%{_gamesdatadir}/%{name}/
install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/
2012-08-02 19:04:47 +00:00
2012-02-02 02:15:30 +04:00
%files
%doc AUTHORS changelog.txt COPYING LICENSE README
%{_gamesbindir}/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_gamesdatadir}/%{name}
%changelog
2012-08-02 20:22:46 +00:00
* Mon Mar 12 2012 Andrey Bondrov <abondrov@mandriva.org> 20120301-1mdv2011.0
2012-08-02 19:04:47 +00:00
+ Revision: 784372
- New official snapshot 2767 from 2012.03.01
* Thu Dec 08 2011 Andrey Bondrov <abondrov@mandriva.org> 20111109-1
2012-02-02 02:15:30 +04:00
+ Revision: 739019
- imported package fheroes2