mirror of
https://abf.rosa.ru/djam/fheroes2.git
synced 2025-02-23 09:42:53 +00:00
New SVN revision 3277
Build with proper compiler flags Spec cleanup
This commit is contained in:
parent
c4263eaa72
commit
533da9a51b
2 changed files with 35 additions and 39 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
"fheroes2-src-r2931.tgz": 4c06f702c0ce5cf0823999b8c16e33d555f6c064
|
fheroes2-src-r3277.tar.bz2: e744d471597170b50b8105ee5292bec05c7475cf
|
||||||
|
|
|
@ -1,35 +1,49 @@
|
||||||
%define rev r2931
|
%define rev r3277
|
||||||
Name: fheroes2
|
|
||||||
Version: 20120917
|
|
||||||
Release: 2
|
|
||||||
Summary: Free implementation of Heroes of the Might and Magic II engine
|
Summary: Free implementation of Heroes of the Might and Magic II engine
|
||||||
License: GPL
|
Name: fheroes2
|
||||||
|
Version: 20150413
|
||||||
|
Release: 1
|
||||||
|
License: GPLv2+
|
||||||
Group: Games/Strategy
|
Group: Games/Strategy
|
||||||
Url: http://sourceforge.net/projects/fheroes2/
|
Url: http://sourceforge.net/projects/fheroes2/
|
||||||
Source: http://sourceforge.net/projects/fheroes2/files/fheroes2/%{name}-src-%{rev}.tgz
|
Source0: %{name}-src-%{rev}.tar.bz2
|
||||||
Source2: %{name}.sh
|
Source2: fheroes2.sh
|
||||||
Source3: %{name}.png
|
Source3: fheroes2.png
|
||||||
Source4: %{name}.desktop
|
Source4: fheroes2.desktop
|
||||||
Source5: %{name}.cfg
|
Source5: fheroes2.cfg
|
||||||
BuildRequires: gcc-c++
|
|
||||||
BuildRequires: SDL_image-devel
|
|
||||||
BuildRequires: SDL_mixer-devel
|
|
||||||
BuildRequires: SDL_net-devel
|
|
||||||
BuildRequires: SDL_ttf-devel
|
|
||||||
BuildRequires: pkgconfig(freetype2)
|
BuildRequires: pkgconfig(freetype2)
|
||||||
BuildRequires: pkgconfig(libpng)
|
BuildRequires: pkgconfig(libpng)
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: pkgconfig(sdl)
|
||||||
|
BuildRequires: pkgconfig(SDL_image)
|
||||||
|
BuildRequires: pkgconfig(SDL_mixer)
|
||||||
|
BuildRequires: pkgconfig(SDL_net)
|
||||||
|
BuildRequires: pkgconfig(SDL_ttf)
|
||||||
|
BuildRequires: pkgconfig(zlib)
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Free implementation of Heroes of the Might and Magic II engine.
|
Free implementation of Heroes of the Might and Magic II engine.
|
||||||
You need to copy files from data and maps directories from original game
|
You need to copy files from data and maps directories from original game
|
||||||
into your /usr/share/games/fheroes2/{maps,data} directories respectively
|
into your /usr/share/games/fheroes2/{maps,data} directories respectively.
|
||||||
|
|
||||||
|
%files
|
||||||
|
%doc AUTHORS changelog.txt COPYING LICENSE README
|
||||||
|
%{_gamesbindir}/*
|
||||||
|
%{_datadir}/pixmaps/%{name}.png
|
||||||
|
%{_datadir}/applications/%{name}.desktop
|
||||||
|
%{_gamesdatadir}/%{name}
|
||||||
|
|
||||||
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -qn fheroes-src
|
%setup -qn %{name}-src-%{rev}/fheroes2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make WITH_AI=simple CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"
|
cd src
|
||||||
|
%setup_compile_flags
|
||||||
|
%make \
|
||||||
|
WITH_AI=simple \
|
||||||
|
CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# let's create directory structure...
|
# let's create directory structure...
|
||||||
|
@ -39,7 +53,7 @@ mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||||||
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
|
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
|
||||||
|
|
||||||
# and install what we need where we need it to be...
|
# and install what we need where we need it to be...
|
||||||
install -pm755 %{name} %{buildroot}%{_gamesbindir}/%{name}.bin
|
install -pm755 src/dist/%{name} %{buildroot}%{_gamesbindir}/%{name}.bin
|
||||||
install -pm755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
|
install -pm755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
|
||||||
install -pm 644 %{name}.cfg %{buildroot}%{_gamesdatadir}/%{name}/
|
install -pm 644 %{name}.cfg %{buildroot}%{_gamesdatadir}/%{name}/
|
||||||
install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/
|
install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/
|
||||||
|
@ -47,21 +61,3 @@ install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
||||||
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
||||||
install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/
|
install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/
|
||||||
|
|
||||||
%files
|
|
||||||
%doc AUTHORS changelog.txt COPYING LICENSE README
|
|
||||||
%{_gamesbindir}/*
|
|
||||||
%{_datadir}/pixmaps/%{name}.png
|
|
||||||
%{_datadir}/applications/%{name}.desktop
|
|
||||||
%{_gamesdatadir}/%{name}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Mon Mar 12 2012 Andrey Bondrov <abondrov@mandriva.org> 20120301-1mdv2011.0
|
|
||||||
+ Revision: 784372
|
|
||||||
- New official snapshot 2767 from 2012.03.01
|
|
||||||
|
|
||||||
* Thu Dec 08 2011 Andrey Bondrov <abondrov@mandriva.org> 20111109-1
|
|
||||||
+ Revision: 739019
|
|
||||||
- imported package fheroes2
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue