]>
Commit | Line | Data |
---|---|---|
de6d16d9 JK |
1 | Summary: Performous - The All-in-One Music Game |
2 | Summary(pl.UTF-8): Performous - wiele gier muzycznych w jednej | |
17ceb23f | 3 | Name: performous |
6069cfb0 JB |
4 | Version: 1.1 |
5 | Release: 1 | |
17ceb23f | 6 | License: GPL v2+ |
6069cfb0 JB |
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 | |
17ceb23f JK |
12 | URL: http://performous.org/ |
13 | BuildRequires: ImageMagick-c++-devel | |
6069cfb0 JB |
14 | BuildRequires: SDL2-devel >= 2 |
15 | BuildRequires: boost-devel >= 1.36 | |
16 | BuildRequires: cmake >= 2.8 | |
17 | # avformat avresample swscale | |
17ceb23f | 18 | BuildRequires: ffmpeg-devel |
6069cfb0 | 19 | BuildRequires: fontconfig-devel |
6d60c357 | 20 | BuildRequires: gettext-tools |
17ceb23f JK |
21 | BuildRequires: glew-devel |
22 | BuildRequires: glibmm-devel | |
23 | BuildRequires: help2man | |
6069cfb0 JB |
24 | BuildRequires: libepoxy-devel >= 1.2 |
25 | BuildRequires: libjpeg-devel | |
6775cf17 | 26 | BuildRequires: libpng-devel |
17ceb23f JK |
27 | BuildRequires: librsvg-devel |
28 | BuildRequires: libsigc++-devel | |
6069cfb0 JB |
29 | BuildRequires: libstdc++-devel >= 6:4.6 |
30 | BuildRequires: libxml2-devel >= 2.0 | |
31 | BuildRequires: libxml++2-devel >= 2.6 | |
2330489e | 32 | BuildRequires: opencv-devel |
6069cfb0 | 33 | BuildRequires: pango-devel >= 1:1.12 |
3c4e0e7d | 34 | BuildRequires: pkgconfig |
2330489e | 35 | BuildRequires: portaudio-devel |
6069cfb0 JB |
36 | BuildRequires: portmidi-devel |
37 | BuildRequires: rpmbuild(macros) >= 1.605 | |
38 | BuildRequires: zlib-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 |
fabd7351 JK |
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. | |
c411e695 | 54 | |
66b61eb5 JK |
55 | %package tools |
56 | Summary: Performous tools | |
c411e695 | 57 | Summary(pl.UTF-8): Narzędzia do programu Performous |
6069cfb0 | 58 | Group: Applications/Sound |
66b61eb5 JK |
59 | |
60 | %description tools | |
c411e695 JB |
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. | |
66b61eb5 | 65 | |
17ceb23f | 66 | %prep |
0c276d1e | 67 | %setup -q |
ebc3ca96 | 68 | %patch0 -p1 |
17ceb23f JK |
69 | |
70 | %build | |
6069cfb0 | 71 | install -d build |
17ceb23f JK |
72 | cd build |
73 | %cmake .. \ | |
3c4e0e7d | 74 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
a4df6f22 | 75 | -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \ |
b74c6e04 | 76 | -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ |
a4df6f22 | 77 | -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \ |
6069cfb0 | 78 | -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" |
17ceb23f JK |
79 | |
80 | %{__make} | |
81 | ||
17ceb23f JK |
82 | %install |
83 | rm -rf $RPM_BUILD_ROOT | |
66b61eb5 | 84 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
17ceb23f JK |
85 | |
86 | %{__make} -C build install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
c02906e5 | 89 | cp -p docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
66b61eb5 | 90 | |
73b4d4f2 JR |
91 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_CN} |
92 | ||
0f6ae010 | 93 | %find_lang %{name} --all-name |
17ceb23f JK |
94 | |
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
0f6ae010 | 98 | %files -f %{name}.lang |
17ceb23f | 99 | %defattr(644,root,root,755) |
a4df6f22 | 100 | %doc README.txt docs/{Authors,instruments}.txt |
66b61eb5 | 101 | %attr(755,root,root) %{_bindir}/performous |
17ceb23f | 102 | %{_datadir}/games/%{name} |
c411e695 JB |
103 | %{_mandir}/man6/performous.6* |
104 | %{_desktopdir}/performous.desktop | |
a4df6f22 | 105 | %{_pixmapsdir}/performous.svg |
66b61eb5 JK |
106 | |
107 | %files tools | |
108 | %defattr(644,root,root,755) | |
c411e695 | 109 | %attr(755,root,root) %{_bindir}/gh_*_decrypt |
66b61eb5 JK |
110 | %attr(755,root,root) %{_bindir}/itg_pck |
111 | %attr(755,root,root) %{_bindir}/ss_* | |
c411e695 JB |
112 | %{_mandir}/man1/gh_*_decrypt.1* |
113 | %{_mandir}/man1/ss_*.1* |