]> git.pld-linux.org Git - SPECS.git/blob - libspotify.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / libspotify.spec
1 # NOTE: deprecated and unmaintained
2 # TODO
3 # - figure out license and redistribution terms
4 #
5 # Conditional build:
6 %bcond_without  apidocs         # do not build and package API docs
7
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
10 Name:           libspotify
11 Version:        12.1.51
12 Release:        1
13 License:        ?
14 Group:          Libraries
15 Source0:        https://developer.spotify.com/download/libspotify/%{name}-%{version}-Linux-i686-release.tar.gz
16 # NoSource0-md5:        04735b890da0b1fc7f1f14e68a5293de
17 NoSource:       0
18 Source1:        https://developer.spotify.com/download/libspotify/%{name}-%{version}-Linux-x86_64-release.tar.gz
19 # NoSource1-md5:        83efddcc195d6ff12b24c97c767a5e45
20 NoSource:       1
21 Patch0:         DESTDIR.patch
22 URL:            https://developer.spotify.com/technologies/libspotify/
23 ExclusiveArch:  %{ix86} %{x8664}
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 The libspotify C API package allows third-party developers to write
28 applications that utilize the Spotify music streaming service.
29
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ę
33 w postaci strumieni.
34
35 %package devel
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}
40
41 %description devel
42 Header files for %{name} library.
43
44 %description devel -l pl.UTF-8
45 Pliki nagłówkowe biblioteki %{name}.
46
47 %package static
48 Summary:        Static %{name} library
49 Summary(pl.UTF-8):      Statyczna biblioteka %{name}
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}-%{release}
52
53 %description static
54 Static %{name} library.
55
56 %description static -l pl.UTF-8
57 Statyczna biblioteka %{name}.
58
59 %package apidocs
60 Summary:        API documentation for %{name} library
61 Summary(pl.UTF-8):      Dokumentacja API biblioteki %{name}
62 Group:          Documentation
63
64 %description apidocs
65 API documentation for %{name} library.
66
67 %description apidocs -l pl.UTF-8
68 Dokumentacja API biblioteki %{name}.
69
70 %prep
71 %ifarch %{ix86}
72 %setup -q -n %{name}-%{version}-Linux-i686-release
73 %endif
74 %ifarch %{x8664}
75 %setup -q -n %{name}-%{version}-Linux-x86_64-release
76 %endif
77 %patch0 -p1
78
79 install -d man
80 %{__mv} share/doc/libspotify/examples .
81 %{__mv} share/man3 man
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85 install -d $RPM_BUILD_ROOT%{_mandir}
86 %{__make} install \
87         prefix=%{_prefix} \
88         lib=%{_lib} \
89         ldconfig=true \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 cp -a man/* $RPM_BUILD_ROOT%{_mandir}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
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
105
106 %files devel
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*
112
113 %if %{with apidocs}
114 %files apidocs
115 %defattr(644,root,root,755)
116 %doc share/doc/libspotify/*
117 %endif
This page took 0.929376 seconds and 3 git commands to generate.