2024-01-06 10:07:10 +01:00
|
|
|
Name: pinball
|
2024-01-06 10:07:11 +01:00
|
|
|
Version: 0.3.20230219
|
|
|
|
Release: 1mamba
|
2024-01-06 10:07:10 +01:00
|
|
|
Summary: The Emilia Pinball Project
|
|
|
|
Group: Applications/Games
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 10:07:10 +01:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 10:07:10 +01:00
|
|
|
URL: https://pinball.sourceforge.net/
|
2024-01-06 10:07:10 +01:00
|
|
|
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
|
2024-01-06 10:07:11 +01:00
|
|
|
BuildRequires: libSDL2-devel
|
2024-01-06 10:07:10 +01:00
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libglvnd-devel
|
|
|
|
BuildRequires: libltdl-devel
|
2024-01-06 10:07:11 +01:00
|
|
|
BuildRequires: libsdl2_image-devel
|
|
|
|
BuildRequires: libsdl2_mixer-devel
|
2024-01-06 10:07:10 +01:00
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 10:07:10 +01:00
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
%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.
|
2024-01-06 10:07:10 +01:00
|
|
|
This package contains libraries and header files needed for development.
|
2024-01-06 10:07:10 +01:00
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
%debug_package
|
2024-01-06 10:07:10 +01:00
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
%global __brp_remove_la_files %nil
|
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
%prep
|
2024-01-06 10:07:10 +01:00
|
|
|
%setup -q
|
2024-01-06 10:07:10 +01:00
|
|
|
#%patch0 -p1 -z .sys-ltdl
|
|
|
|
#%patch1 -p1 -z .hiscore
|
2024-01-06 10:07:11 +01:00
|
|
|
#%patch 2 -p1
|
2024-01-06 10:07:10 +01:00
|
|
|
#%patch3 -p1
|
2024-01-06 10:07:10 +01:00
|
|
|
rm -fr libltdl
|
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
./bootstrap
|
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
%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
|
2024-01-06 10:07:10 +01:00
|
|
|
%{_libdir}/pinball/libModuleProfessor.so.*
|
|
|
|
%{_libdir}/pinball/libModuleTux.so.*
|
|
|
|
%{_libdir}/pinball/libModuleTest.so.*
|
2024-01-06 10:07:10 +01:00
|
|
|
%{_libdir}/pinball/libModuleProfessor.la
|
|
|
|
%{_libdir}/pinball/libModuleTux.la
|
|
|
|
%{_libdir}/pinball/libModuleTest.la
|
2024-01-06 10:07:10 +01:00
|
|
|
%{_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
|
2024-01-06 10:07:10 +01:00
|
|
|
#%{_datadir}/games/pinball/tux/*.mid
|
|
|
|
%doc COPYING
|
2024-01-06 10:07:10 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/pinball-config
|
|
|
|
%dir %{_includedir}/pinball
|
|
|
|
%{_includedir}/pinball/*.h
|
|
|
|
%dir %{_libdir}/pinball
|
|
|
|
%{_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
|
2024-01-06 10:07:10 +01:00
|
|
|
%doc ChangeLog README
|
2024-01-06 10:07:10 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:07:11 +01:00
|
|
|
* Tue Mar 21 2023 Automatic Build System <autodist@mambasoft.it> 0.3.20230219-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
* Sun Dec 11 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.20201218-2mamba
|
|
|
|
- move .la files from devel to main package because required at run time
|
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
* Mon Mar 21 2022 Automatic Build System <autodist@mambasoft.it> 0.3.20201218-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:07:10 +01:00
|
|
|
* 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
|