1 # NOTE: deprecated and unmaintained
3 # - figure out license and redistribution terms
6 %bcond_without apidocs # do not build and package API docs
8 Summary: C API for Spotify music streaming service
9 Summary(pl.UTF-8): API C do serwisu udostępniającego muzykę w postaci strumieni
15 Source0: https://developer.spotify.com/download/libspotify/%{name}-%{version}-Linux-i686-release.tar.gz
16 # NoSource0-md5: 04735b890da0b1fc7f1f14e68a5293de
18 Source1: https://developer.spotify.com/download/libspotify/%{name}-%{version}-Linux-x86_64-release.tar.gz
19 # NoSource1-md5: 83efddcc195d6ff12b24c97c767a5e45
22 URL: https://developer.spotify.com/technologies/libspotify/
23 ExclusiveArch: %{ix86} %{x8664}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The libspotify C API package allows third-party developers to write
28 applications that utilize the Spotify music streaming service.
30 %description -l pl.UTF-8
31 Pakiet libspotify to API C pozwalające zewnętrznym programistom
32 tworzyć aplikacje wykorzystujące serwis Spotify, udostępniający muzykę
36 Summary: Header files for %{name} library
37 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
38 Group: Development/Libraries
39 Requires: %{name} = %{version}-%{release}
42 Header files for %{name} library.
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki %{name}.
48 Summary: Static %{name} library
49 Summary(pl.UTF-8): Statyczna biblioteka %{name}
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static %{name} library.
56 %description static -l pl.UTF-8
57 Statyczna biblioteka %{name}.
60 Summary: API documentation for %{name} library
61 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
65 API documentation for %{name} library.
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API biblioteki %{name}.
72 %setup -q -n %{name}-%{version}-Linux-i686-release
75 %setup -q -n %{name}-%{version}-Linux-x86_64-release
80 %{__mv} share/doc/libspotify/examples .
81 %{__mv} share/man3 man
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT%{_mandir}
90 DESTDIR=$RPM_BUILD_ROOT
92 cp -a man/* $RPM_BUILD_ROOT%{_mandir}
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
102 %doc README ChangeLog LICENSE
103 %attr(755,root,root) %{_libdir}/libspotify.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libspotify.so.12
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libspotify.so
109 %{_includedir}/libspotify
110 %{_pkgconfigdir}/libspotify.pc
111 %{_mandir}/man3/*.3spotify*
115 %defattr(644,root,root,755)
116 %doc share/doc/libspotify/*