]> git.pld-linux.org Git - packages/performous.git/blob - performous.spec
Version: 1.0
[packages/performous.git] / performous.spec
1 #
2 # TODO:
3 #       - update Polish description, current is outdated (it is not only a
4 #       karaoke game any more)
5 Summary:        Performous - The All-in-One Music Game
6 Summary(pl.UTF-8):      Performous - wiele gier muzycznych w jednej
7 Name:           performous
8 Version:        1.0
9 Release:        0.1
10 License:        GPL v2+
11 Group:          Applications
12 Source0:        https://github.com/performous/performous/archive/1.0/%{name}-%{version}.tar.gz
13 # Source0-md5:  cbeec2f0c0114cc499746c1e33f56055
14 Patch1:         bool_cast.patch
15 URL:            http://performous.org/
16 BuildRequires:  ImageMagick-c++-devel
17 BuildRequires:  SDL-devel
18 BuildRequires:  alsa-lib-devel
19 BuildRequires:  boost-devel
20 BuildRequires:  cmake >= 2.6
21 BuildRequires:  ffmpeg-devel
22 BuildRequires:  gettext-tools
23 BuildRequires:  glew-devel
24 BuildRequires:  glibmm-devel
25 BuildRequires:  help2man
26 BuildRequires:  jack-audio-connection-kit-devel
27 BuildRequires:  libpng-devel
28 BuildRequires:  librsvg-devel
29 BuildRequires:  libsigc++-devel
30 BuildRequires:  libxml++-devel
31 BuildRequires:  opencv-devel
32 BuildRequires:  pango-devel
33 BuildRequires:  pkgconfig
34 BuildRequires:  portaudio-devel
35 Suggests:       %{name}-tools = %{version}-%{release}
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 %description
39 An open-source karaoke, band and dancing game where one or more
40 players perform a song and the game scores their perform ances.
41 Supports songs in UltraStar, Frets on Fire and StepMania formats.
42 Microphones and instruments from SingStar, Guit ar Hero and Rock Band
43 as well as some dance pads are autodetected.
44
45 %description -l pl.UTF-8
46 O ile Performous można zaklasyfikować jako program do karaoke, to jest
47 czymś o wiele więcej. Zamiast tylko wyświetlać tekst, wyświetlane są
48 także nuty, a wykonanie jest oceniane w oparciu o to, jak dobrze
49 pasuje do nut. W przeciwieństwie do innych gier tego gatunku podawana
50 jest także dokładna wysokość śpiewanych tonów, więc można zobaczyć, co
51 wykonuje się źle i (względnie) łatwo się poprawić.
52
53 Większość dostępnych piosenek zawiera także oryginalne wokale, zaś
54 wersje karaoke są dość rzadkie.
55
56 Dla śpiewających niezbyt dobrze dostępny jest tryb karaoke. W tyb
57 trybie wyświetlane są tylko słowa i nie ma nut ani oceniania.
58
59 %package tools
60 Summary:        Performous tools
61 Summary(pl.UTF-8):      Narzędzia do programu Performous
62 Group:          Applications
63
64 %description tools
65 Several utilities for converting data files for Performous.
66
67 %description tools -l pl.UTF-8
68 Zestaw narzędzi do konwersji danych dla programu Performous.
69
70 %prep
71 %setup -q
72 %patch1 -p1
73
74 mkdir build
75
76 %build
77 cd build
78 %cmake .. \
79         -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
80         -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \
81         -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \
82         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
83         -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \
84         -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" \
85 %if "%{_lib}" == "lib64"
86         -DLIB_SUFFIX=64
87 %endif
88 %if "%{_lib}" == "libx32"
89         -DLIB_SUFFIX=x32
90 %endif
91
92 %{__make}
93
94 %install
95 rm -rf $RPM_BUILD_ROOT
96 install -d $RPM_BUILD_ROOT%{_mandir}/man1
97
98 %{__make} -C build install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 install docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
102
103 %{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_CN}
104
105 %find_lang %{name} --all-name
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %files -f %{name}.lang
111 %defattr(644,root,root,755)
112 %doc README.txt docs/{Authors,instruments}.txt
113 %attr(755,root,root) %{_bindir}/performous
114 %{_datadir}/games/%{name}
115 %{_mandir}/man6/performous.6*
116 %{_desktopdir}/performous.desktop
117 %{_pixmapsdir}/performous.svg
118
119 %files tools
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/gh_*_decrypt
122 %attr(755,root,root) %{_bindir}/itg_pck
123 %attr(755,root,root) %{_bindir}/ss_*
124 %{_mandir}/man1/gh_*_decrypt.1*
125 %{_mandir}/man1/ss_*.1*
This page took 0.086806 seconds and 3 git commands to generate.