]>
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 |
a4df6f22 | 4 | Version: 1.0 |
1217fcca | 5 | Release: 6 |
17ceb23f JK |
6 | License: GPL v2+ |
7 | Group: Applications | |
a4df6f22 JK |
8 | Source0: https://github.com/performous/performous/archive/1.0/%{name}-%{version}.tar.gz |
9 | # Source0-md5: cbeec2f0c0114cc499746c1e33f56055 | |
ebc3ca96 JR |
10 | Patch0: bool_cast.patch |
11 | Patch1: ffmpeg3.patch | |
17ceb23f JK |
12 | URL: http://performous.org/ |
13 | BuildRequires: ImageMagick-c++-devel | |
ebc3ca96 | 14 | BuildRequires: SDL2-devel |
17ceb23f | 15 | BuildRequires: alsa-lib-devel |
3c4e0e7d | 16 | BuildRequires: boost-devel |
c411e695 | 17 | BuildRequires: cmake >= 2.6 |
17ceb23f | 18 | BuildRequires: ffmpeg-devel |
6d60c357 | 19 | BuildRequires: gettext-tools |
17ceb23f JK |
20 | BuildRequires: glew-devel |
21 | BuildRequires: glibmm-devel | |
22 | BuildRequires: help2man | |
23 | BuildRequires: jack-audio-connection-kit-devel | |
6775cf17 | 24 | BuildRequires: libpng-devel |
17ceb23f JK |
25 | BuildRequires: librsvg-devel |
26 | BuildRequires: libsigc++-devel | |
ebc3ca96 | 27 | BuildRequires: libxml++2-devel |
2330489e | 28 | BuildRequires: opencv-devel |
17ceb23f | 29 | BuildRequires: pango-devel |
3c4e0e7d | 30 | BuildRequires: pkgconfig |
2330489e | 31 | BuildRequires: portaudio-devel |
c411e695 | 32 | Suggests: %{name}-tools = %{version}-%{release} |
17ceb23f JK |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
de6d16d9 JK |
36 | An open-source karaoke, band and dancing game where one or more |
37 | players perform a song and the game scores their perform ances. | |
38 | Supports songs in UltraStar, Frets on Fire and StepMania formats. | |
39 | Microphones and instruments from SingStar, Guit ar Hero and Rock Band | |
40 | as well as some dance pads are autodetected. | |
17ceb23f | 41 | |
c411e695 | 42 | %description -l pl.UTF-8 |
fabd7351 JK |
43 | Karaoke, gitara i taniec w jednej grze. Obsługuje utwory w formatach |
44 | UltraStar, Frets on Fire i StepManii. Mikrofony i kontrolery z gier | |
45 | SingStar, Guitar Hero i Rock Band oraz maty do tańca są automatycznie | |
46 | wykrywane. | |
c411e695 | 47 | |
66b61eb5 JK |
48 | %package tools |
49 | Summary: Performous tools | |
c411e695 | 50 | Summary(pl.UTF-8): Narzędzia do programu Performous |
66b61eb5 JK |
51 | Group: Applications |
52 | ||
53 | %description tools | |
c411e695 JB |
54 | Several utilities for converting data files for Performous. |
55 | ||
56 | %description tools -l pl.UTF-8 | |
57 | Zestaw narzędzi do konwersji danych dla programu Performous. | |
66b61eb5 | 58 | |
17ceb23f | 59 | %prep |
0c276d1e | 60 | %setup -q |
ebc3ca96 | 61 | %patch0 -p1 |
d1cb3345 | 62 | %patch1 -p1 |
a4df6f22 | 63 | |
d1cb3345 | 64 | mkdir build |
17ceb23f JK |
65 | |
66 | %build | |
17ceb23f JK |
67 | cd build |
68 | %cmake .. \ | |
3c4e0e7d | 69 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ |
a4df6f22 | 70 | -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \ |
b74c6e04 | 71 | -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ |
3c4e0e7d | 72 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
a4df6f22 JK |
73 | -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \ |
74 | -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" \ | |
17ceb23f | 75 | %if "%{_lib}" == "lib64" |
3c4e0e7d | 76 | -DLIB_SUFFIX=64 |
17ceb23f | 77 | %endif |
a4df6f22 JK |
78 | %if "%{_lib}" == "libx32" |
79 | -DLIB_SUFFIX=x32 | |
80 | %endif | |
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* |