]>
Commit | Line | Data |
---|---|---|
bf7a50d9 JB |
1 | # TODO: VSXU_TM? (vsx_tmi.h, libtm64 / libtm64c) |
2 | # | |
3 | # Conditional build: | |
4 | %bcond_without static_libs # don't build static libraries | |
5 | # | |
6 | Summary: VSXu Music Visualizer | |
7 | Summary(pl.UTF-8): VSXu - wizualizacja muzyki | |
8 | Name: vsxu | |
55560e99 | 9 | Version: 0.6.3 |
b06f1cbd | 10 | Release: 2 |
43efdf4b | 11 | License: GPL v3 |
bf7a50d9 | 12 | Group: Libraries |
43efdf4b JB |
13 | #Source0Download: https://github.com/vovoid/vsxu/releases |
14 | Source0: https://github.com/vovoid/vsxu/archive/v%{version}/%{name}-%{version}.tar.gz | |
55560e99 | 15 | # Source0-md5: 96c8eb7049f8365b58c5049feb52ae29 |
bf7a50d9 JB |
16 | Patch0: %{name}-glfw3.patch |
17 | Patch1: %{name}-icons.patch | |
18 | Patch2: %{name}-desktop.patch | |
c8ae4da8 | 19 | Patch3: %{name}-system-ftgl.patch |
55560e99 JB |
20 | Patch4: %{name}-system-lodepng.patch |
21 | Patch5: %{name}-system-lzham-lzma.patch | |
22 | Patch6: %{name}-system-cal3d.patch | |
23 | Patch7: %{name}-format64.patch | |
24 | Patch8: %{name}-pc.patch | |
b06f1cbd | 25 | Patch9: %{name}-cxx17_conflict.patch |
bf7a50d9 JB |
26 | URL: http://www.vsxu.com/ |
27 | BuildRequires: OpenGL-devel | |
c8ae4da8 | 28 | BuildRequires: OpenGL-GLU-devel |
bf7a50d9 | 29 | BuildRequires: alsa-lib-devel |
55560e99 | 30 | BuildRequires: cal3d-devel |
bf7a50d9 | 31 | BuildRequires: cmake >= 2.8 |
c8ae4da8 | 32 | BuildRequires: ftgl-devel |
bf7a50d9 JB |
33 | BuildRequires: glew-devel >= 1.6.0 |
34 | BuildRequires: glfw-devel >= 3 | |
35 | BuildRequires: jack-audio-connection-kit-devel | |
36 | BuildRequires: libpng-devel >= 2:1.2.46 | |
37 | BuildRequires: libjpeg-devel >= 6b | |
38 | BuildRequires: libstdc++-devel | |
55560e99 JB |
39 | BuildRequires: lodepng-devel |
40 | BuildRequires: lzham-devel | |
41 | BuildRequires: lzma-sdk-devel | |
bf7a50d9 JB |
42 | BuildRequires: opencv-devel |
43 | BuildRequires: pkgconfig | |
c8ae4da8 | 44 | BuildRequires: pulseaudio-devel |
5909ca89 | 45 | BuildRequires: rpmbuild(macros) >= 1.605 |
bf7a50d9 JB |
46 | BuildRequires: xorg-lib-libXrandr >= 1.3.0 |
47 | Requires: OpenGL >= 2.1 | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | VSXu (VSX Ultra) is an OpenGL-based (hardware-accelerated), modular | |
52 | programming environment with its main purpose to visualize music and | |
53 | create real time graphic effects. | |
54 | ||
55 | %description -l pl.UTF-8 | |
56 | VSXu (VSX Ultra) to oparte na OpenGL-u (sprzętowo akcelerowane), | |
57 | modularne środowisko programistyczne, którego głównym celem jest | |
58 | wizualizacja muzyki i tworzenie efektów graficznych w czasie | |
59 | rzeczywistym. | |
60 | ||
61 | %package libs | |
62 | Summary: Shared VSXu engine libraries | |
63 | Summary(pl.UTF-8): Biblioteki współdzielone silnika VSXu | |
64 | Group: Libraries | |
65 | Requires: glew >= 1.6.0 | |
66 | Requires: libpng >= 2:1.2.46 | |
67 | ||
68 | %description libs | |
69 | VSXu (VSX Ultra) is an OpenGL-based (hardware-accelerated), modular | |
70 | programming environment with its main purpose to visualize music and | |
71 | create real time graphic effects. | |
72 | ||
73 | This package contains shared libraries. | |
74 | ||
75 | %description libs -l pl.UTF-8 | |
76 | VSXu (VSX Ultra) to oparte na OpenGL-u (sprzętowo akcelerowane), | |
77 | modularne środowisko programistyczne, którego głównym celem jest | |
78 | wizualizacja muzyki i tworzenie efektów graficznych w czasie | |
79 | rzeczywistym. | |
80 | ||
81 | Ten pakiet zawiera biblioteki współdzielone. | |
82 | ||
83 | %package devel | |
84 | Summary: Header files for VSXu libraries | |
85 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VSXu | |
86 | Group: Development/Libraries | |
87 | Requires: %{name}-libs = %{version}-%{release} | |
88 | Requires: glew-devel >= 1.6.0 | |
89 | Requires: libpng-devel >= 2:1.2.46 | |
90 | Requires: libstdc++-devel | |
91 | ||
92 | %description devel | |
93 | Header files for VSXu libraries. | |
94 | ||
95 | %description devel -l pl.UTF-8 | |
96 | Pliki nagłówkowe bibliotek VSXu. | |
97 | ||
98 | %prep | |
99 | %setup -q | |
100 | %patch0 -p1 | |
101 | %patch1 -p1 | |
102 | %patch2 -p1 | |
c8ae4da8 | 103 | %patch3 -p1 |
55560e99 JB |
104 | %patch4 -p1 |
105 | %patch5 -p1 | |
106 | %patch6 -p1 | |
107 | %patch7 -p1 | |
108 | %patch8 -p1 | |
b06f1cbd | 109 | %patch9 -p1 |
bf7a50d9 JB |
110 | |
111 | %build | |
112 | install -d build | |
113 | cd build | |
114 | %cmake .. | |
115 | ||
116 | %{__make} | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %{__make} -C build install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
123 | ||
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post libs -p /sbin/ldconfig | |
128 | %postun libs -p /sbin/ldconfig | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
132 | # COPYING contains copyright notes, not only GPL text | |
43efdf4b JB |
133 | %doc AUTHORS CHANGELOG COPYING README.md |
134 | %attr(755,root,root) %{_bindir}/obj2vxm | |
55560e99 JB |
135 | %attr(755,root,root) %{_bindir}/raw2wav |
136 | %attr(755,root,root) %{_bindir}/vsxbt | |
43efdf4b | 137 | %attr(755,root,root) %{_bindir}/vsxl |
bf7a50d9 | 138 | %attr(755,root,root) %{_bindir}/vsxu_artiste |
55560e99 | 139 | %attr(755,root,root) %{_bindir}/vsxu_launcher |
bf7a50d9 | 140 | %attr(755,root,root) %{_bindir}/vsxu_player |
43efdf4b | 141 | %attr(755,root,root) %{_bindir}/vsxu_profiler |
bf7a50d9 JB |
142 | %attr(755,root,root) %{_bindir}/vsxu_server |
143 | %attr(755,root,root) %{_bindir}/vsxz | |
144 | %dir %{_libdir}/vsxu | |
145 | %dir %{_libdir}/vsxu/plugins | |
146 | %attr(755,root,root) %{_libdir}/vsxu/plugins/*.so | |
147 | %{_datadir}/vsxu | |
148 | %{_desktopdir}/vsxu-artiste.desktop | |
149 | %{_desktopdir}/vsxu-artiste-fullscreen.desktop | |
150 | %{_desktopdir}/vsxu-player.desktop | |
151 | %{_desktopdir}/vsxu-player-fullscreen.desktop | |
152 | %{_desktopdir}/vsxu-server.desktop | |
153 | %{_desktopdir}/vsxu-server-fullscreen.desktop | |
154 | %{_pixmapsdir}/vsxu.xpm | |
155 | %{_iconsdir}/hicolor/*x*/apps/vsxu.png | |
156 | ||
157 | %files libs | |
158 | %defattr(644,root,root,755) | |
55560e99 JB |
159 | %attr(755,root,root) %{_libdir}/libvsx_application.so |
160 | %attr(755,root,root) %{_libdir}/libvsx_common.so | |
161 | %attr(755,root,root) %{_libdir}/libvsx_compression.so | |
162 | %attr(755,root,root) %{_libdir}/libvsx_engine.so | |
163 | %attr(755,root,root) %{_libdir}/libvsx_engine_graphics.so | |
43efdf4b | 164 | %attr(755,root,root) %{_libdir}/libvsx_widget.so |
bf7a50d9 JB |
165 | |
166 | %files devel | |
167 | %defattr(644,root,root,755) | |
168 | %{_includedir}/vsxu | |
55560e99 | 169 | %{_pkgconfigdir}/libvsx.pc |