]>
Commit | Line | Data |
---|---|---|
7b127198 | 1 | %define pkgname projectM |
b3a82913 | 2 | Summary: Awesome music visualizer |
3 | Summary(pl.UTF-8): Imponujący wizualizator muzyki | |
79f740dd | 4 | Name: libprojectM |
53385283 | 5 | Version: 2.1.0 |
08c2ceb3 | 6 | Release: 1 |
470af845 | 7 | Epoch: 1 |
7b020ff1 | 8 | License: LGPL v2.1+ |
b3a82913 | 9 | Group: Libraries |
08c2ceb3 | 10 | Source0: http://downloads.sourceforge.net/projectm/projectM-complete-%{version}-Source.tar.gz |
53385283 JR |
11 | # Source0-md5: debf30f7ce94ff0102f06fbb0cc4e92b |
12 | Patch0: paths.patch | |
13 | Patch1: pkgconfig.patch | |
14 | Patch2: c++14.patch | |
15 | Patch3: test-link.patch | |
729cd339 | 16 | URL: http://projectm.sourceforge.net/ |
7b020ff1 | 17 | BuildRequires: OpenGL-devel |
08c2ceb3 JR |
18 | BuildRequires: QtCore-devel |
19 | BuildRequires: QtGui-devel | |
20 | BuildRequires: QtOpenGL-devel | |
21 | BuildRequires: QtXml-devel | |
45737e80 | 22 | BuildRequires: SDL-devel |
7b020ff1 | 23 | BuildRequires: cmake >= 2.6.0 |
08c2ceb3 | 24 | BuildRequires: desktop-file-utils |
7b020ff1 | 25 | BuildRequires: freetype-devel >= 2.0 |
a37d40a9 | 26 | BuildRequires: ftgl-devel >= 2.1.3 |
77f5004b | 27 | BuildRequires: glew-devel |
08c2ceb3 | 28 | BuildRequires: jack-audio-connection-kit-devel |
7b020ff1 JB |
29 | BuildRequires: libgomp-devel |
30 | BuildRequires: libstdc++-devel | |
08c2ceb3 | 31 | BuildRequires: libvisual-devel = 0.4.0 |
79f740dd | 32 | BuildRequires: pkgconfig |
08c2ceb3 | 33 | BuildRequires: pulseaudio-devel |
a7d135ee | 34 | BuildRequires: rpmbuild(macros) >= 1.577 |
7b127198 ER |
35 | BuildRequires: sed >= 4.0 |
36 | Requires: fonts-TTF-bitstream-vera | |
b3a82913 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
39 | %description | |
40 | projectM is a reimplementation of Milkdrop under OpenGL. It is an | |
41 | awesome music visualizer. There is nothing better in the world of | |
42 | Unix. | |
43 | ||
77f5004b | 44 | %description -l pl.UTF-8 |
0d2ffbdb | 45 | projectM jest reimplementacją projektu Milkdrop na OpenGL. Jest |
46 | imponującym wizualizatorem muzyki. Nie ma nic lepszego w świecie | |
47 | uniksa. | |
48 | ||
b3a82913 | 49 | %package devel |
50 | Summary: Header files for projectM library | |
51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki projectM | |
52 | Group: Development/Libraries | |
93c14781 | 53 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b3a82913 | 54 | |
55 | %description devel | |
56 | Header files for projectM library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe biblioteki projectM. | |
60 | ||
08c2ceb3 JR |
61 | %package qt |
62 | Summary: The Qt frontend to the projectM visualization plugin | |
63 | Group: Libraries | |
64 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
65 | ||
66 | %description qt | |
67 | projectM-qt is a GUI designed to enhance the projectM user and preset | |
68 | writer experience. It provides a way to browse, search, rate presets | |
69 | and setup preset playlists for jack-projectM and pulseaudio-projectM. | |
70 | ||
71 | %package qt-devel | |
72 | Summary: Header files for projectM QT library | |
73 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki projectM QT | |
74 | Group: Development/Libraries | |
75 | Requires: %{name}-qt = %{epoch}:%{version}-%{release} | |
76 | ||
77 | %description qt-devel | |
78 | Header files for projectM QT library. | |
79 | ||
80 | %description qt-devel -l pl.UTF-8 | |
81 | Pliki nagłówkowe biblioteki projectM QT. | |
82 | ||
83 | %package -n jack-projectM | |
84 | Summary: The projectM visualization plugin for jack | |
85 | License: GPLv2+ and MIT | |
86 | Group: Applications/Multimedia | |
87 | ||
88 | %description -n jack-projectM | |
89 | This package allows the use of the projectM visualization plugin | |
90 | through any JACK compatible applications. | |
91 | ||
92 | %package -n pulseaudio-projectM | |
93 | Summary: The projectM visualization plugin for pulseaudio | |
94 | Group: Applications/Multimedia | |
95 | ||
96 | %description -n pulseaudio-projectM | |
97 | This package allows the use of the projectM visualization plugin | |
98 | through any pulseaudio compatible applications. | |
99 | ||
45737e80 JR |
100 | %package -n libvisual-projectM |
101 | Summary: ProjectM plugin for libvisual | |
102 | Summary(pl.UTF-8): Wtyczka ProjectM dla libvisual | |
103 | Group: Libraries | |
104 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
105 | ||
106 | %description -n libvisual-projectM | |
107 | projectM is a reimplementation of Milkdrop under OpenGL. This is a | |
108 | plugin for libvisual visualization library. | |
109 | ||
110 | %description -n libvisual-projectM -l pl.UTF-8 | |
111 | projectM jest reimplementacją projektu Milkdrop na OpenGL. Ten pakiet | |
112 | zawiera wtyczkę dla biblioteki wizualizacji libvisual. | |
113 | ||
b3a82913 | 114 | %prep |
53385283 | 115 | %setup -q -n projectM-complete-%{version}-Source |
79f740dd | 116 | %patch0 -p1 |
a37d40a9 AG |
117 | %patch1 -p1 |
118 | %patch2 -p1 | |
f5c4e739 | 119 | %patch3 -p1 |
b3a82913 | 120 | |
121 | %build | |
a7d135ee ER |
122 | install -d build |
123 | cd build | |
79f740dd | 124 | %cmake \ |
10672d0a | 125 | -DCMAKE_LIB_DIR=%{_libdir} \ |
53385283 JR |
126 | -DprojectM_FONT_MENU="/usr/share/fonts/TTF/Vera.ttf" \ |
127 | -DprojectM_FONT_TITLE="/usr/share/fonts/TTF/VeraMono.ttf" \ | |
08c2ceb3 JR |
128 | -DINCLUDE-PROJECTM-TEST=OFF \ |
129 | -DINCLUDE-PROJECTM-JACK=ON \ | |
130 | -DINCLUDE-PROJECTM-LIBVISUAL-ALSA=ON \ | |
a7d135ee | 131 | ../ |
77f5004b | 132 | %{__make} |
b3a82913 | 133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
a7d135ee | 136 | %{__make} -C build install \ |
b3a82913 | 137 | DESTDIR=$RPM_BUILD_ROOT |
138 | ||
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
08c2ceb3 JR |
142 | %post -p /sbin/ldconfig |
143 | %postun -p /sbin/ldconfig | |
144 | ||
145 | %post qt -p /sbin/ldconfig | |
146 | %postun qt -p /sbin/ldconfig | |
b3a82913 | 147 | |
148 | %files | |
149 | %defattr(644,root,root,755) | |
7b020ff1 | 150 | # COPYING is just license information, not actual LGPL text |
53385283 | 151 | %doc src/libprojectM/{COPYING,ChangeLog} |
216b1c50 | 152 | %attr(755,root,root) %{_libdir}/libprojectM.so.*.* |
7b127198 ER |
153 | %attr(755,root,root) %ghost %{_libdir}/libprojectM.so.2 |
154 | %dir %{_datadir}/%{pkgname} | |
155 | %{_datadir}/%{pkgname}/config.inp | |
156 | %dir %{_datadir}/%{pkgname}/presets | |
157 | %{_datadir}/%{pkgname}/presets/*.milk | |
158 | %{_datadir}/%{pkgname}/presets/*.prjm | |
159 | %{_datadir}/%{pkgname}/presets/*.tga | |
160 | %dir %{_datadir}/%{pkgname}/shaders | |
161 | %{_datadir}/%{pkgname}/shaders/*.cg | |
b3a82913 | 162 | |
163 | %files devel | |
164 | %defattr(644,root,root,755) | |
216b1c50 | 165 | %attr(755,root,root) %{_libdir}/libprojectM.so |
79f740dd | 166 | %{_includedir}/%{name} |
b3a82913 | 167 | %{_pkgconfigdir}/libprojectM.pc |
45737e80 | 168 | |
08c2ceb3 JR |
169 | %files qt |
170 | %defattr(644,root,root,755) | |
171 | %attr(755,root,root) %{_libdir}/libprojectM-qt.so.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libprojectM-qt.so.1 | |
173 | %{_pixmapsdir}/prjm16-transparent.svg | |
174 | ||
175 | %files qt-devel | |
176 | %defattr(644,root,root,755) | |
177 | %doc src/projectM-qt/ReadMe | |
178 | %{_includedir}/%{name}-qt | |
179 | %{_libdir}/libprojectM-qt*.so | |
180 | %{_pkgconfigdir}/libprojectM-qt.pc | |
181 | ||
182 | %files -n jack-projectM | |
183 | %defattr(644,root,root,755) | |
184 | %attr(755,root,root) %{_bindir}/projectM-jack | |
185 | %{_desktopdir}/projectM-jack.desktop | |
186 | ||
187 | %files -n pulseaudio-projectM | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_bindir}/projectM-pulseaudio | |
190 | %{_desktopdir}/projectM-pulseaudio.desktop | |
191 | ||
45737e80 JR |
192 | %files -n libvisual-projectM |
193 | %defattr(644,root,root,755) | |
08c2ceb3 JR |
194 | %doc src/projectM-libvisual/{ChangeLog,AUTHORS} |
195 | %attr(755,root,root) %{_bindir}/projectM-libvisual-alsa | |
45737e80 | 196 | %attr(755,root,root) %{_libdir}/libvisual-0.4/actor/libprojectM_libvisual.so |
08c2ceb3 | 197 | %{_desktopdir}/projectM-libvisual-alsa.desktop |