naev/naev.spec

87 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: naev
Version: 0.6.0
Release: 1mamba
Summary: Naev is a 2D space trading and combat game, in a similar vein to Escape Velocity.
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Ercole 'ercolinux' Carpanetto <ercole69@gmail.com>
URL: http://code.google.com/p/naev/
Source: http://downloads.sourceforge.net/project/naev/naev-%{version}/naev-%{version}.tar.bz2
Source1: http://downloads.sourceforge.net/project/naev/naev-%{version}/ndata-%{version}.zip
Source2: naev32.png
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libfreetype-devel
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libogg-devel
BuildRequires: libopenal-devel
BuildRequires: libpng-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_mixer-devel
BuildRequires: libvorbis-devel
BuildRequires: libxml2-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%debug_package
%description
Naev is a 2D space trading and combat game, in a similar vein to Escape Velocity.
Naev is played from a top-down perspective, featuring fast-paced combat, many ships, a large variety of equipment and a large galaxy to explore. The game is highly open-ended, letting you proceed at your own pace.
%prep
%setup -q
%build
%configure --with-ndata-path=/usr/share/naev/ndata-%{version}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -m644 %{SOURCE1} -D %{buildroot}%{_datadir}/naev/ndata-%{version}
install -m664 %{SOURCE2} -D %{buildroot}%{_datadir}/icons/naev32.png
mkdir -p %{buildroot}/usr/share/applications/
%__cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Naev
GenericName=Naev
GenericName[it]=Naev
Comment=2D space trading and combat game
Comment[it]=Gioco 2D di commercio e combattimento spaziale
Icon=%{_datadir}/icons/naev32.png
Exec=%{_bindir}/%{name}
Type=Application
Categories=Game;StrategyGame;
StartupNotify=true
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/naev
%{_datadir}/appdata/naev.appdata.xml
%{_datadir}/applications/naev.desktop
%{_datadir}/naev/ndata-%{version}
%{_datadir}/icons/naev32.png
%{_datadir}/doc/naev/AUTHORS
%{_datadir}/doc/naev/LICENSE
%{_datadir}/doc/naev/README
%{_datadir}/doc/naev/TODO
%{_mandir}/man6/naev.6.gz
%{_datadir}/naev/naev-confupdate.sh
%{_datadir}/pixmaps/naev.png
%doc AUTHORS LICENSE
%changelog
* Tue Mar 31 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.6.0-1mamba
- update to 0.6.0
* Fri Apr 20 2012 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 0.5.3-1mamba
- package created by autospec