]>
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 | |
43efdf4b | 9 | Version: 0.5.1 |
0f10fa86 | 10 | Release: 3 |
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 | |
15 | # Source0-md5: b4c31f1b0e9def4fa4920341cda3708f | |
bf7a50d9 JB |
16 | Patch0: %{name}-glfw3.patch |
17 | Patch1: %{name}-icons.patch | |
18 | Patch2: %{name}-desktop.patch | |
c8ae4da8 | 19 | Patch3: %{name}-system-ftgl.patch |
bf7a50d9 JB |
20 | URL: http://www.vsxu.com/ |
21 | BuildRequires: OpenGL-devel | |
c8ae4da8 | 22 | BuildRequires: OpenGL-GLU-devel |
bf7a50d9 JB |
23 | BuildRequires: alsa-lib-devel |
24 | BuildRequires: cmake >= 2.8 | |
c8ae4da8 | 25 | BuildRequires: ftgl-devel |
bf7a50d9 JB |
26 | BuildRequires: glew-devel >= 1.6.0 |
27 | BuildRequires: glfw-devel >= 3 | |
28 | BuildRequires: jack-audio-connection-kit-devel | |
29 | BuildRequires: libpng-devel >= 2:1.2.46 | |
30 | BuildRequires: libjpeg-devel >= 6b | |
31 | BuildRequires: libstdc++-devel | |
32 | BuildRequires: opencv-devel | |
33 | BuildRequires: pkgconfig | |
c8ae4da8 | 34 | BuildRequires: pulseaudio-devel |
bf7a50d9 JB |
35 | BuildRequires: xorg-lib-libXrandr >= 1.3.0 |
36 | Requires: OpenGL >= 2.1 | |
37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
38 | ||
39 | %description | |
40 | VSXu (VSX Ultra) is an OpenGL-based (hardware-accelerated), modular | |
41 | programming environment with its main purpose to visualize music and | |
42 | create real time graphic effects. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | VSXu (VSX Ultra) to oparte na OpenGL-u (sprzętowo akcelerowane), | |
46 | modularne środowisko programistyczne, którego głównym celem jest | |
47 | wizualizacja muzyki i tworzenie efektów graficznych w czasie | |
48 | rzeczywistym. | |
49 | ||
50 | %package libs | |
51 | Summary: Shared VSXu engine libraries | |
52 | Summary(pl.UTF-8): Biblioteki współdzielone silnika VSXu | |
53 | Group: Libraries | |
54 | Requires: glew >= 1.6.0 | |
55 | Requires: libpng >= 2:1.2.46 | |
56 | ||
57 | %description libs | |
58 | VSXu (VSX Ultra) is an OpenGL-based (hardware-accelerated), modular | |
59 | programming environment with its main purpose to visualize music and | |
60 | create real time graphic effects. | |
61 | ||
62 | This package contains shared libraries. | |
63 | ||
64 | %description libs -l pl.UTF-8 | |
65 | VSXu (VSX Ultra) to oparte na OpenGL-u (sprzętowo akcelerowane), | |
66 | modularne środowisko programistyczne, którego głównym celem jest | |
67 | wizualizacja muzyki i tworzenie efektów graficznych w czasie | |
68 | rzeczywistym. | |
69 | ||
70 | Ten pakiet zawiera biblioteki współdzielone. | |
71 | ||
72 | %package devel | |
73 | Summary: Header files for VSXu libraries | |
74 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek VSXu | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-libs = %{version}-%{release} | |
77 | Requires: glew-devel >= 1.6.0 | |
78 | Requires: libpng-devel >= 2:1.2.46 | |
79 | Requires: libstdc++-devel | |
80 | ||
81 | %description devel | |
82 | Header files for VSXu libraries. | |
83 | ||
84 | %description devel -l pl.UTF-8 | |
85 | Pliki nagłówkowe bibliotek VSXu. | |
86 | ||
87 | %prep | |
88 | %setup -q | |
89 | %patch0 -p1 | |
90 | %patch1 -p1 | |
91 | %patch2 -p1 | |
c8ae4da8 | 92 | %patch3 -p1 |
bf7a50d9 JB |
93 | |
94 | %build | |
95 | install -d build | |
96 | cd build | |
97 | %cmake .. | |
98 | ||
99 | %{__make} | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | ||
104 | %{__make} -C build install \ | |
105 | DESTDIR=$RPM_BUILD_ROOT | |
106 | ||
107 | %clean | |
108 | rm -rf $RPM_BUILD_ROOT | |
109 | ||
110 | %post libs -p /sbin/ldconfig | |
111 | %postun libs -p /sbin/ldconfig | |
112 | ||
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | # COPYING contains copyright notes, not only GPL text | |
43efdf4b JB |
116 | %doc AUTHORS CHANGELOG COPYING README.md |
117 | %attr(755,root,root) %{_bindir}/obj2vxm | |
118 | %attr(755,root,root) %{_bindir}/vsxl | |
bf7a50d9 JB |
119 | %attr(755,root,root) %{_bindir}/vsxu_artiste |
120 | %attr(755,root,root) %{_bindir}/vsxu_player | |
43efdf4b | 121 | %attr(755,root,root) %{_bindir}/vsxu_profiler |
bf7a50d9 JB |
122 | %attr(755,root,root) %{_bindir}/vsxu_server |
123 | %attr(755,root,root) %{_bindir}/vsxz | |
124 | %dir %{_libdir}/vsxu | |
125 | %dir %{_libdir}/vsxu/plugins | |
126 | %attr(755,root,root) %{_libdir}/vsxu/plugins/*.so | |
127 | %{_datadir}/vsxu | |
128 | %{_desktopdir}/vsxu-artiste.desktop | |
129 | %{_desktopdir}/vsxu-artiste-fullscreen.desktop | |
130 | %{_desktopdir}/vsxu-player.desktop | |
131 | %{_desktopdir}/vsxu-player-fullscreen.desktop | |
132 | %{_desktopdir}/vsxu-server.desktop | |
133 | %{_desktopdir}/vsxu-server-fullscreen.desktop | |
134 | %{_pixmapsdir}/vsxu.xpm | |
135 | %{_iconsdir}/hicolor/*x*/apps/vsxu.png | |
136 | ||
137 | %files libs | |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_libdir}/libvsxu_engine.so | |
140 | %attr(755,root,root) %{_libdir}/libvsxu_engine_audiovisual.so | |
141 | %attr(755,root,root) %{_libdir}/libvsxu_engine_graphics.so | |
43efdf4b | 142 | %attr(755,root,root) %{_libdir}/libvsx_widget.so |
bf7a50d9 JB |
143 | |
144 | %files devel | |
145 | %defattr(644,root,root,755) | |
146 | %{_includedir}/vsxu | |
147 | %{_pkgconfigdir}/libvsxu.pc |