]>
Commit | Line | Data |
---|---|---|
de6d16d9 JK |
1 | # |
2 | # TODO: | |
3 | # - update Polish description, current is outdated (it is not only a | |
4 | # karaoke game any more) | |
5 | Summary: Performous - The All-in-One Music Game | |
6 | Summary(pl.UTF-8): Performous - wiele gier muzycznych w jednej | |
17ceb23f | 7 | Name: performous |
66b61eb5 | 8 | Version: 0.6.1 |
5aa9c28b | 9 | Release: 20 |
17ceb23f JK |
10 | License: GPL v2+ |
11 | Group: Applications | |
2330489e | 12 | Source0: http://downloads.sourceforge.net/performous/Performous-%{version}-Source.tar.bz2 |
66b61eb5 | 13 | # Source0-md5: 451a759de77984b5a699e91107fe52e2 |
cb114292 | 14 | Patch0: %{name}-ffmpeg.patch |
d1cb3345 | 15 | Patch1: %{name}-libpng15.patch |
b74c6e04 JR |
16 | Patch2: cmake.patch |
17 | Patch3: boost-1.50.patch | |
18 | Patch4: glib2.32.patch | |
17ceb23f JK |
19 | URL: http://performous.org/ |
20 | BuildRequires: ImageMagick-c++-devel | |
21 | BuildRequires: SDL-devel | |
22 | BuildRequires: alsa-lib-devel | |
3c4e0e7d | 23 | BuildRequires: boost-devel |
c411e695 | 24 | BuildRequires: cmake >= 2.6 |
17ceb23f | 25 | BuildRequires: ffmpeg-devel |
d9a0d954 | 26 | BuildRequires: gettext-devel |
17ceb23f JK |
27 | BuildRequires: glew-devel |
28 | BuildRequires: glibmm-devel | |
29 | BuildRequires: help2man | |
30 | BuildRequires: jack-audio-connection-kit-devel | |
6775cf17 | 31 | BuildRequires: libpng-devel |
17ceb23f JK |
32 | BuildRequires: librsvg-devel |
33 | BuildRequires: libsigc++-devel | |
34 | BuildRequires: libxml++-devel | |
2330489e | 35 | BuildRequires: opencv-devel |
17ceb23f | 36 | BuildRequires: pango-devel |
3c4e0e7d | 37 | BuildRequires: pkgconfig |
2330489e | 38 | BuildRequires: portaudio-devel |
c411e695 | 39 | Suggests: %{name}-tools = %{version}-%{release} |
17ceb23f JK |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
de6d16d9 JK |
43 | An open-source karaoke, band and dancing game where one or more |
44 | players perform a song and the game scores their perform ances. | |
45 | Supports songs in UltraStar, Frets on Fire and StepMania formats. | |
46 | Microphones and instruments from SingStar, Guit ar Hero and Rock Band | |
47 | as well as some dance pads are autodetected. | |
17ceb23f | 48 | |
c411e695 | 49 | %description -l pl.UTF-8 |
de6d16d9 JK |
50 | O ile Performous można zaklasyfikować jako program do karaoke, to jest |
51 | czymś o wiele więcej. Zamiast tylko wyświetlać tekst, wyświetlane są | |
52 | także nuty, a wykonanie jest oceniane w oparciu o to, jak dobrze | |
c411e695 JB |
53 | pasuje do nut. W przeciwieństwie do innych gier tego gatunku podawana |
54 | jest także dokładna wysokość śpiewanych tonów, więc można zobaczyć, co | |
55 | wykonuje się źle i (względnie) łatwo się poprawić. | |
56 | ||
57 | Większość dostępnych piosenek zawiera także oryginalne wokale, zaś | |
58 | wersje karaoke są dość rzadkie. | |
59 | ||
60 | Dla śpiewających niezbyt dobrze dostępny jest tryb karaoke. W tyb | |
61 | trybie wyświetlane są tylko słowa i nie ma nut ani oceniania. | |
62 | ||
66b61eb5 JK |
63 | %package tools |
64 | Summary: Performous tools | |
c411e695 | 65 | Summary(pl.UTF-8): Narzędzia do programu Performous |
66b61eb5 JK |
66 | Group: Applications |
67 | ||
68 | %description tools | |
c411e695 JB |
69 | Several utilities for converting data files for Performous. |
70 | ||
71 | %description tools -l pl.UTF-8 | |
72 | Zestaw narzędzi do konwersji danych dla programu Performous. | |
66b61eb5 | 73 | |
17ceb23f JK |
74 | %prep |
75 | %setup -qn Performous-%{version}-Source | |
cb114292 | 76 | %patch0 -p1 |
d1cb3345 | 77 | %patch1 -p1 |
b74c6e04 JR |
78 | %patch2 -p1 |
79 | %patch3 -p1 | |
80 | %patch4 -p1 | |
d1cb3345 | 81 | mkdir build |
17ceb23f JK |
82 | |
83 | %build | |
17ceb23f JK |
84 | cd build |
85 | %cmake .. \ | |
3c4e0e7d | 86 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
b74c6e04 JR |
87 | -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags}" \ |
88 | -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ | |
3c4e0e7d | 89 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
17ceb23f | 90 | %if "%{_lib}" == "lib64" |
3c4e0e7d | 91 | -DLIB_SUFFIX=64 |
17ceb23f JK |
92 | %endif |
93 | ||
94 | %{__make} | |
95 | ||
17ceb23f JK |
96 | %install |
97 | rm -rf $RPM_BUILD_ROOT | |
66b61eb5 | 98 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
17ceb23f JK |
99 | |
100 | %{__make} -C build install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
c411e695 | 103 | install docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
66b61eb5 | 104 | |
0f6ae010 | 105 | %find_lang %{name} --all-name |
17ceb23f JK |
106 | |
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
0f6ae010 | 110 | %files -f %{name}.lang |
17ceb23f | 111 | %defattr(644,root,root,755) |
c411e695 | 112 | %doc docs/{Authors,TODO,instruments}.txt |
66b61eb5 | 113 | %attr(755,root,root) %{_bindir}/performous |
17ceb23f | 114 | %{_datadir}/games/%{name} |
c411e695 JB |
115 | %{_mandir}/man6/performous.6* |
116 | %{_desktopdir}/performous.desktop | |
117 | %{_pixmapsdir}/performous.xpm | |
66b61eb5 JK |
118 | |
119 | %files tools | |
120 | %defattr(644,root,root,755) | |
c411e695 | 121 | %attr(755,root,root) %{_bindir}/gh_*_decrypt |
66b61eb5 JK |
122 | %attr(755,root,root) %{_bindir}/itg_pck |
123 | %attr(755,root,root) %{_bindir}/ss_* | |
c411e695 JB |
124 | %{_mandir}/man1/gh_*_decrypt.1* |
125 | %{_mandir}/man1/ss_*.1* |