]> git.pld-linux.org Git - packages/performous.git/blobdiff - performous.spec
Release: 2
[packages/performous.git] / performous.spec
index 871ec54835c1b2754133f8e161451e6dce61b7ae..15b2432c70ee7240aa51dee880d17afbc3cb82e1 100644 (file)
@@ -1,19 +1,21 @@
-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.6.1
-Release:       3
+Version:       1.0
+Release:       2
 License:       GPL v2+
 Group:         Applications
-Source0:       http://downloads.sourceforge.net/performous/Performous-%{version}-Source.tar.bz2
-# Source0-md5: 451a759de77984b5a699e91107fe52e2
+Source0:       https://github.com/performous/performous/archive/1.0/%{name}-%{version}.tar.gz
+# Source0-md5: cbeec2f0c0114cc499746c1e33f56055
+Patch1:                bool_cast.patch
 URL:           http://performous.org/
 BuildRequires: ImageMagick-c++-devel
 BuildRequires: SDL-devel
 BuildRequires: alsa-lib-devel
 BuildRequires: boost-devel
-BuildRequires: cmake
+BuildRequires: cmake >= 2.6
 BuildRequires: ffmpeg-devel
-BuildRequires: gettext-devel
+BuildRequires: gettext-tools
 BuildRequires: glew-devel
 BuildRequires: glibmm-devel
 BuildRequires: help2man
@@ -26,44 +28,54 @@ BuildRequires:      opencv-devel
 BuildRequires: pango-devel
 BuildRequires: pkgconfig
 BuildRequires: portaudio-devel
-Suggests:      %{name}-tools
+Suggests:      %{name}-tools = %{version}-%{release}
 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.
 
 %package tools
 Summary:       Performous tools
+Summary(pl.UTF-8):     Narzędzia do programu Performous
 Group:         Applications
 
 %description tools
-Provides several utilities for converting data files for Performous.
+Several utilities for converting data files for Performous.
+
+%description tools -l pl.UTF-8
+Zestaw narzędzi do konwersji danych dla programu Performous.
 
 %prep
-%setup -qn Performous-%{version}-Source
-%{__sed} -i 's:png12:png14:g' cmake/Modules/FindPng.cmake
+%setup -q
+%patch1 -p1
 
-%build
 mkdir build
+
+%build
 cd build
 %cmake .. \
        -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
+       -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}
 
@@ -74,7 +86,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
 
@@ -83,16 +97,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc docs/*.txt
+%doc README.txt 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
 
 %files tools
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/gh_*
+%attr(755,root,root) %{_bindir}/gh_*_decrypt
 %attr(755,root,root) %{_bindir}/itg_pck
 %attr(755,root,root) %{_bindir}/ss_*
-%{_mandir}/man1/*
+%{_mandir}/man1/gh_*_decrypt.1*
+%{_mandir}/man1/ss_*.1*
This page took 0.080913 seconds and 4 git commands to generate.