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