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