Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:goupilmtos:2024:games
megamario
megamario.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File megamario.spec of Package megamario
# # spec file for package megamario # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: megamario Version: 1.7 Release: 0 Summary: Super Mario Bros. 1 clone License: LGPL-2.1 Group: Amusements/Games/Arcade/LogicGame Url: http://www.megamario.de/ Source0: http://sourceforge.net/projects/mmario/files/Mega%20Mario%20Full%20Game/Mega%20Mario%20v1.7%20%28Full%20Game%2C%20high%20Quality%20music%29/MegaMario_v1.7_full.zip Source1: %{name}-rpmlintrc # Correct path Patch0: %{name}-%{version}-Makefile.patch # Fix megamario.desktop Patch1: %{name}-%{version}-megamario.desktop.patch # Add missing header Patch2: %{name}-%{version}-src_Global.h.patch # Fix location Patch3: %{name}-%{version}-src_functions.cpp.patch # Add missing header Patch4: %{name}-%{version}-src_global.cpp.patch # Add missing header Patch5: %{name}-%{version}-src_levels.h.patch # Fix location Patch6: %{name}-%{version}-src_main.cpp.patch # Fix redefine M_PI Patch7: %{name}-%{version}-src_player.cpp.patch # Add missing header Patch8: %{name}-%{version}-src_unixutils.h.patch BuildRequires: fdupes BuildRequires: update-desktop-files BuildRequires: convmv BuildRequires: dos2unix BuildRequires: gcc-c++ BuildRequires: libjpeg-devel BuildRequires: opengl-games-utils BuildRequires: unzip BuildRequires: pkgconfig(SDL_gfx) BuildRequires: pkgconfig(SDL_image) BuildRequires: pkgconfig(SDL_mixer) BuildRequires: pkgconfig(SDL_ttf) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(sdl) Requires: opengl-games-utils %description Mega Mario is a Super Mario Bros. 1 clone. It features everything the original features - with better graphics, higher resolution, smoother movement and new levels. The story of mario and Luigi continues in old-school style. %prep %setup -q -c # Remove not needed files rm -f data/levels/1/1 data/levels/11/mai data/save.sav # Convert to unix line end find -name "*.txt" -print0 -or -name "*.ini" -print0 \ -or -name "Makefile" -print0 -or -name "*.desktop" -print0 \ -or -name "*.h" -print0 -or -name "*.cpp" -print0 | xargs -0 dos2unix # fix names and extensions sed -i 's|slidebar.PNG|slidebar.png|' data/levels/Edit2/main \ data/levels/3_2/main sed -i 's|style.TTF|style.ttf|' src/main.cpp mv -f help/editor_R*.PNG help/editor_Roehren.png find . -type f \( -name "*.PNG" -or -name "*.JPG" -or -name "*.TTF" \) \ -exec convmv --lower --notest {} + # Fix bad Code sed -i 's|(event.key.keysym.sym)|(event.key.keysym.sym==SDLK_LEFT)|' src/menu.cpp %patch0 %patch1 %patch2 %patch3 %patch4 %patch5 %patch6 %patch7 %patch8 %build export SUSE_ASNEEDED=0 make %{?_smp_mflags} CFLAGS="%{optflags}" %install %make_install # install mp3music cp -a mp3music %{buildroot}%{_datadir}/%{name} # install icon install -Dm 0644 %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png # install Desktop file install -Dm 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop # symlink OpenGL Wrapper ln -s opengl-game-wrapper.sh %{buildroot}%{_bindir}/%{name}-wrapper %if 0%{?suse_version} %suse_update_desktop_file %{name} %fdupes -s %{buildroot}%{_prefix} %endif %files %defattr(-,root,root,-) %doc CONTROLS.txt fixes_v%{version}.txt licence.txt readme.txt help screens %{_bindir}/%{name} %{_bindir}/%{name}-wrapper %{_datadir}/applications/%{name}.desktop %{_datadir}/pixmaps/%{name}.png %{_datadir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor