]> git.pld-linux.org Git - packages/performous.git/blobdiff - performous.spec
- disable Werror to prevent benign warning breaking build on non x86_64 archs
[packages/performous.git] / performous.spec
index 420f2d63a6384f6cf00d0510621c128c387f0cc5..a7424adb50105d8b0ca462e96766b9808af147ce 100644 (file)
-Summary:       Performous - a free cross-platform singing game
+Summary:       Performous - The All-in-One Music Game
+Summary(pl.UTF-8):     Performous - wiele gier muzycznych w jednej
 Name:          performous
-Version:       0.4.0
-Release:       2
+Version:       1.3.0
+Release:       1
 License:       GPL v2+
-Group:         Applications
-Source0:       http://dl.sourceforge.net/performous/Performous-%{version}-Source.tar.bz2
-# Source0-md5: d7eafad29a94e3099c849d3c7208bfac
+Group:         Applications/Sound
+#Source0Download: https://github.com/performous/performous/releases
+Source0:       https://github.com/performous/performous/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 1579905ea88e09611e90b737e9417895
+Source1:       compact_enc_det.tar.xz
+# Source1-md5: c4af58e784fe054b787254acf5c1af12
+Patch0:                ced-no-forced-cxx11.patch
+Patch1:                find-ced.patch
+Patch2:                no-Werror.patch
 URL:           http://performous.org/
 BuildRequires: ImageMagick-c++-devel
-BuildRequires: SDL-devel
-BuildRequires: alsa-lib-devel
-BuildRequires: boost-devel
-BuildRequires: cmake
+BuildRequires: SDL2-devel >= 2
+BuildRequires: aubio-devel
+BuildRequires: boost-devel >= 1.36
+BuildRequires: cmake >= 2.8
+# avformat avresample swscale
 BuildRequires: ffmpeg-devel
+BuildRequires: fontconfig-devel
+BuildRequires: gettext-tools
 BuildRequires: glew-devel
 BuildRequires: glibmm-devel
+BuildRequires: gmock-devel
 BuildRequires: help2man
-BuildRequires: jack-audio-connection-kit-devel
+BuildRequires: libepoxy-devel >= 1.2
+BuildRequires: libfmt-devel
+BuildRequires: libjpeg-devel
+BuildRequires: libpng-devel
 BuildRequires: librsvg-devel
 BuildRequires: libsigc++-devel
-BuildRequires: libxml++-devel
-BuildRequires: pango-devel
+BuildRequires: libstdc++-devel >= 6:4.6
+BuildRequires: libxml2-devel >= 2.0
+BuildRequires: libxml++2-devel >= 2.6
+BuildRequires: nlohmann-json-devel >= 3.10.5
+BuildRequires: opencv-devel
+BuildRequires: pango-devel >= 1:1.12
 BuildRequires: pkgconfig
-BuildRequires: pulseaudio-devel
+BuildRequires: portaudio-devel
+BuildRequires: portmidi-devel
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: zlib-devel
+Obsoletes:     %{name}-tools < 1.3.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-While Performous might be classified as a karaoke program, it is
-actually much more than that. Instead of just displaying the lyrics,
-notes are also displayed and the performance is scored based on how
-well you actually hit the notes. Unlike in most other games in this
-genre, you will also see the precise pitch that you are singing, so
-that you can see what you are doing wrong and easily (well, everything
-is relative) correct your pitch.
+An open-source karaoke, band and dancing game where one or more
+players perform a song and the game scores their perform ances.
+Supports songs in UltraStar, Frets on Fire and StepMania formats.
+Microphones and instruments from SingStar, Guit ar Hero and Rock Band
+as well as some dance pads are autodetected.
 
-Most of the songs available also contain the original vocals and
-actual karaoke versions are rare.
-
-For those who sing rather than well, a karaoke mode is provided. In
-this mode only lyrics are displayed and there are no notes or scoring.
+%description -l pl.UTF-8
+Karaoke, gitara i taniec w jednej grze. Obsługuje utwory w formatach
+UltraStar, Frets on Fire i StepManii. Mikrofony i kontrolery z gier
+SingStar, Guitar Hero i Rock Band oraz maty do tańca są automatycznie
+wykrywane.
 
 %prep
-%setup -qn Performous-%{version}-Source
+%setup -q -a1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
-mkdir build
+cd compact_enc_det
+install -d build
+cd build
+%cmake .. \
+       -DBUILD_SHARED_LIBS=OFF
+%{__make} ced
+cp -p lib/libced.a ../compact_enc_det
+cd ../..
+
+SRC=$(pwd)
+install -d build/game
 cd build
 %cmake .. \
+       -DCMAKE_INSTALL_MANDIR=%{_mandir}/man6 \
        -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
-       -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-%if "%{_lib}" == "lib64"
-       -DLIB_SUFFIX=64
-%endif
+       -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags}" \
+       -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \
+       -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \
+       -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" \
+       -DSELF_BUILT_CED=NEVER \
+       -DCed_INCLUDE_DIRS="$SRC/compact_enc_det" \
+       -DCed_LIBRARIES="-L$SRC/compact_enc_det/compact_enc_det $SRC/compact_enc_det/compact_enc_det/libced.a"
 
 %{__make}
 
-cd ..
-
-
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_mandir}/man1
 
 %{__make} -C build install \
        DESTDIR=$RPM_BUILD_ROOT
 
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_CN}
+
+%find_lang %{name} --all-name
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc docs/*.txt
-%attr(755,root,root) %{_bindir}/*
-%dir %{_libdir}/%{name}
-%dir %{_libdir}/%{name}/libda-1
-%attr(755,root,root) %{_libdir}/%{name}/libda-1/*.so
+%doc README.md docs/{Authors,instruments}.txt
+%attr(755,root,root) %{_bindir}/performous
 %{_datadir}/games/%{name}
-%{_mandir}/man6/*
-%{_pixmapsdir}/*
-%{_desktopdir}/*
+%{_mandir}/man6/performous.6*
+%{_desktopdir}/performous.desktop
+%{_pixmapsdir}/performous.svg
This page took 0.10793 seconds and 4 git commands to generate.