]> git.pld-linux.org Git - packages/liblastfm.git/blob - liblastfm.spec
up to 1.0.9; new SONAME
[packages/liblastfm.git] / liblastfm.spec
1 Summary:        Library to access Last.fm features
2 Name:           liblastfm
3 Version:        1.0.9
4 Release:        1
5 License:        GPL v3
6 Group:          Libraries
7 Source0:        https://github.com/lastfm/liblastfm/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5:  8748f423f66f2fbc38c39f9153d01a71
9 Patch0:         %{name}-ruby19.patch
10 URL:            https://github.com/lastfm/liblastfm
11 BuildRequires:  QtGui-devel
12 BuildRequires:  QtNetwork-devel
13 BuildRequires:  QtSql-devel
14 BuildRequires:  QtTest-devel
15 BuildRequires:  QtXml-devel
16 BuildRequires:  cmake >= 2.8.6
17 BuildRequires:  fftw3-single-devel
18 BuildRequires:  libsamplerate-devel
19 BuildRequires:  pkgconfig
20 BuildRequires:  qt4-build
21 BuildRequires:  qt4-qmake
22 BuildRequires:  ruby
23 BuildRequires:  ruby-modules
24 BuildRequires:  sed >= 4.0
25 BuildRequires:  which
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
46 %setup -q
47 #%patch0 -p0
48
49 %build
50 install -d build
51 cd build
52 %cmake \
53         -DBUILD_WITH_QT4:BOOL=ON \
54         -DBUILD_FINGERPRINT:BOOL=ON \
55         ..
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 %{__make} -C build install \
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)
70 %doc README.md
71 %attr(755,root,root) %{_libdir}/%{name}.so.*.*
72 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.1
73 %attr(755,root,root) %{_libdir}/%{name}_fingerprint.so.*.*
74 %attr(755,root,root) %ghost %{_libdir}/%{name}_fingerprint.so.1
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
This page took 0.067898 seconds and 3 git commands to generate.