neverball/neverball.spec

78 lines
2.8 KiB
RPMSpec
Raw Normal View History

Name: neverball
Version: 1.5.4
Release: 1mamba
Summary: Neverball is part puzzle game, part action game, and entirely a test of skill
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://icculus.org/neverball
Source: http://icculus.org/neverball/neverball-%{version}.tar.gz
Source1: neverball.desktop
Source2: neverputt.desktop
Patch0: neverball-1.5.4-libpng-1.6.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libGL-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libSDL-devel
BuildRequires: libSDL_ttf-devel
BuildRequires: libvorbis-devel
BuildRequires: libX11-devel
## AUTOBUILDREQ-END
BuildRequires: libSDL_mixer-devel >= 1.2.7
BuildRequires: libSDL_image-devel >= 1.2.5
%description
Tilt the floor to roll a ball through an obstacle course before time runs out. Neverball is part puzzle game, part action game, and entirely a test of skill.
Also found here is Neverputt, a hot-seat multiplayer miniature golf game using the physics and graphics of Neverball.
%prep
%setup -q
%patch0 -p1
sed -i "s|CONFIG_DATA .*|CONFIG_DATA \"%{_datadir}/neverball/data\"|" share/base_config.h
sed -i "s|CONFIG_LOCALE .*|CONFIG_LOCALE \"%{_datadir}/neverball/locale\"|" share/base_config.h
%build
%make LDFLAGS="-lX11 -lm"
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -d -m0755 %{buildroot}%{_datadir}/neverball
install -D -m0755 neverball %{buildroot}%{_bindir}/neverball
install -D -m0755 neverputt %{buildroot}%{_bindir}/neverputt
install -D -m0644 data/icon/neverball.png %{buildroot}%{_datadir}/pixmaps/neverball.png
install -D -m0644 data/icon/neverputt.png %{buildroot}%{_datadir}/pixmaps/neverputt.png
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/neverball.desktop
install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/neverputt.desktop
cp -a data %{buildroot}%{_datadir}/neverball/
cp -a locale %{buildroot}%{_datadir}/neverball/
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/neverball
%{_bindir}/neverputt
%{_datadir}/pixmaps/neverball.png
%{_datadir}/pixmaps/neverputt.png
%{_datadir}/applications/neverball.desktop
%{_datadir}/applications/neverputt.desktop
%dir %{_datadir}/neverball
%{_datadir}/neverball/*
%doc CHANGES COPYING README
%changelog
* Mon Oct 15 2012 Automatic Build System <autodist@mambasoft.it> 1.5.4-1mamba
- automatic version update by autodist
* Tue Feb 17 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.5.0-1mamba
- automatic update by autodist
* Thu Mar 22 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.4.0-1qilnx
- package created by autospec