3 %bcond_without static_libs # static library
5 Summary: Unofficial C-API for the Last.fm web service
6 Summary(pl.UTF-8): Nieoficjalne API C usługi WWW Last.fm
12 Source0: http://downloads.sourceforge.net/liblastfm/%{name}-%{version}.tar.gz
13 # Source0-md5: 0a71c485726a7e8970b970f520508a9b
14 URL: http://liblastfm.sourceforge.net/
15 BuildRequires: autoconf >= 2.64
16 BuildRequires: automake
17 BuildRequires: curl-devel
18 BuildRequires: libtool >= 2:2
19 BuildRequires: pkgconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 libclastfm is an unofficial C-API for the Last.fm web service written
24 with libcurl. It was written because the official CBS Interactive
25 Last.fm library requires Qt, which is usually not desired when using
28 This library supports much more than basic scrobble submission. You
29 can send shouts, fetch Album covers and much more.
31 Due to the naming conflict with the official last.fm library, this
32 library will install as "libclastfm".
34 %description -l pl.UTF-8
35 libclastfm to nieoficjalne API języka C do usługi WWW Last.fm,
36 napisane z użyciem biblioteki libcurl. Powstało, ponieważ oficjalna
37 biblioteka CBS Interactive Last.fm wymaga biblioteki Qt, która jest
38 zwykle niepożądana w przypadku korzystania z dystrybucji opartych na
41 Biblioteka ta obsługuje dużo więcej, niż proste wysyłanie swoich
42 preferencji (scrobble); można wysyłać okrzyki, pobierać okładki
45 Ze względu na konflikt nazw z oficjalną biblioteką last.fm, ta jest
46 instalowana pod nazwą "libclastfm".
49 Summary: Development files for libclastfm
50 Summary(pl.UTF-8): Pliki programistyczne biblioteki libcflastfm
51 Group: Development/Libraries
52 Requires: %{name} = %{version}-%{release}
56 This package contains files for developing applications that use
59 %description devel -l pl.UTF-8
60 Ten pakiet zawiera pliki do tworzenia aplikacji wykorzystujących
61 bibliotekę libclastfm.
64 Summary: Static libclastfm library
65 Summary(pl.UTF-8): Statyczna biblioteka libclastfm
66 Group: Development/Libraries
67 Requires: %{name}-devel = %{version}-%{release}
70 Static libclastfm library.
72 %description static -l pl.UTF-8
73 Statyczna biblioteka libclastfm.
85 %{!?with_static_libs:--disable-static}
90 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libclastfm.la
97 rm -rf $RPM_BUILD_ROOT
99 %post -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
103 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libclastfm.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libclastfm.so.0
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libclastfm.so
111 %{_includedir}/clastfm.h
112 %{_pkgconfigdir}/libclastfm.pc
114 %if %{with static_libs}
116 %defattr(644,root,root,755)
117 %{_libdir}/libclastfm.a