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