]>
Commit | Line | Data |
---|---|---|
9ebe23bb JB |
1 | Summary: MATE mixer libraries |
2 | Summary(pl.UTF-8): Biblioteki MATE do obsługi miksera | |
3 | Name: libmatemixer | |
7d8edd04 | 4 | Version: 1.26.0 |
63a17db3 | 5 | Release: 1 |
9ebe23bb JB |
6 | License: LGPL v2+ |
7 | Group: Libraries | |
7d8edd04 JP |
8 | Source0: https://pub.mate-desktop.org/releases/1.26/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 0e8a7dcc8cce58175f209b99a5062cde | |
9ebe23bb | 10 | URL: https://github.com/mate-desktop/libmatemixer |
c435d651 | 11 | BuildRequires: alsa-lib-devel >= 1.0.5 |
9ebe23bb JB |
12 | BuildRequires: autoconf >= 2.60 |
13 | BuildRequires: automake >= 1:1.9 | |
1cd07831 | 14 | BuildRequires: gettext-tools >= 0.19.8 |
d19eaac2 | 15 | BuildRequires: glib2-devel >= 1:2.50.0 |
9ebe23bb | 16 | BuildRequires: gtk-doc >= 1.10 |
9ebe23bb JB |
17 | BuildRequires: libtool >= 2:2.2 |
18 | BuildRequires: mate-common >= 1.5 | |
19 | BuildRequires: pkgconfig | |
ab3a44e0 | 20 | BuildRequires: pulseaudio-devel >= 5.0.0 |
9ebe23bb | 21 | BuildRequires: tar >= 1:1.22 |
7d8edd04 | 22 | BuildRequires: udev-devel |
9ebe23bb | 23 | BuildRequires: xz |
d19eaac2 | 24 | Requires: glib2 >= 1:2.50.0 |
e086b050 JB |
25 | # alsa module |
26 | Requires: alsa-lib >= 1.0.5 | |
27 | # pulse module | |
ab3a44e0 | 28 | Requires: pulseaudio-libs >= 5.0.0 |
9ebe23bb JB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | libmatemixer is a mixer library for MATE desktop. It provides an | |
33 | abstract API allowing access to mixer functionality available in the | |
34 | PulseAudio, ALSA and OSS sound systems. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | libmatemixer to biblioteka MATE do obsługi miksera. Udostępnia | |
38 | abstrakcyjne API pozwalające na dostęp do funkcji miksera dostępnych w | |
39 | systemach dźwięku PulseAudio, ALSA i OSS. | |
40 | ||
41 | %package devel | |
42 | Summary: Development files for libmatemixer library | |
43 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libmatemixer | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
d19eaac2 | 46 | Requires: glib2-devel >= 1:2.50.0 |
9ebe23bb JB |
47 | |
48 | %description devel | |
49 | Development files for libmatemixer library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki programistyczne biblioteki libmatemixer. | |
53 | ||
54 | %package apidocs | |
55 | Summary: API documentation for libmatemixer library | |
56 | Summary(pl.UTF-8): Dokumentacja API biblioteki libmatemixer | |
57 | Group: Documentation | |
523dde1b | 58 | BuildArch: noarch |
9ebe23bb JB |
59 | |
60 | %description apidocs | |
61 | API documentation for libmatemixer library. | |
62 | ||
63 | %description apidocs -l pl.UTF-8 | |
64 | Dokumentacja API biblioteki libmatemixer. | |
65 | ||
66 | %prep | |
67 | %setup -q | |
68 | ||
69 | %build | |
70 | %{__libtoolize} | |
71 | %{__aclocal} -I m4 | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
75 | %configure \ | |
76 | --disable-silent-rules \ | |
77 | --disable-static \ | |
78 | --enable-oss \ | |
79 | --with-html-dir=%{_gtkdocdir} | |
80 | %{__make} | |
81 | ||
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
87 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmatemixer.la \ | |
88 | $RPM_BUILD_ROOT%{_libdir}/libmatemixer/*.la | |
1cd07831 | 89 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ie,jv,ku_IQ,pms} |
9ebe23bb JB |
90 | |
91 | %find_lang %{name} | |
92 | ||
93 | %clean | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %post -p /sbin/ldconfig | |
97 | %postun -p /sbin/ldconfig | |
98 | ||
99 | %files -f %{name}.lang | |
100 | %defattr(644,root,root,755) | |
101 | %doc AUTHORS ChangeLog NEWS README | |
102 | %attr(755,root,root) %{_libdir}/libmatemixer.so.*.*.* | |
103 | %attr(755,root,root) %ghost %{_libdir}/libmatemixer.so.0 | |
104 | %dir %{_libdir}/libmatemixer | |
105 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-alsa.so | |
106 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-null.so | |
107 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-oss.so | |
108 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-pulse.so | |
109 | ||
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libmatemixer.so | |
113 | %{_includedir}/mate-mixer | |
114 | %{_pkgconfigdir}/libmatemixer.pc | |
115 | ||
116 | %files apidocs | |
117 | %defattr(644,root,root,755) | |
118 | %{_gtkdocdir}/libmatemixer |