]> git.pld-linux.org Git - SPECS.git/blob - tinyalsa.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / tinyalsa.spec
1 Summary:        Small library to interface with ALSA in the Linux kernel
2 Summary(pl.UTF-8):      Mała biblioteka do współpracy z podsystemem ALSA w jądrze Linuksa
3 Name:           tinyalsa
4 Version:        1.1.1
5 Release:        1
6 License:        BSD
7 Group:          Libraries
8 #Source0Download: https://github.com/tinyalsa/tinyalsa/releases
9 Source0:        https://github.com/tinyalsa/tinyalsa/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  ec5c1cc175fcb8c9d3d0adcececf10a9
11 Patch0:         %{name}-opt.patch
12 URL:            https://github.com/tinyalsa/tinyalsa
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16 tinyalsa is a small library to interface with ALSA in the Linux
17 kernel. The aims are:
18 - Provide a basic PCM and mixer API
19 - If it's not absolutely needed, don't add it to the API
20 - Avoid supporting complex and unnecessary operations that could be
21   dealt with at a higher level
22
23 %description -l pl.UTF-8
24 tinyalsa to mała biblioteka do współpracy z podsystemem ALSA w jądrze
25 Linuksa. Jej cele to:
26 - dostarczenie podstawowego API do PCM i miksera
27 - jeśli coś nie jest absolutnie konieczne, nie należy dodawać tego do
28   API
29 - unikanie wspierania złożonych i niepotrzebnych operacji, które można
30   obsłużyć na wyższym poziomie
31
32 %package devel
33 Summary:        Header files for tinyalsa library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki tinyalsa
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files for tinyalsa library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki tinyalsa.
43
44 %package static
45 Summary:        Static tinyalsa library
46 Summary(pl.UTF-8):      Statyczna biblioteka tinyalsa
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static tinyalsa library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka tinyalsa.
55
56 %package tools
57 Summary:        Utilities for tinyalsa library
58 Summary(pl.UTF-8):      Programy narzędziowe do biblioteki tinyalsa
59 Group:          Applications/Sound
60 Requires:       %{name} = %{version}-%{release}
61
62 %description tools
63 Utilities for tinyalsa library.
64
65 %description tools -l pl.UTF-8
66 Programy narzędziowe do biblioteki tinyalsa.
67
68 %prep
69 %setup -q
70 %patch0 -p1
71
72 %build
73 CFLAGS="%{rpmcflags}" \
74 %{__make} \
75         CC="%{__cc}" \
76         CPPFLAGS="%{rpmcppflags}" \
77         LDFLAGS="%{rpmldflags}"
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT \
84         PREFIX=%{_prefix} \
85         LIBDIR=%{_libdir}
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post   -p /sbin/ldconfig
91 %postun -p /sbin/ldconfig
92
93 %triggerpostun -- tinyalsa < 1.1.0
94 rm -f %{_libdir}/libtinyalsa.so.1
95 /sbin/ldconfig
96
97 %files
98 %defattr(644,root,root,755)
99 %doc NOTICE README.md
100 %attr(755,root,root) %{_libdir}/libtinyalsa.so.*.*.*
101 %attr(755,root,root) %ghost %{_libdir}/libtinyalsa.so.1
102
103 %files devel
104 %defattr(644,root,root,755)
105 %attr(755,root,root) %{_libdir}/libtinyalsa.so
106 %{_includedir}/tinyalsa
107 %{_mandir}/man3/libtinyalsa-mixer.3*
108 %{_mandir}/man3/libtinyalsa-pcm.3*
109
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/libtinyalsa.a
113
114 %files tools
115 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/tinycap
117 %attr(755,root,root) %{_bindir}/tinymix
118 %attr(755,root,root) %{_bindir}/tinypcminfo
119 %attr(755,root,root) %{_bindir}/tinyplay
120 %{_mandir}/man1/tinycap.1*
121 %{_mandir}/man1/tinymix.1*
122 %{_mandir}/man1/tinypcminfo.1*
123 %{_mandir}/man1/tinyplay.1*
This page took 0.306316 seconds and 3 git commands to generate.