]>
Commit | Line | Data |
---|---|---|
b3a82913 | 1 | # TODO: |
2 | # - pl summary | |
79f740dd | 3 | # - test if it works |
b3a82913 | 4 | # |
5 | %define _name projectM | |
6 | Summary: Awesome music visualizer | |
7 | Summary(pl.UTF-8): Imponujący wizualizator muzyki | |
79f740dd | 8 | Name: libprojectM |
9 | Version: 1.0 | |
b3a82913 | 10 | Release: 0.1 |
11 | License: LGPL | |
12 | Group: Libraries | |
79f740dd | 13 | Source0: http://dl.sourceforge.net/sourceforge/projectm/%{name}-%{version}.tar.bz2 |
14 | # Source0-md5: 66d2405fcb03efd4c82a0ea1989b4cbc | |
15 | Patch0: %{name}-static.patch | |
729cd339 | 16 | URL: http://projectm.sourceforge.net/ |
79f740dd | 17 | BuildRequires: cmake |
18 | BuildRequires: glew-devel | |
b3a82913 | 19 | BuildRequires: ftgl-devel >= 2.1.2-3 |
79f740dd | 20 | BuildRequires: pkgconfig |
b3a82913 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | projectM is a reimplementation of Milkdrop under OpenGL. It is an | |
25 | awesome music visualizer. There is nothing better in the world of | |
26 | Unix. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files for projectM library | |
30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki projectM | |
31 | Group: Development/Libraries | |
32 | Requires: %{name} = %{version}-%{release} | |
33 | ||
34 | %description devel | |
35 | Header files for projectM library. | |
36 | ||
37 | %description devel -l pl.UTF-8 | |
38 | Pliki nagłówkowe biblioteki projectM. | |
39 | ||
40 | %package static | |
41 | Summary: Static projectM library | |
42 | Summary(pl.UTF-8): Statyczna biblioteka projectM | |
43 | Group: Development/Libraries | |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static projectM library. | |
48 | ||
49 | %description static -l pl.UTF-8 | |
50 | Statyczna biblioteka projectM. | |
51 | ||
52 | %prep | |
79f740dd | 53 | %setup -q |
54 | %patch0 -p1 | |
55 | #workaround for library path | |
56 | %{__sed} -i \ | |
57 | -e 's#DESTINATION lib#DESTINATION %{_libdir}#' \ | |
58 | -e 's#lib/pkgconfig#%{_lib}/pkgconfig#' \ | |
59 | CMakeLists.txt | |
b3a82913 | 60 | |
61 | %build | |
79f740dd | 62 | %cmake \ |
63 | -DCMAKE_INSTALL_PREFIX=%{_prefix} \ | |
64 | . | |
65 | %{__make} | |
b3a82913 | 66 | |
67 | %install | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %{__make} install \ | |
71 | DESTDIR=$RPM_BUILD_ROOT | |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc ChangeLog | |
79f740dd | 82 | %attr(755,root,root) %{_libdir}/libprojectM.so |
b3a82913 | 83 | %dir %{_datadir}/%{_name} |
79f740dd | 84 | %{_datadir}/%{_name}/config.inp |
b3a82913 | 85 | %dir %{_datadir}/%{_name}/fonts |
86 | %{_datadir}/%{_name}/fonts/*.ttf | |
87 | %dir %{_datadir}/%{_name}/presets | |
79f740dd | 88 | %{_datadir}/%{_name}/presets/* |
b3a82913 | 89 | |
90 | %files devel | |
91 | %defattr(644,root,root,755) | |
79f740dd | 92 | %{_includedir}/%{name} |
b3a82913 | 93 | %{_pkgconfigdir}/libprojectM.pc |
94 | ||
95 | %files static | |
96 | %defattr(644,root,root,755) | |
97 | %{_libdir}/libprojectM.a |