]>
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.0 | |
5 | Release: 0.1 | |
6 | License: GPL v2+ | |
7 | Group: Applications | |
8 | Source0: https://github.com/performous/performous/archive/1.0/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: cbeec2f0c0114cc499746c1e33f56055 | |
10 | Patch1: bool_cast.patch | |
11 | URL: http://performous.org/ | |
12 | BuildRequires: ImageMagick-c++-devel | |
13 | BuildRequires: SDL-devel | |
14 | BuildRequires: alsa-lib-devel | |
15 | BuildRequires: boost-devel | |
16 | BuildRequires: cmake >= 2.6 | |
17 | BuildRequires: ffmpeg-devel | |
18 | BuildRequires: gettext-tools | |
19 | BuildRequires: glew-devel | |
20 | BuildRequires: glibmm-devel | |
21 | BuildRequires: help2man | |
22 | BuildRequires: jack-audio-connection-kit-devel | |
23 | BuildRequires: libpng-devel | |
24 | BuildRequires: librsvg-devel | |
25 | BuildRequires: libsigc++-devel | |
26 | BuildRequires: libxml++-devel | |
27 | BuildRequires: opencv-devel | |
28 | BuildRequires: pango-devel | |
29 | BuildRequires: pkgconfig | |
30 | BuildRequires: portaudio-devel | |
31 | Suggests: %{name}-tools = %{version}-%{release} | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
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. | |
40 | ||
41 | %description -l pl.UTF-8 | |
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. | |
46 | ||
47 | %package tools | |
48 | Summary: Performous tools | |
49 | Summary(pl.UTF-8): Narzędzia do programu Performous | |
50 | Group: Applications | |
51 | ||
52 | %description tools | |
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. | |
57 | ||
58 | %prep | |
59 | %setup -q | |
60 | %patch1 -p1 | |
61 | ||
62 | mkdir build | |
63 | ||
64 | %build | |
65 | cd build | |
66 | %cmake .. \ | |
67 | -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \ | |
68 | -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \ | |
69 | -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \ | |
70 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
71 | -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \ | |
72 | -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" \ | |
73 | %if "%{_lib}" == "lib64" | |
74 | -DLIB_SUFFIX=64 | |
75 | %endif | |
76 | %if "%{_lib}" == "libx32" | |
77 | -DLIB_SUFFIX=x32 | |
78 | %endif | |
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 | install 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* |