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