]> git.pld-linux.org Git - packages/performous.git/blame_incremental - performous.spec
- rebuild with boost 1.61
[packages/performous.git] / performous.spec
... / ...
CommitLineData
1Summary: Performous - The All-in-One Music Game
2Summary(pl.UTF-8): Performous - wiele gier muzycznych w jednej
3Name: performous
4Version: 1.0
5Release: 4
6License: GPL v2+
7Group: Applications
8Source0: https://github.com/performous/performous/archive/1.0/%{name}-%{version}.tar.gz
9# Source0-md5: cbeec2f0c0114cc499746c1e33f56055
10Patch0: bool_cast.patch
11Patch1: ffmpeg3.patch
12URL: http://performous.org/
13BuildRequires: ImageMagick-c++-devel
14BuildRequires: SDL2-devel
15BuildRequires: alsa-lib-devel
16BuildRequires: boost-devel
17BuildRequires: cmake >= 2.6
18BuildRequires: ffmpeg-devel
19BuildRequires: gettext-tools
20BuildRequires: glew-devel
21BuildRequires: glibmm-devel
22BuildRequires: help2man
23BuildRequires: jack-audio-connection-kit-devel
24BuildRequires: libpng-devel
25BuildRequires: librsvg-devel
26BuildRequires: libsigc++-devel
27BuildRequires: libxml++2-devel
28BuildRequires: opencv-devel
29BuildRequires: pango-devel
30BuildRequires: pkgconfig
31BuildRequires: portaudio-devel
32Suggests: %{name}-tools = %{version}-%{release}
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
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.
41
42%description -l pl.UTF-8
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.
47
48%package tools
49Summary: Performous tools
50Summary(pl.UTF-8): Narzędzia do programu Performous
51Group: Applications
52
53%description tools
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.
58
59%prep
60%setup -q
61%patch0 -p1
62%patch1 -p1
63
64mkdir build
65
66%build
67cd 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
85rm -rf $RPM_BUILD_ROOT
86install -d $RPM_BUILD_ROOT%{_mandir}/man1
87
88%{__make} -C build install \
89 DESTDIR=$RPM_BUILD_ROOT
90
91cp -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
98rm -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.062807 seconds and 4 git commands to generate.