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