]> git.pld-linux.org Git - packages/performous.git/blob - performous.spec
- rebuild with ImageMagick 7.0.3
[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.0
5 Release:        5
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 Patch0:         bool_cast.patch
11 Patch1:         ffmpeg3.patch
12 URL:            http://performous.org/
13 BuildRequires:  ImageMagick-c++-devel
14 BuildRequires:  SDL2-devel
15 BuildRequires:  alsa-lib-devel
16 BuildRequires:  boost-devel
17 BuildRequires:  cmake >= 2.6
18 BuildRequires:  ffmpeg-devel
19 BuildRequires:  gettext-tools
20 BuildRequires:  glew-devel
21 BuildRequires:  glibmm-devel
22 BuildRequires:  help2man
23 BuildRequires:  jack-audio-connection-kit-devel
24 BuildRequires:  libpng-devel
25 BuildRequires:  librsvg-devel
26 BuildRequires:  libsigc++-devel
27 BuildRequires:  libxml++2-devel
28 BuildRequires:  opencv-devel
29 BuildRequires:  pango-devel
30 BuildRequires:  pkgconfig
31 BuildRequires:  portaudio-devel
32 Suggests:       %{name}-tools = %{version}-%{release}
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 An open-source karaoke, band and dancing game where one or more
37 players perform a song and the game scores their perform ances.
38 Supports songs in UltraStar, Frets on Fire and StepMania formats.
39 Microphones and instruments from SingStar, Guit ar Hero and Rock Band
40 as well as some dance pads are autodetected.
41
42 %description -l pl.UTF-8
43 Karaoke, gitara i taniec w jednej grze. Obsługuje utwory w formatach
44 UltraStar, Frets on Fire i StepManii. Mikrofony i kontrolery z gier
45 SingStar, Guitar Hero i Rock Band oraz maty do tańca są automatycznie
46 wykrywane.
47
48 %package tools
49 Summary:        Performous tools
50 Summary(pl.UTF-8):      Narzędzia do programu Performous
51 Group:          Applications
52
53 %description tools
54 Several utilities for converting data files for Performous.
55
56 %description tools -l pl.UTF-8
57 Zestaw narzędzi do konwersji danych dla programu Performous.
58
59 %prep
60 %setup -q
61 %patch0 -p1
62 %patch1 -p1
63
64 mkdir build
65
66 %build
67 cd build
68 %cmake .. \
69         -DCMAKE_BUILD_TYPE=%{!?debug:Release}%{?debug:Debug} \
70         -DCMAKE_CXX_FLAGS_RELEASE="%{rpmcxxflags} -std=gnu++11" \
71         -DCMAKE_DEBUG_FLAGS_RELEASE="%{debugcflags}" \
72         -DCMAKE_INSTALL_PREFIX=%{_prefix} \
73         -DMagick_LIBRARY="$(echo %{_libdir}/libMagickCore-*.so)" \
74         -DMagick++_LIBRARY="$(echo %{_libdir}/libMagick++-*.so)" \
75 %if "%{_lib}" == "lib64"
76         -DLIB_SUFFIX=64
77 %endif
78 %if "%{_lib}" == "libx32"
79         -DLIB_SUFFIX=x32
80 %endif
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.03727 seconds and 3 git commands to generate.