X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=performous.spec;h=97c23dee027dcbceaca79b7624987e8617853914;hb=44d06e75d036b28dc19c58bbd8c4aec9aadcf4c4;hp=0131e14c5cc44b52e34e3c96d95edede2d201e08;hpb=09e0b099dfeff82cef1aae86a6f28a8d2c1ebead;p=packages%2Fperformous.git diff --git a/performous.spec b/performous.spec index 0131e14..97c23de 100644 --- a/performous.spec +++ b/performous.spec @@ -1,25 +1,22 @@ -# -# TODO: -# - update Polish description, current is outdated (it is not only a -# karaoke game any more) Summary: Performous - The All-in-One Music Game Summary(pl.UTF-8): Performous - wiele gier muzycznych w jednej Name: performous -Version: 0.6.1 -Release: 16 +Version: 1.0 +Release: 5 License: GPL v2+ Group: Applications -Source0: http://downloads.sourceforge.net/performous/Performous-%{version}-Source.tar.bz2 -# Source0-md5: 451a759de77984b5a699e91107fe52e2 -Patch0: %{name}-ffmpeg.patch +Source0: https://github.com/performous/performous/archive/1.0/%{name}-%{version}.tar.gz +# Source0-md5: cbeec2f0c0114cc499746c1e33f56055 +Patch0: bool_cast.patch +Patch1: ffmpeg3.patch URL: http://performous.org/ BuildRequires: ImageMagick-c++-devel -BuildRequires: SDL-devel +BuildRequires: SDL2-devel BuildRequires: alsa-lib-devel BuildRequires: boost-devel BuildRequires: cmake >= 2.6 BuildRequires: ffmpeg-devel -BuildRequires: gettext-devel +BuildRequires: gettext-tools BuildRequires: glew-devel BuildRequires: glibmm-devel BuildRequires: help2man @@ -27,7 +24,7 @@ BuildRequires: jack-audio-connection-kit-devel BuildRequires: libpng-devel BuildRequires: librsvg-devel BuildRequires: libsigc++-devel -BuildRequires: libxml++-devel +BuildRequires: libxml++2-devel BuildRequires: opencv-devel BuildRequires: pango-devel BuildRequires: pkgconfig @@ -43,18 +40,10 @@ Microphones and instruments from SingStar, Guit ar Hero and Rock Band as well as some dance pads are autodetected. %description -l pl.UTF-8 -O ile Performous można zaklasyfikować jako program do karaoke, to jest -czymś o wiele więcej. Zamiast tylko wyświetlać tekst, wyświetlane są -także nuty, a wykonanie jest oceniane w oparciu o to, jak dobrze -pasuje do nut. W przeciwieństwie do innych gier tego gatunku podawana -jest także dokładna wysokość śpiewanych tonów, więc można zobaczyć, co -wykonuje się źle i (względnie) łatwo się poprawić. - -Większość dostępnych piosenek zawiera także oryginalne wokale, zaś -wersje karaoke są dość rzadkie. - -Dla śpiewających niezbyt dobrze dostępny jest tryb karaoke. W tyb -trybie wyświetlane są tylko słowa i nie ma nut ani oceniania. +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. %package tools Summary: Performous tools @@ -68,20 +57,27 @@ Several utilities for converting data files for Performous. Zestaw narzędzi do konwersji danych dla programu Performous. %prep -%setup -qn Performous-%{version}-Source +%setup -q %patch0 -p1 +%patch1 -p1 -%build mkdir build + +%build cd build %cmake .. \ -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ - -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -DBOOST_FILESYSTEM_VERSION=2" \ - -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags} -DBOOST_FILESYSTEM_VERSION=2" \ + -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \ + -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ -DCMAKE_INSTALL_PREFIX=%{_prefix} \ + -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \ + -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" \ %if "%{_lib}" == "lib64" -DLIB_SUFFIX=64 %endif +%if "%{_lib}" == "libx32" + -DLIB_SUFFIX=x32 +%endif %{__make} @@ -92,7 +88,9 @@ install -d $RPM_BUILD_ROOT%{_mandir}/man1 %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT -install docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 +cp -p docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 + +%{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_CN} %find_lang %{name} --all-name @@ -101,12 +99,12 @@ rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) -%doc docs/{Authors,TODO,instruments}.txt +%doc README.txt docs/{Authors,instruments}.txt %attr(755,root,root) %{_bindir}/performous %{_datadir}/games/%{name} %{_mandir}/man6/performous.6* %{_desktopdir}/performous.desktop -%{_pixmapsdir}/performous.xpm +%{_pixmapsdir}/performous.svg %files tools %defattr(644,root,root,755)