]>
Commit | Line | Data |
---|---|---|
4684897b | 1 | Summary: Library to access Last.fm features |
2 | Name: liblastfm | |
84425f4b ER |
3 | Version: 1.0.9 |
4 | Release: 1 | |
4684897b | 5 | License: GPL v3 |
6 | Group: Libraries | |
84425f4b ER |
7 | Source0: https://github.com/lastfm/liblastfm/archive/%{version}/%{name}-%{version}.tar.gz |
8 | # Source0-md5: 8748f423f66f2fbc38c39f9153d01a71 | |
82e4a779 | 9 | Patch0: %{name}-ruby19.patch |
84425f4b | 10 | URL: https://github.com/lastfm/liblastfm |
4684897b | 11 | BuildRequires: QtGui-devel |
12 | BuildRequires: QtNetwork-devel | |
13 | BuildRequires: QtSql-devel | |
14 | BuildRequires: QtTest-devel | |
15 | BuildRequires: QtXml-devel | |
84425f4b | 16 | BuildRequires: cmake >= 2.8.6 |
fd6cd877 | 17 | BuildRequires: fftw3-single-devel |
c8eb4b0b | 18 | BuildRequires: libsamplerate-devel |
19 | BuildRequires: pkgconfig | |
20 | BuildRequires: qt4-build | |
4684897b | 21 | BuildRequires: qt4-qmake |
22 | BuildRequires: ruby | |
23 | BuildRequires: ruby-modules | |
c686ecc9 | 24 | BuildRequires: sed >= 4.0 |
c8eb4b0b | 25 | BuildRequires: which |
4684897b | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
29 | liblastfm is a collection of libraries to help you integrate Last.fm | |
30 | services into your rich desktop software. It is officially supported | |
31 | software developed by Last.fm staff. | |
32 | ||
33 | %package devel | |
34 | Summary: Header files for %{name} | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe %{name} | |
36 | Group: Development/Libraries | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description devel | |
40 | Header files for %{name}. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe %{name}. | |
44 | ||
45 | %prep | |
84425f4b ER |
46 | %setup -q |
47 | #%patch0 -p0 | |
4684897b | 48 | |
49 | %build | |
84425f4b ER |
50 | install -d build |
51 | cd build | |
52 | %cmake \ | |
53 | -DBUILD_WITH_QT4:BOOL=ON \ | |
54 | -DBUILD_FINGERPRINT:BOOL=ON \ | |
55 | .. | |
4684897b | 56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
84425f4b | 59 | %{__make} -C build install \ |
4684897b | 60 | DESTDIR=$RPM_BUILD_ROOT |
61 | ||
62 | %clean | |
63 | rm -rf $RPM_BUILD_ROOT | |
64 | ||
65 | %post -p /sbin/ldconfig | |
66 | %postun -p /sbin/ldconfig | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
84425f4b | 70 | %doc README.md |
fd6cd877 | 71 | %attr(755,root,root) %{_libdir}/%{name}.so.*.* |
84425f4b | 72 | %attr(755,root,root) %ghost %{_libdir}/%{name}.so.1 |
fd6cd877 | 73 | %attr(755,root,root) %{_libdir}/%{name}_fingerprint.so.*.* |
84425f4b | 74 | %attr(755,root,root) %ghost %{_libdir}/%{name}_fingerprint.so.1 |
4684897b | 75 | |
76 | %files devel | |
77 | %defattr(644,root,root,755) | |
78 | %attr(755,root,root) %{_libdir}/%{name}.so | |
79 | %attr(755,root,root) %{_libdir}/%{name}_fingerprint.so | |
80 | %{_includedir}/lastfm |