]>
Commit | Line | Data |
---|---|---|
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 | |
7 | Name: performous | |
8 | Version: 0.6.1 | |
9 | Release: 20 | |
10 | License: GPL v2+ | |
11 | Group: Applications | |
12 | Source0: http://downloads.sourceforge.net/performous/Performous-%{version}-Source.tar.bz2 | |
13 | # Source0-md5: 451a759de77984b5a699e91107fe52e2 | |
14 | Patch0: %{name}-ffmpeg.patch | |
15 | Patch1: %{name}-libpng15.patch | |
16 | Patch2: cmake.patch | |
17 | Patch3: boost-1.50.patch | |
18 | Patch4: glib2.32.patch | |
19 | URL: http://performous.org/ | |
20 | BuildRequires: ImageMagick-c++-devel | |
21 | BuildRequires: SDL-devel | |
22 | BuildRequires: alsa-lib-devel | |
23 | BuildRequires: boost-devel | |
24 | BuildRequires: cmake >= 2.6 | |
25 | BuildRequires: ffmpeg-devel | |
26 | BuildRequires: gettext-devel | |
27 | BuildRequires: glew-devel | |
28 | BuildRequires: glibmm-devel | |
29 | BuildRequires: help2man | |
30 | BuildRequires: jack-audio-connection-kit-devel | |
31 | BuildRequires: libpng-devel | |
32 | BuildRequires: librsvg-devel | |
33 | BuildRequires: libsigc++-devel | |
34 | BuildRequires: libxml++-devel | |
35 | BuildRequires: opencv-devel | |
36 | BuildRequires: pango-devel | |
37 | BuildRequires: pkgconfig | |
38 | BuildRequires: portaudio-devel | |
39 | Suggests: %{name}-tools = %{version}-%{release} | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %description | |
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. | |
48 | ||
49 | %description -l pl.UTF-8 | |
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 | |
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 | ||
63 | %package tools | |
64 | Summary: Performous tools | |
65 | Summary(pl.UTF-8): Narzędzia do programu Performous | |
66 | Group: Applications | |
67 | ||
68 | %description tools | |
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. | |
73 | ||
74 | %prep | |
75 | %setup -qn Performous-%{version}-Source | |
76 | %patch0 -p1 | |
77 | %patch1 -p1 | |
78 | %patch2 -p1 | |
79 | %patch3 -p1 | |
80 | %patch4 -p1 | |
81 | mkdir build | |
82 | ||
83 | %build | |
84 | cd build | |
85 | %cmake .. \ | |
86 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
87 | -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags}" \ | |
88 | -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ | |
89 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
90 | %if "%{_lib}" == "lib64" | |
91 | -DLIB_SUFFIX=64 | |
92 | %endif | |
93 | ||
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
99 | ||
100 | %{__make} -C build install \ | |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
103 | install docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
104 | ||
105 | %find_lang %{name} --all-name | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %files -f %{name}.lang | |
111 | %defattr(644,root,root,755) | |
112 | %doc docs/{Authors,TODO,instruments}.txt | |
113 | %attr(755,root,root) %{_bindir}/performous | |
114 | %{_datadir}/games/%{name} | |
115 | %{_mandir}/man6/performous.6* | |
116 | %{_desktopdir}/performous.desktop | |
117 | %{_pixmapsdir}/performous.xpm | |
118 | ||
119 | %files tools | |
120 | %defattr(644,root,root,755) | |
121 | %attr(755,root,root) %{_bindir}/gh_*_decrypt | |
122 | %attr(755,root,root) %{_bindir}/itg_pck | |
123 | %attr(755,root,root) %{_bindir}/ss_* | |
124 | %{_mandir}/man1/gh_*_decrypt.1* | |
125 | %{_mandir}/man1/ss_*.1* |