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