]>
Commit | Line | Data |
---|---|---|
b3a82913 | 1 | # |
2 | %define _name projectM | |
0d2ffbdb | 3 | # |
b3a82913 | 4 | Summary: Awesome music visualizer |
5 | Summary(pl.UTF-8): Imponujący wizualizator muzyki | |
79f740dd | 6 | Name: libprojectM |
a37d40a9 AG |
7 | Version: 1.2.0 |
8 | Release: 1 | |
470af845 | 9 | Epoch: 1 |
b3a82913 | 10 | License: LGPL |
11 | Group: Libraries | |
77f5004b | 12 | Source0: http://dl.sourceforge.net/projectm/%{name}-%{version}.tar.bz2 |
a37d40a9 | 13 | # Source0-md5: 3bb7abb0f2d929780851bad1ca4fd045 |
79f740dd | 14 | Patch0: %{name}-static.patch |
a37d40a9 AG |
15 | Patch1: %{name}-ftgl.patch |
16 | Patch2: %{name}-gcc4.patch | |
729cd339 | 17 | URL: http://projectm.sourceforge.net/ |
79f740dd | 18 | BuildRequires: cmake |
a37d40a9 | 19 | BuildRequires: ftgl-devel >= 2.1.3 |
77f5004b | 20 | BuildRequires: glew-devel |
79f740dd | 21 | BuildRequires: pkgconfig |
b3a82913 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
24 | %description | |
25 | projectM is a reimplementation of Milkdrop under OpenGL. It is an | |
26 | awesome music visualizer. There is nothing better in the world of | |
27 | Unix. | |
28 | ||
77f5004b | 29 | %description -l pl.UTF-8 |
0d2ffbdb | 30 | projectM jest reimplementacją projektu Milkdrop na OpenGL. Jest |
31 | imponującym wizualizatorem muzyki. Nie ma nic lepszego w świecie | |
32 | uniksa. | |
33 | ||
b3a82913 | 34 | %package devel |
35 | Summary: Header files for projectM library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki projectM | |
37 | Group: Development/Libraries | |
93c14781 | 38 | Requires: %{name} = %{epoch}:%{version}-%{release} |
b3a82913 | 39 | |
40 | %description devel | |
41 | Header files for projectM library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki projectM. | |
45 | ||
46 | %package static | |
47 | Summary: Static projectM library | |
48 | Summary(pl.UTF-8): Statyczna biblioteka projectM | |
49 | Group: Development/Libraries | |
93c14781 | 50 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
b3a82913 | 51 | |
52 | %description static | |
53 | Static projectM library. | |
54 | ||
55 | %description static -l pl.UTF-8 | |
56 | Statyczna biblioteka projectM. | |
57 | ||
58 | %prep | |
79f740dd | 59 | %setup -q |
60 | %patch0 -p1 | |
a37d40a9 AG |
61 | %patch1 -p1 |
62 | %patch2 -p1 | |
b3a82913 | 63 | |
64 | %build | |
79f740dd | 65 | %cmake \ |
66 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
a37d40a9 | 67 | -DBUILD_PROJECTM_STATIC=yes \ |
216b1c50 | 68 | %if "%{_lib}" == "lib64" |
69 | -DLIB_SUFFIX=64 \ | |
70 | %endif | |
55543586 | 71 | . |
77f5004b | 72 | %{__make} |
b3a82913 | 73 | |
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
88 | %doc ChangeLog | |
216b1c50 | 89 | %attr(755,root,root) %{_libdir}/libprojectM.so.*.* |
57351de0 | 90 | %attr(755,root,root) %ghost %{_libdir}/libprojectM.so.? |
b3a82913 | 91 | %dir %{_datadir}/%{_name} |
79f740dd | 92 | %{_datadir}/%{_name}/config.inp |
b3a82913 | 93 | %dir %{_datadir}/%{_name}/fonts |
94 | %{_datadir}/%{_name}/fonts/*.ttf | |
95 | %dir %{_datadir}/%{_name}/presets | |
216b1c50 | 96 | %{_datadir}/%{_name}/presets/*.milk |
97 | %{_datadir}/%{_name}/presets/*.prjm | |
98 | %{_datadir}/%{_name}/presets/*.tga | |
b3a82913 | 99 | |
100 | %files devel | |
101 | %defattr(644,root,root,755) | |
216b1c50 | 102 | %attr(755,root,root) %{_libdir}/libprojectM.so |
79f740dd | 103 | %{_includedir}/%{name} |
b3a82913 | 104 | %{_pkgconfigdir}/libprojectM.pc |
105 | ||
106 | %files static | |
107 | %defattr(644,root,root,755) | |
108 | %{_libdir}/libprojectM.a |