foobillard/foobillard.spec

89 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

Name: foobillard
Version: 3.0a
Release: 2mamba
Summary: A free OpenGl billard game for linux.
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://foobillard.sunsite.dk/
Source: http://foobillard.sunsite.dk/dnl/foobillard-%{version}.tar.gz
Patch: %{name}-3.0a-nonv.patch
Patch1: foobillard-3.0a-no-nv-bumpref.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libfreetype-devel
BuildRequires: libGL-devel
BuildRequires: libGLU-devel
BuildRequires: libICE-devel
BuildRequires: libpng-devel
BuildRequires: libSDL-devel
BuildRequires: libSM-devel
BuildRequires: libXaw-devel
BuildRequires: libXi-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
FooBillard is an attempt to create a free OpenGL-billard for Linux. Why foo? Well, actually I had this logo (F.B.-Florian Berger) and then foo sounds a bit like pool (Somehow I wasn't quite attracted by the name FoolBillard) Actually FooBillard is still under development but the main physics is implemented. If you are a billard-pro and you're missing some physics, please tell me. Cause I've implemented it like I think it should work, which might differ from reality.
%prep
%setup -q
%patch -p1
%patch1 -p1
%build
%configure \
--prefix=%{_prefix} \
--datadir=%{_datadir}/games \
--enable-SDL \
--enable-debug \
# --x-includes=%{_includedir}/X11 \
#--x-libraries=%{_prefix}/X11R6/%{_lib}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=FooBillard
GenericName=Billard
GenericName[it]=Biliardo
Comment=OpenGL Billard game
Comment[it]=Gioco del Biliardo
Exec=%{_bindir}/foobillard
Icon=%{_datadir}/games/foobillard/foobillard.png
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/foobillard
%{_datadir}/applications/foobillard.desktop
%dir %{_datadir}/games/foobillard
%{_datadir}/games/foobillard/ball_ball.raw
%{_datadir}/games/foobillard/foobillard.gif
%{_datadir}/games/foobillard/*.png
%{_datadir}/games/foobillard/*.ttf
%doc AUTHORS COPYING
#ChangeLog README README.FONTS TODO
%changelog
* Sun Sep 08 2013 Automatic Build System <autodist@mambasoft.it> 3.0a-2mamba
- automatic rebuild by autodist
* Sun Aug 31 2008 gil <puntogil@libero.it> 3.0a-1mamba
- added desktop file