169 lines
4.9 KiB
RPMSpec
169 lines
4.9 KiB
RPMSpec
|
Name: pinball
|
||
|
Version: 0.3.1
|
||
|
Release: 4mamba
|
||
|
Summary: The Emilia Pinball Project
|
||
|
Group: Applications/Games
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: gil <puntogil@libero.it>
|
||
|
URL: http://pinball.sourceforge.net/
|
||
|
Source0: http://downloads.sourceforge.net/pinball/pinball-%{version}.tar.gz
|
||
|
Source1: %{name}.png
|
||
|
Patch0: %{name}-0.3.1-sys-ltdl.patch
|
||
|
Patch1: %{name}-0.3.1-hiscore.patch
|
||
|
Patch2: %{name}-0.3.1-gcc44.patch
|
||
|
Patch3: %{name}-0.3.1-make-3.82.patch
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libaudio-devel
|
||
|
BuildRequires: libdirectfb-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libGL-devel
|
||
|
BuildRequires: libGLU-devel
|
||
|
BuildRequires: libICE-devel
|
||
|
BuildRequires: libltdl-devel
|
||
|
BuildRequires: libSDL-devel
|
||
|
BuildRequires: libSDL_image-devel
|
||
|
BuildRequires: libSDL_mixer-devel
|
||
|
BuildRequires: libSM-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
BuildRequires: libX11-devel
|
||
|
BuildRequires: libXau-devel
|
||
|
BuildRequires: libxcb-devel
|
||
|
BuildRequires: libXdmcp-devel
|
||
|
BuildRequires: libXt-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
%description
|
||
|
The Emilia Pinball Project is a pinball simulator for Linux and other Unix systems.
|
||
|
There is only one level to play with, but it is very addictive.
|
||
|
|
||
|
%package devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Libraries and headers for %{name}
|
||
|
Requires: %{name} = %{version}
|
||
|
|
||
|
%description devel
|
||
|
The Emilia Pinball Project is a pinball simulator for Linux and other Unix systems.
|
||
|
There is only one level to play with, but it is very addictive.
|
||
|
|
||
|
This package contains libraries and header files need for development.
|
||
|
This package contains files not necessary for the proper functioning of %{name}.
|
||
|
%prep
|
||
|
|
||
|
%setup -q
|
||
|
%patch0 -p1 -z .sys-ltdl
|
||
|
%patch1 -p1 -z .hiscore
|
||
|
%patch2 -p1
|
||
|
%patch3 -p1
|
||
|
rm -fr libltdl
|
||
|
|
||
|
# sigh stop autoxxx from rerunning because of our patches above.
|
||
|
touch aclocal.m4
|
||
|
touch configure
|
||
|
touch `find -name Makefile.in`
|
||
|
touch pinconfig.h.in
|
||
|
# cleanup a bit
|
||
|
chmod -x ChangeLog */*.h */*.cpp data/*/Module*.cpp
|
||
|
%build
|
||
|
%configure \
|
||
|
--datadir=%{_datadir}/games
|
||
|
|
||
|
make CXXFLAGS="$RPM_OPT_FLAGS -DNULL=0"
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
# remove unused global higescorefiles:
|
||
|
rm -fr %{buildroot}%{_localstatedir}
|
||
|
#desktop
|
||
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||
|
|
||
|
mkdir -p %{buildroot}%{_datadir}/applications
|
||
|
|
||
|
install -m 644 %{S:1} %{buildroot}%{_datadir}/pixmaps
|
||
|
|
||
|
cat > %{buildroot}%{_datadir}/applications/EmiliaPinball.desktop << EOF
|
||
|
[Desktop Entry]
|
||
|
Encoding=UTF-8
|
||
|
Name=Pinball
|
||
|
Comment=Emilia Pinball game
|
||
|
Exec=/usr/bin/pinball
|
||
|
Icon=/usr/share/pixmaps/pinball.png
|
||
|
Terminal=false
|
||
|
Type=Application
|
||
|
Categories=Game;ArcadeGame;
|
||
|
EOF
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -p /sbin/ldconfig
|
||
|
%postun -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/pinball
|
||
|
%dir %{_libdir}/pinball
|
||
|
%{_libdir}/pinball/libModuleProfessor.la
|
||
|
%{_libdir}/pinball/libModuleProfessor.so.0
|
||
|
%{_libdir}/pinball/libModuleProfessor.so.0.0.0
|
||
|
%{_libdir}/pinball/libModuleTux.la
|
||
|
%{_libdir}/pinball/libModuleTux.so.0
|
||
|
%{_libdir}/pinball/libModuleTux.so.0.0.0
|
||
|
%{_datadir}/pixmaps/pinball.png
|
||
|
%{_datadir}/applications/EmiliaPinball.desktop
|
||
|
%dir %{_datadir}/games/pinball
|
||
|
%{_datadir}/games/pinball/*.pcx
|
||
|
%{_datadir}/games/pinball/*.xpm
|
||
|
%{_datadir}/games/pinball/*.png
|
||
|
%dir %{_datadir}/games/pinball/professor
|
||
|
%{_datadir}/games/pinball/professor/*.wav
|
||
|
%{_datadir}/games/pinball/professor/*.png
|
||
|
%{_datadir}/games/pinball/professor/*.pcx
|
||
|
%{_datadir}/games/pinball/professor/*.ogg
|
||
|
%{_datadir}/games/pinball/professor/*.pbl
|
||
|
%dir %{_datadir}/games/pinball/tux
|
||
|
%{_datadir}/games/pinball/tux/*.wav
|
||
|
%{_datadir}/games/pinball/tux/*.pcx
|
||
|
%{_datadir}/games/pinball/tux/*.pbl
|
||
|
%{_datadir}/games/pinball/tux/*.png
|
||
|
%{_datadir}/games/pinball/tux/*.ogg
|
||
|
%{_datadir}/games/pinball/tux/*.mid
|
||
|
%doc COPYING ChangeLog README
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/pinball-config
|
||
|
%dir %{_includedir}/pinball
|
||
|
%{_includedir}/pinball/*.h
|
||
|
%dir %{_libdir}/pinball
|
||
|
%{_libdir}/pinball/libModuleTest.so.0
|
||
|
%{_libdir}/pinball/libModuleTest.so.0.0.0
|
||
|
%{_libdir}/pinball/libModuleTest.la
|
||
|
%{_libdir}/pinball/libModuleTest.so
|
||
|
%{_libdir}/pinball/libModuleTux.so
|
||
|
%{_libdir}/pinball/libModuleProfessor.so
|
||
|
%{_libdir}/pinball/libModuleProfessor.a
|
||
|
%{_libdir}/pinball/libModuleTest.a
|
||
|
%{_libdir}/pinball/libModuleTux.a
|
||
|
%{_libdir}/pinball/libemilia_addon.a
|
||
|
%{_libdir}/pinball/libemilia_base.a
|
||
|
%{_libdir}/pinball/libemilia_pin.a
|
||
|
|
||
|
%changelog
|
||
|
* Mon Aug 23 2010 Automatic Build System <autodist@mambasoft.it> 0.3.1-4mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Mon Jun 29 2009 Automatic Build System <autodist@mambasoft.it> 0.3.1-3mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Thu May 21 2009 Automatic Build System <autodist@mambasoft.it> 0.3.1-2mamba
|
||
|
- automatic rebuild by autodist
|
||
|
|
||
|
* Wed Sep 24 2008 gil <puntogil@libero.it> 0.3.1-1mamba
|
||
|
- added package devel
|