mirror of
https://abf.rosa.ru/djam/astromenace.git
synced 2025-02-24 15:02:59 +00:00
Merge pull request #1 from survolog/astromenace:rosa2016.1
Updated to 1.4.0
This commit is contained in:
commit
451ec214ac
2 changed files with 30 additions and 32 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
|||
sources:
|
||||
astromenace-src-1.3.2.tar.bz2: a4b5c8c76970fbff0609a59d80402848957aa515
|
||||
astromenace-1.4.0.tar.gz: e79aadc4403a62998154dcd33a4707a4ec3120ad
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
Summary: Hardcore 3D space shooter with spaceship upgrade possibilities
|
||||
Name: astromenace
|
||||
Version: 1.3.2
|
||||
Release: 5
|
||||
Version: 1.4.0
|
||||
Release: 1
|
||||
License: GPLv3+
|
||||
Group: Games/Arcade
|
||||
Url: http://www.viewizard.com/
|
||||
Source0: http://sourceforge.net/projects/openastromenace/files/%{version}/%{name}-src-%{version}.tar.bz2
|
||||
Source0: https://github.com/viewizard/astromenace/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
|
||||
Source1: astromenace.desktop
|
||||
BuildRequires: cmake
|
||||
BuildRequires: pkgconfig(freealut)
|
||||
|
@ -16,7 +16,7 @@ BuildRequires: pkgconfig(gl)
|
|||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: pkgconfig(ogg)
|
||||
BuildRequires: pkgconfig(openal)
|
||||
BuildRequires: pkgconfig(sdl)
|
||||
BuildRequires: pkgconfig(sdl2)
|
||||
BuildRequires: pkgconfig(vorbis)
|
||||
BuildRequires: pkgconfig(xinerama)
|
||||
BuildRequires: jpeg-devel
|
||||
|
@ -34,6 +34,14 @@ a final showdown and put their best pilot to fight back. These malicious
|
|||
invaders chose the wrong galaxy to conquer and you are to prove it!
|
||||
Go ahead and make alien aggressors regret their insolence.
|
||||
|
||||
%files
|
||||
%doc CHANGELOG.md LICENSE.md README.md
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/astromenace.desktop
|
||||
%{_iconsdir}/hicolor/*/apps/%{name}.png
|
||||
|
||||
#------------------------------------------------------------------
|
||||
|
||||
%package data
|
||||
Summary: Game data for AstroMenace game
|
||||
Requires: %{name} = %{version}
|
||||
|
@ -44,27 +52,28 @@ Obsoletes: astromenace-data-de < 1.3.1
|
|||
%description data
|
||||
This package provides game data for AstroMenace.
|
||||
|
||||
%prep
|
||||
%setup -qn AstroMenace
|
||||
sed -i 's/\r//' License.txt
|
||||
sed -i 's/\r//' gpl-3.0.txt
|
||||
sed -i 's/\r//' ReadMe.txt
|
||||
%files data
|
||||
%{_datadir}/%{name}
|
||||
|
||||
chmod -x License.txt
|
||||
chmod -x ReadMe.txt
|
||||
chmod -x gpl-3.0.txt
|
||||
#------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
find . -name "*.cpp" -exec sed -i 's/\r//g' {} \;
|
||||
find . -name "*.h" -exec sed -i 's/\r//g' {} \;
|
||||
find . -name "*.cpp" -exec chmod 0644 {} \;
|
||||
find . -name "*.h" -exec chmod 0644 {} \;
|
||||
chmod -x CHANGELOG.md LICENSE.md README.md
|
||||
|
||||
%build
|
||||
%cmake \
|
||||
-DCMAKE_INSTALL_PREFIX=/usr \
|
||||
-DDATADIR=/usr/share/astromenace
|
||||
%make
|
||||
./AstroMenace --pack --rawdata=../RAW_VFS_DATA --dir=.
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}%{_bindir}
|
||||
install -m 755 build/AstroMenace %{buildroot}%{_bindir}/%{name}
|
||||
install -m 755 build/astromenace %{buildroot}%{_bindir}/%{name}
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}
|
||||
install -m 644 build/gamedata.vfs %{buildroot}%{_datadir}/%{name}/gamedata.vfs
|
||||
|
||||
|
@ -74,17 +83,6 @@ desktop-file-install \
|
|||
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
|
||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
|
||||
install -p -m 644 %{name}_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
||||
install -p -m 644 %{name}_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
||||
|
||||
%files
|
||||
%doc ReadMe.txt License.txt
|
||||
%{_bindir}/%{name}
|
||||
%{_datadir}/applications/astromenace.desktop
|
||||
%{_iconsdir}/hicolor/*/apps/%{name}.png
|
||||
|
||||
%files data
|
||||
%doc gpl-3.0.txt
|
||||
%{_datadir}/%{name}
|
||||
|
||||
install -p -m 644 share/%{name}_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
|
||||
install -p -m 644 share/%{name}_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue