1 | %define major_ver 1.20 |
---|
2 | %define ver %{major_ver}.0 |
---|
3 | %define rel 1 |
---|
4 | |
---|
5 | Summary: A mixer library for MATE desktop |
---|
6 | Name: libmatemixer |
---|
7 | Version: %{ver} |
---|
8 | Release: %{rel}%{?_dist_release} |
---|
9 | Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz |
---|
10 | License: LGPLv2.1 |
---|
11 | Group: System Environment/Libraries |
---|
12 | URL: http://mate-desktop.org/ |
---|
13 | |
---|
14 | BuildRequires: mate-common |
---|
15 | BuildRequires: glib2-devel |
---|
16 | BuildRequires: pulseaudio-libs-devel |
---|
17 | BuildRequires: alsa-lib-devel |
---|
18 | BuildRequires: gtk-doc |
---|
19 | BuildRequires: autoconf |
---|
20 | BuildRequires: automake |
---|
21 | |
---|
22 | Requires(posttrans,postun): glib2 |
---|
23 | Requires(post,postun): gtk2 |
---|
24 | |
---|
25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
26 | |
---|
27 | Vendor: Project Vine |
---|
28 | Distribution: Vine Linux |
---|
29 | Packager: Takemikaduchi, iwaim |
---|
30 | |
---|
31 | |
---|
32 | %description |
---|
33 | It provides an abstract API allowing access to mixer functionality available |
---|
34 | in the PulseAudio, ALSA and OSS sound systems. |
---|
35 | |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: Development tools for libmatemixer |
---|
39 | Summary(ja): libmatemixer の開発環境 |
---|
40 | Group: Development/Libraries |
---|
41 | Requires: %{name} = %{version}-%{release} |
---|
42 | Requires: pkgconfig |
---|
43 | |
---|
44 | %description devel |
---|
45 | Header files and libraries for building a extension library for the |
---|
46 | libmatemixer. |
---|
47 | |
---|
48 | |
---|
49 | %package docs |
---|
50 | Summary: Documentation for libmatemixer |
---|
51 | Summary(ja): libmatemixer 用のドキュメント |
---|
52 | Group: Documentation |
---|
53 | Requires: %{name} = %{version}-%{release} |
---|
54 | BuildArch: noarch |
---|
55 | |
---|
56 | %description docs |
---|
57 | This package contains documentation for libmatemixer. |
---|
58 | |
---|
59 | |
---|
60 | %prep |
---|
61 | %setup -q |
---|
62 | |
---|
63 | |
---|
64 | %build |
---|
65 | (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi) |
---|
66 | %configure \ |
---|
67 | --disable-static \ |
---|
68 | --enable-pulseaudio \ |
---|
69 | --enable-alsa \ |
---|
70 | --disable-oss |
---|
71 | |
---|
72 | %{__make} %{?_smp_mflags} |
---|
73 | |
---|
74 | |
---|
75 | %install |
---|
76 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
77 | %{__make} install DESTDIR=${RPM_BUILD_ROOT} |
---|
78 | |
---|
79 | find $RPM_BUILD_ROOT -name '*.a' -exec rm -f {} \; |
---|
80 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \; |
---|
81 | |
---|
82 | %find_lang %{name} |
---|
83 | |
---|
84 | |
---|
85 | %clean |
---|
86 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
87 | |
---|
88 | %post -p /sbin/ldconfig |
---|
89 | %postun -p /sbin/ldconfig |
---|
90 | |
---|
91 | %files -f %{name}.lang |
---|
92 | %defattr(-,root,root,-) |
---|
93 | %doc COPYING ChangeLog NEWS README |
---|
94 | %{_libdir}/%{name}.so.* |
---|
95 | %{_libdir}/%{name}/libmatemixer-alsa.so |
---|
96 | %{_libdir}/%{name}/libmatemixer-null.so |
---|
97 | %{_libdir}/%{name}/libmatemixer-pulse.so |
---|
98 | |
---|
99 | %files devel |
---|
100 | %defattr(-,root,root,-) |
---|
101 | %{_includedir}/mate-mixer/%{name} |
---|
102 | %{_libdir}/%{name}.so |
---|
103 | %{_libdir}/pkgconfig/%{name}.pc |
---|
104 | |
---|
105 | %files docs |
---|
106 | %defattr(-,root,root,-) |
---|
107 | %{_datadir}/gtk-doc/html/%{name} |
---|
108 | |
---|
109 | |
---|
110 | %changelog |
---|
111 | * Wed Mar 28 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.20.0-1 |
---|
112 | - update to 1.20.0 |
---|
113 | |
---|
114 | * Sun Apr 2 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
115 | - update to 1.18.0 |
---|
116 | |
---|
117 | * Sat Nov 26 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1 |
---|
118 | - new upstream release |
---|
119 | - fix License |
---|
120 | - fix Summary and description |
---|
121 | - add Packager |
---|
122 | |
---|
123 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
124 | - new upstream release |
---|
125 | |
---|
126 | * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1 |
---|
127 | - new upstream release |
---|
128 | |
---|
129 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
130 | - new upstream release |
---|
131 | |
---|
132 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
133 | - initial build |
---|
134 | |
---|