]>
Commit | Line | Data |
---|---|---|
9ebe23bb JB |
1 | Summary: MATE mixer libraries |
2 | Summary(pl.UTF-8): Biblioteki MATE do obsługi miksera | |
3 | Name: libmatemixer | |
d24afa25 | 4 | Version: 1.18.0 |
63a17db3 | 5 | Release: 1 |
9ebe23bb JB |
6 | License: LGPL v2+ |
7 | Group: Libraries | |
d24afa25 JP |
8 | Source0: http://pub.mate-desktop.org/releases/1.18/%{name}-%{version}.tar.xz |
9 | # Source0-md5: ec4dcf758b7dcba6c602e6ce8bf280f9 | |
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 | |
14 | BuildRequires: gettext-tools | |
15 | BuildRequires: glib2-devel >= 1:2.36.0 | |
16 | BuildRequires: gtk-doc >= 1.10 | |
17 | BuildRequires: intltool >= 0.35.0 | |
18 | BuildRequires: libtool >= 2:2.2 | |
19 | BuildRequires: mate-common >= 1.5 | |
20 | BuildRequires: pkgconfig | |
80f4d29c | 21 | BuildRequires: pulseaudio-devel >= 2.0.0 |
9ebe23bb JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
24 | Requires: glib2 >= 1:2.36.0 | |
e086b050 JB |
25 | # alsa module |
26 | Requires: alsa-lib >= 1.0.5 | |
27 | # pulse module | |
28 | Requires: pulseaudio-libs >= 2.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} | |
e086b050 | 46 | Requires: glib2-devel >= 1:2.36.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 ER |
58 | %if "%{_rpmversion}" >= "5" |
59 | BuildArch: noarch | |
60 | %endif | |
9ebe23bb JB |
61 | |
62 | %description apidocs | |
63 | API documentation for libmatemixer library. | |
64 | ||
65 | %description apidocs -l pl.UTF-8 | |
66 | Dokumentacja API biblioteki libmatemixer. | |
67 | ||
68 | %prep | |
69 | %setup -q | |
70 | ||
71 | %build | |
72 | %{__libtoolize} | |
73 | %{__aclocal} -I m4 | |
74 | %{__autoconf} | |
75 | %{__autoheader} | |
76 | %{__automake} | |
77 | %configure \ | |
78 | --disable-silent-rules \ | |
79 | --disable-static \ | |
80 | --enable-oss \ | |
81 | --with-html-dir=%{_gtkdocdir} | |
82 | %{__make} | |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libmatemixer.la \ | |
90 | $RPM_BUILD_ROOT%{_libdir}/libmatemixer/*.la | |
d24afa25 | 91 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{frp,ku_IQ,jv,pms} |
9ebe23bb JB |
92 | |
93 | %find_lang %{name} | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files -f %{name}.lang | |
102 | %defattr(644,root,root,755) | |
103 | %doc AUTHORS ChangeLog NEWS README | |
104 | %attr(755,root,root) %{_libdir}/libmatemixer.so.*.*.* | |
105 | %attr(755,root,root) %ghost %{_libdir}/libmatemixer.so.0 | |
106 | %dir %{_libdir}/libmatemixer | |
107 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-alsa.so | |
108 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-null.so | |
109 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-oss.so | |
110 | %attr(755,root,root) %{_libdir}/libmatemixer/libmatemixer-pulse.so | |
111 | ||
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libmatemixer.so | |
115 | %{_includedir}/mate-mixer | |
116 | %{_pkgconfigdir}/libmatemixer.pc | |
117 | ||
118 | %files apidocs | |
119 | %defattr(644,root,root,755) | |
120 | %{_gtkdocdir}/libmatemixer |