]> git.pld-linux.org Git - packages/performous.git/blame - performous.spec
boost rebuild
[packages/performous.git] / performous.spec
CommitLineData
de6d16d9
JK
1Summary: Performous - The All-in-One Music Game
2Summary(pl.UTF-8): Performous - wiele gier muzycznych w jednej
17ceb23f 3Name: performous
6069cfb0 4Version: 1.1
8676b65f 5Release: 5
17ceb23f 6License: GPL v2+
6069cfb0
JB
7Group: Applications/Sound
8#Source0Download: https://github.com/performous/performous/releases
9Source0: https://github.com/performous/performous/archive/%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: cf31d0973cd88b3cd626d312d6d3f5b2
11Patch0: %{name}-boost.patch
857e246f 12Patch1: %{name}-pango1.44.patch
576302ed 13Patch2: opencv-const.patch
17ceb23f
JK
14URL: http://performous.org/
15BuildRequires: ImageMagick-c++-devel
6069cfb0
JB
16BuildRequires: SDL2-devel >= 2
17BuildRequires: boost-devel >= 1.36
18BuildRequires: cmake >= 2.8
19# avformat avresample swscale
17ceb23f 20BuildRequires: ffmpeg-devel
6069cfb0 21BuildRequires: fontconfig-devel
6d60c357 22BuildRequires: gettext-tools
17ceb23f
JK
23BuildRequires: glew-devel
24BuildRequires: glibmm-devel
25BuildRequires: help2man
6069cfb0
JB
26BuildRequires: libepoxy-devel >= 1.2
27BuildRequires: libjpeg-devel
6775cf17 28BuildRequires: libpng-devel
17ceb23f
JK
29BuildRequires: librsvg-devel
30BuildRequires: libsigc++-devel
6069cfb0
JB
31BuildRequires: libstdc++-devel >= 6:4.6
32BuildRequires: libxml2-devel >= 2.0
33BuildRequires: libxml++2-devel >= 2.6
2330489e 34BuildRequires: opencv-devel
6069cfb0 35BuildRequires: pango-devel >= 1:1.12
3c4e0e7d 36BuildRequires: pkgconfig
2330489e 37BuildRequires: portaudio-devel
6069cfb0
JB
38BuildRequires: portmidi-devel
39BuildRequires: rpmbuild(macros) >= 1.605
40BuildRequires: zlib-devel
c411e695 41Suggests: %{name}-tools = %{version}-%{release}
17ceb23f
JK
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
de6d16d9
JK
45An open-source karaoke, band and dancing game where one or more
46players perform a song and the game scores their perform ances.
47Supports songs in UltraStar, Frets on Fire and StepMania formats.
48Microphones and instruments from SingStar, Guit ar Hero and Rock Band
49as well as some dance pads are autodetected.
17ceb23f 50
c411e695 51%description -l pl.UTF-8
fabd7351
JK
52Karaoke, gitara i taniec w jednej grze. Obsługuje utwory w formatach
53UltraStar, Frets on Fire i StepManii. Mikrofony i kontrolery z gier
54SingStar, Guitar Hero i Rock Band oraz maty do tańca są automatycznie
55wykrywane.
c411e695 56
66b61eb5
JK
57%package tools
58Summary: Performous tools
c411e695 59Summary(pl.UTF-8): Narzędzia do programu Performous
6069cfb0 60Group: Applications/Sound
66b61eb5
JK
61
62%description tools
c411e695
JB
63Several utilities for converting data files for Performous.
64
65%description tools -l pl.UTF-8
66Zestaw narzędzi do konwersji danych dla programu Performous.
66b61eb5 67
17ceb23f 68%prep
0c276d1e 69%setup -q
ebc3ca96 70%patch0 -p1
857e246f 71%patch1 -p1
576302ed 72%patch2 -p1
17ceb23f
JK
73
74%build
6069cfb0 75install -d build
17ceb23f
JK
76cd build
77%cmake .. \
3c4e0e7d 78 -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
a4df6f22 79 -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \
b74c6e04 80 -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \
a4df6f22 81 -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \
6069cfb0 82 -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)"
17ceb23f
JK
83
84%{__make}
85
17ceb23f
JK
86%install
87rm -rf $RPM_BUILD_ROOT
66b61eb5 88install -d $RPM_BUILD_ROOT%{_mandir}/man1
17ceb23f
JK
89
90%{__make} -C build install \
91 DESTDIR=$RPM_BUILD_ROOT
92
c02906e5 93cp -p docs/man/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
66b61eb5 94
73b4d4f2
JR
95%{__mv} $RPM_BUILD_ROOT%{_localedir}/{zh,zh_CN}
96
0f6ae010 97%find_lang %{name} --all-name
17ceb23f
JK
98
99%clean
100rm -rf $RPM_BUILD_ROOT
101
0f6ae010 102%files -f %{name}.lang
17ceb23f 103%defattr(644,root,root,755)
a4df6f22 104%doc README.txt docs/{Authors,instruments}.txt
66b61eb5 105%attr(755,root,root) %{_bindir}/performous
17ceb23f 106%{_datadir}/games/%{name}
c411e695
JB
107%{_mandir}/man6/performous.6*
108%{_desktopdir}/performous.desktop
a4df6f22 109%{_pixmapsdir}/performous.svg
66b61eb5
JK
110
111%files tools
112%defattr(644,root,root,755)
c411e695 113%attr(755,root,root) %{_bindir}/gh_*_decrypt
66b61eb5
JK
114%attr(755,root,root) %{_bindir}/itg_pck
115%attr(755,root,root) %{_bindir}/ss_*
c411e695
JB
116%{_mandir}/man1/gh_*_decrypt.1*
117%{_mandir}/man1/ss_*.1*
This page took 0.120709 seconds and 4 git commands to generate.