]>
Commit | Line | Data |
---|---|---|
80f057a0 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Userspace library for ALSA compressed APIs | |
6 | Summary(pl.UTF-8): Biblioteka przestrzeni użytkownika dla API systemu ALSA dla danych skompresowanych | |
7 | Name: tinycompress | |
f9a2fa53 | 8 | Version: 1.2.3 |
80f057a0 JB |
9 | Release: 1 |
10 | License: BSD | |
11 | Group: Libraries | |
12 | Source0: ftp://ftp.alsa-project.org/pub/tinycompress/%{name}-%{version}.tar.bz2 | |
f9a2fa53 | 13 | # Source0-md5: 342d60f0081f64dbf9d9c4572f955b6f |
a8f0f5bb | 14 | URL: https://www.alsa-project.org/ |
80f057a0 JB |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | tinycompress is a userspace library for anyone who wants to use the | |
19 | ALSA compressed APIs introduced in Linux 3.3. | |
20 | ||
21 | This library provides the APIs to open a ALSA compressed device and | |
22 | read/write compressed data like MP3 etc to it. | |
23 | ||
24 | %description -l pl.UTF-8 | |
25 | tinycompress to biblioteka przestrzeni użytkownika dla chcących | |
26 | wykorzystywać API systemu ALSA dla danych skompresowanych, wprowadzone | |
27 | w Linuksie 3.3. | |
28 | ||
29 | Biblioteka udostępnia API do otwierania urządzeń kompresowanych ALSA | |
30 | oraz odczytu/zapisu przez nie danych skompresowanych np. MP3. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for tinycompress library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki tinycompress | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
37 | ||
38 | %description devel | |
39 | Header files for tinycompress library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki tinycompress. | |
43 | ||
44 | %package static | |
45 | Summary: Static tinycompress library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka tinycompress | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static tinycompress library. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka tinycompress. | |
55 | ||
56 | %prep | |
57 | %setup -q | |
58 | ||
59 | %build | |
60 | %configure \ | |
61 | %{?with_static_libs:--enable-static} | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
a8f0f5bb | 70 | # no external dependencies, obsoleted by pkg-config |
80f057a0 JB |
71 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libtinycompress.la |
72 | ||
73 | %clean | |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
76 | %post -p /sbin/ldconfig | |
77 | %postun -p /sbin/ldconfig | |
78 | ||
79 | %files | |
80 | %defattr(644,root,root,755) | |
81 | %doc COPYING README | |
82 | %attr(755,root,root) %{_bindir}/cplay | |
83 | %attr(755,root,root) %{_bindir}/crecord | |
84 | %attr(755,root,root) %{_libdir}/libtinycompress.so.*.*.* | |
85 | %attr(755,root,root) %ghost %{_libdir}/libtinycompress.so.0 | |
86 | ||
87 | %files devel | |
88 | %defattr(644,root,root,755) | |
89 | %attr(755,root,root) %{_libdir}/libtinycompress.so | |
90 | %{_includedir}/tinycompress | |
a8f0f5bb | 91 | %{_pkgconfigdir}/tinycompress.pc |
80f057a0 JB |
92 | |
93 | %if %{with static_libs} | |
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libtinycompress.a | |
97 | %endif |