]>
Commit | Line | Data |
---|---|---|
1 | Summary: Performous - The All-in-One Music Game | |
2 | Summary(pl.UTF-8): Performous - wiele gier muzycznych w jednej | |
3 | Name: performous | |
4 | Version: 1.1 | |
5 | Release: 1 | |
6 | License: GPL v2+ | |
7 | Group: Applications/Sound | |
8 | #Source0Download: https://github.com/performous/performous/releases | |
9 | Source0: https://github.com/performous/performous/archive/%{version}/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: cf31d0973cd88b3cd626d312d6d3f5b2 | |
11 | Patch0: %{name}-boost.patch | |
12 | URL: http://performous.org/ | |
13 | BuildRequires: ImageMagick-c++-devel | |
14 | BuildRequires: SDL2-devel >= 2 | |
15 | BuildRequires: boost-devel >= 1.36 | |
16 | BuildRequires: cmake >= 2.8 | |
17 | # avformat avresample swscale | |
18 | BuildRequires: ffmpeg-devel | |
19 | BuildRequires: fontconfig-devel | |
20 | BuildRequires: gettext-tools | |
21 | BuildRequires: glew-devel | |
22 | BuildRequires: glibmm-devel | |
23 | BuildRequires: help2man | |
24 | BuildRequires: libepoxy-devel >= 1.2 | |
25 | BuildRequires: libjpeg-devel | |
26 | BuildRequires: libpng-devel | |
27 | BuildRequires: librsvg-devel | |
28 | BuildRequires: libsigc++-devel | |
29 | BuildRequires: libstdc++-devel >= 6:4.6 | |
30 | BuildRequires: libxml2-devel >= 2.0 | |
31 | BuildRequires: libxml++2-devel >= 2.6 | |
32 | BuildRequires: opencv-devel | |
33 | BuildRequires: pango-devel >= 1:1.12 | |
34 | BuildRequires: pkgconfig | |
35 | BuildRequires: portaudio-devel | |
36 | BuildRequires: portmidi-devel | |
37 | BuildRequires: rpmbuild(macros) >= 1.605 | |
38 | BuildRequires: zlib-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 | Karaoke, gitara i taniec w jednej grze. Obsługuje utwory w formatach | |
51 | UltraStar, Frets on Fire i StepManii. Mikrofony i kontrolery z gier | |
52 | SingStar, Guitar Hero i Rock Band oraz maty do tańca są automatycznie | |
53 | wykrywane. | |
54 | ||
55 | %package tools | |
56 | Summary: Performous tools | |
57 | Summary(pl.UTF-8): Narzędzia do programu Performous | |
58 | Group: Applications/Sound | |
59 | ||
60 | %description tools | |
61 | Several utilities for converting data files for Performous. | |
62 | ||
63 | %description tools -l pl.UTF-8 | |
64 | Zestaw narzędzi do konwersji danych dla programu Performous. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | %patch0 -p1 | |
69 | ||
70 | %build | |
71 | install -d build | |
72 | cd build | |
73 | %cmake .. \ | |
74 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
75 | -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \ | |
76 | -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ | |
77 | -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \ | |
78 | -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" | |
79 | ||
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
85 | ||
86 | %{__make} -C build install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | cp -p docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
90 | ||
91 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_CN} | |
92 | ||
93 | %find_lang %{name} --all-name | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %files -f %{name}.lang | |
99 | %defattr(644,root,root,755) | |
100 | %doc README.txt docs/{Authors,instruments}.txt | |
101 | %attr(755,root,root) %{_bindir}/performous | |
102 | %{_datadir}/games/%{name} | |
103 | %{_mandir}/man6/performous.6* | |
104 | %{_desktopdir}/performous.desktop | |
105 | %{_pixmapsdir}/performous.svg | |
106 | ||
107 | %files tools | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_bindir}/gh_*_decrypt | |
110 | %attr(755,root,root) %{_bindir}/itg_pck | |
111 | %attr(755,root,root) %{_bindir}/ss_* | |
112 | %{_mandir}/man1/gh_*_decrypt.1* | |
113 | %{_mandir}/man1/ss_*.1* |