Sophie

Sophie

distrib > Mageia > 7 > aarch64 > media > core-release-src > by-pkgid > d81eaff7ade39cd7f3197ffae12bf052 > files > 5

stepmania-5.0.12-1.mga7.src.rpm

%define _disable_ld_no_undefined 1

Summary:	Dance and rhythm game with 3D graphics and dance pad support
Name:		stepmania
Version:	5.0.12
Release:	%mkrel 1
License:	MIT
Url:		http://www.stepmania.com
Group:		Games/Arcade
# Repack to unbundle external deps and remove everything that we don't need
# Patched stuff that can't be removed as of 5.0-beta4a: crypto, jsoncpp, lua5.1, tomcrypt
Source0:	%{name}-%{version}.tar.xz
Source1:	clean-tarball.sh

Patch0:		a565a27da8c5278846c06585cb6e218ff8f0f1b7.patch
Patch1:		WITH_PARALLEL_PORT.patch

BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	cmake
Requires:	%{name}-data = %{version}-%{release}
Recommends:	%{name}-stepmix1

%description
StepMania is a music/rhythm game. The player presses different buttons in time
to the music and to note patterns that scroll across the screen. Features 3D
graphics, visualizations, support for gamepads/dance pads, a step recording
mode, and more!
To add songs, simply copy the content of your folder containing songs
to ~/.stepmania-5.0/Songs.

%package	data
Summary:	Data files for StepMania
BuildArch:	noarch
Obsoletes:	stepmania-data < 3.9-13

%description	data
This package contains arch-independent data files to be used with StepMania.

%prep
%setup -q 
%autopatch -p1

%build
%ifarch %arm
export CFLAGS="%optflags -DLTC_NO_ASM"
export CXXFLAGS="%optflags -DLTC_NO_ASM"
%endif

# Very noisy warning about auto_ptr which is used a lot
export CXXFLAGS="$CXXFLAGS -Wno-deprecated-declarations"

%cmake \
	-DCMAKE_INSTALL_PREFIX=%{_gamesdatadir} \
	-DWITH_FFMPEG=OFF \
	-DWITH_MINIMAID=OFF \
%ifnarch x86_64
	-DWITH_SSE2=OFF \
%endif
%ifnarch %{ix86} x86_64
	-DWITH_PARALLEL_PORT=OFF \
	-DWITH_CRASH_HANDLER=OFF \
%endif

%make_build

%install
cd build
%make_install

# Binary and GtkModule.so
mkdir -p %{buildroot}%{_libexecdir}/%{name}/
mv %{buildroot}%{_gamesdatadir}/%{name}-5.0/stepmania-release-symbols %{buildroot}%{_libexecdir}/%{name}/
mv %{buildroot}%{_gamesdatadir}/%{name}-5.0/GtkModule.so %{buildroot}%{_libexecdir}/%{name}/

cd ..

# Icons
install -d %{buildroot}%{_iconsdir}
cp -a icons/hicolor %{buildroot}%{_iconsdir}/

# Desktop entry
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=StepMania
GenericName=Rhythm game
Comment=Dance and rhythm game with 3D graphics and dance pad support
Exec=%{name}
Icon=%{name}-ssc
Categories=Game;ArcadeGame;
Type=Application
EOF

# Wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat << EOF > %{buildroot}%{_gamesbindir}/%{name}
#!/bin/sh
cd %{_gamesdatadir}/%{name}-5.0/
%{_libexecdir}/%{name}/stepmania-release-symbols
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

%files
%doc README.md Manual/ Docs/{credits.txt,CommandLineArgs.txt,Changelog_sm5.txt}
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}-ssc.*
%{_libexecdir}/%{name}/

%files		data
%{_gamesdatadir}/%{name}-5.0/


%changelog
* Sun Oct 21 2018 pterjan <pterjan> 5.0.12-1.mga7
+ Revision: 1323462
- Kill a noisy warning to strongly reduce build log size
- Disable WITH_MINIMAID, it relies on pre build x86 binaries of libmmmagic
- Totally disable ffmpeg
- Revert the use of system ffmpeg, this version is not compatible with recent ffmpeg
- Disable crash handler on non x86, it is only implemented there
- Add BuildRequires for using system ffmpeg
- Make WITH_PARALLEL_PORT actually do something and only enable it on x86*
- Only enable sse2 on x86_64
- Add missing BuildRequires
- Add an upstream patch fixing a crash early on startup
- create a wrapper rather than patching, now it just crashes like the old version
- Update to 5.0.12, switch to cmake. Location of GtkModule.so seems strange but keeping it in old location for now, not sure if it used to work

* Sun Sep 23 2018 umeabot <umeabot> 5.0.9-7.mga7
+ Revision: 1301201
- Mageia 7 Mass Rebuild

* Sun Dec 03 2017 daviddavid <daviddavid> 5.0.9-6.mga7
+ Revision: 1180810
- rebuild for new glew 2.1.0

* Mon Sep 11 2017 tv <tv> 5.0.9-5.mga7
+ Revision: 1153016
- rebuild for new libglew

* Tue Dec 06 2016 pterjan <pterjan> 5.0.9-4.mga6
+ Revision: 1072807
- Fix build on arm

* Fri Feb 19 2016 umeabot <umeabot> 5.0.9-3.mga6
+ Revision: 969845
- Mageia 6 Mass Rebuild

* Wed Sep 16 2015 zezinho <zezinho> 5.0.9-2.mga6
+ Revision: 880007
- fix patch pkg an lib dirs

* Wed Sep 16 2015 zezinho <zezinho> 5.0.9-1.mga6
+ Revision: 879739
- new version 5.0.9 - patches rediffed - fix compiler errors

* Fri Aug 28 2015 fwang <fwang> 5.0-0.beta4a.4.mga6
+ Revision: 870575
- rebuild for new glew

* Wed Jun 24 2015 akien <akien> 5.0-0.beta4a.3.mga6
+ Revision: 842243
- Rebuild for GLEW 1.12

* Sat Dec 13 2014 joequant <joequant> 5.0-0.beta4a.2.mga5
+ Revision: 802901
- rebuild with new lua
+ akien <akien>
- Add cleaning script to the sources
- Version 5.0 beta4a
- Complete overhaul of the spec file (practically a new package after 9 years):
  o Use pkgconfig for BRs, add new BRs
  o Drop all obsolete patches
  o Unbundle the libs that can be
  o Hardcode datadir and libexecdir in the binary
- Basic data files now provided by this SRPM, obsoleting old stepmania-data
- Disabled ffmpeg support, as upstream advises against using a non-bundled version

* Wed Oct 15 2014 umeabot <umeabot> 3.9-24.mga5
+ Revision: 739351
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 3.9-23.mga5
+ Revision: 689542
- Mageia 5 Mass Rebuild
+ tv <tv>
- s/uggests:/Recommends:/

* Sun Mar 16 2014 doktor5000 <doktor5000> 3.9-22.mga5
+ Revision: 604179
- removed soundwrapper call from .desktop file to prevent segfault (mga#12795)
  o removed Requires on soundwrapper

* Sat Oct 19 2013 umeabot <umeabot> 3.9-21.mga4
+ Revision: 526469
- Mageia 4 Mass Rebuild

* Tue Jun 04 2013 fwang <fwang> 3.9-20.mga4
+ Revision: 436980
- rebuild for new libpng

* Tue Jan 15 2013 luigiwalser <luigiwalser> 3.9-19.mga3
+ Revision: 388405
- use fpermissive to make it build
+ umeabot <umeabot>
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
+ fwang <fwang>
- include string
- add patches

* Tue Mar 06 2012 zezinho <zezinho> 3.9-18.mga2
+ Revision: 220645
- add soundwrapper to menu as it is required when pulseaudio is disabled

* Sun Sep 18 2011 fwang <fwang> 3.9-17.mga2
+ Revision: 145030
- fix build with libpng 1.5
+ stormi <stormi>
- do not use soundwrapper anymore in menu entry (crashes the game)
- spec file cleaning
- increase release so that it's higher than in mageia 1
- suggest stepmania-stepmix1

* Sat Jun 25 2011 zezinho <zezinho> 3.9-13.mga2
+ Revision: 113546
- imported package stepmania