]>
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 | 4 | Version: 1.1 |
857e246f | 5 | Release: 2 |
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 | |
857e246f | 12 | Patch1: %{name}-pango1.44.patch |
17ceb23f JK |
13 | URL: http://performous.org/ |
14 | BuildRequires: ImageMagick-c++-devel | |
6069cfb0 JB |
15 | BuildRequires: SDL2-devel >= 2 |
16 | BuildRequires: boost-devel >= 1.36 | |
17 | BuildRequires: cmake >= 2.8 | |
18 | # avformat avresample swscale | |
17ceb23f | 19 | BuildRequires: ffmpeg-devel |
6069cfb0 | 20 | BuildRequires: fontconfig-devel |
6d60c357 | 21 | BuildRequires: gettext-tools |
17ceb23f JK |
22 | BuildRequires: glew-devel |
23 | BuildRequires: glibmm-devel | |
24 | BuildRequires: help2man | |
6069cfb0 JB |
25 | BuildRequires: libepoxy-devel >= 1.2 |
26 | BuildRequires: libjpeg-devel | |
6775cf17 | 27 | BuildRequires: libpng-devel |
17ceb23f JK |
28 | BuildRequires: librsvg-devel |
29 | BuildRequires: libsigc++-devel | |
6069cfb0 JB |
30 | BuildRequires: libstdc++-devel >= 6:4.6 |
31 | BuildRequires: libxml2-devel >= 2.0 | |
32 | BuildRequires: libxml++2-devel >= 2.6 | |
2330489e | 33 | BuildRequires: opencv-devel |
6069cfb0 | 34 | BuildRequires: pango-devel >= 1:1.12 |
3c4e0e7d | 35 | BuildRequires: pkgconfig |
2330489e | 36 | BuildRequires: portaudio-devel |
6069cfb0 JB |
37 | BuildRequires: portmidi-devel |
38 | BuildRequires: rpmbuild(macros) >= 1.605 | |
39 | BuildRequires: zlib-devel | |
c411e695 | 40 | Suggests: %{name}-tools = %{version}-%{release} |
17ceb23f JK |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
43 | %description | |
de6d16d9 JK |
44 | An open-source karaoke, band and dancing game where one or more |
45 | players perform a song and the game scores their perform ances. | |
46 | Supports songs in UltraStar, Frets on Fire and StepMania formats. | |
47 | Microphones and instruments from SingStar, Guit ar Hero and Rock Band | |
48 | as well as some dance pads are autodetected. | |
17ceb23f | 49 | |
c411e695 | 50 | %description -l pl.UTF-8 |
fabd7351 JK |
51 | Karaoke, gitara i taniec w jednej grze. Obsługuje utwory w formatach |
52 | UltraStar, Frets on Fire i StepManii. Mikrofony i kontrolery z gier | |
53 | SingStar, Guitar Hero i Rock Band oraz maty do tańca są automatycznie | |
54 | wykrywane. | |
c411e695 | 55 | |
66b61eb5 JK |
56 | %package tools |
57 | Summary: Performous tools | |
c411e695 | 58 | Summary(pl.UTF-8): Narzędzia do programu Performous |
6069cfb0 | 59 | Group: Applications/Sound |
66b61eb5 JK |
60 | |
61 | %description tools | |
c411e695 JB |
62 | Several utilities for converting data files for Performous. |
63 | ||
64 | %description tools -l pl.UTF-8 | |
65 | Zestaw narzędzi do konwersji danych dla programu Performous. | |
66b61eb5 | 66 | |
17ceb23f | 67 | %prep |
0c276d1e | 68 | %setup -q |
ebc3ca96 | 69 | %patch0 -p1 |
857e246f | 70 | %patch1 -p1 |
17ceb23f JK |
71 | |
72 | %build | |
6069cfb0 | 73 | install -d build |
17ceb23f JK |
74 | cd build |
75 | %cmake .. \ | |
3c4e0e7d | 76 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
a4df6f22 | 77 | -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \ |
b74c6e04 | 78 | -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ |
a4df6f22 | 79 | -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \ |
6069cfb0 | 80 | -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" |
17ceb23f JK |
81 | |
82 | %{__make} | |
83 | ||
17ceb23f JK |
84 | %install |
85 | rm -rf $RPM_BUILD_ROOT | |
66b61eb5 | 86 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 |
17ceb23f JK |
87 | |
88 | %{__make} -C build install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
c02906e5 | 91 | cp -p docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
66b61eb5 | 92 | |
73b4d4f2 JR |
93 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_CN} |
94 | ||
0f6ae010 | 95 | %find_lang %{name} --all-name |
17ceb23f JK |
96 | |
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
0f6ae010 | 100 | %files -f %{name}.lang |
17ceb23f | 101 | %defattr(644,root,root,755) |
a4df6f22 | 102 | %doc README.txt docs/{Authors,instruments}.txt |
66b61eb5 | 103 | %attr(755,root,root) %{_bindir}/performous |
17ceb23f | 104 | %{_datadir}/games/%{name} |
c411e695 JB |
105 | %{_mandir}/man6/performous.6* |
106 | %{_desktopdir}/performous.desktop | |
a4df6f22 | 107 | %{_pixmapsdir}/performous.svg |
66b61eb5 JK |
108 | |
109 | %files tools | |
110 | %defattr(644,root,root,755) | |
c411e695 | 111 | %attr(755,root,root) %{_bindir}/gh_*_decrypt |
66b61eb5 JK |
112 | %attr(755,root,root) %{_bindir}/itg_pck |
113 | %attr(755,root,root) %{_bindir}/ss_* | |
c411e695 JB |
114 | %{_mandir}/man1/gh_*_decrypt.1* |
115 | %{_mandir}/man1/ss_*.1* |