[10997] | 1 | %define major_ver 1.18 |
---|
| 2 | %define ver %{major_ver}.0 |
---|
| 3 | %define rel 1 |
---|
| 4 | |
---|
[9552] | 5 | Summary: A mixer library for MATE desktop |
---|
| 6 | Name: libmatemixer |
---|
[10997] | 7 | Version: %{ver} |
---|
| 8 | Release: %{rel}%{?_dist_release} |
---|
| 9 | Source0: http://pub.mate-desktop.org/releases/%{major_ver}/%{name}-%{version}.tar.xz |
---|
[10883] | 10 | License: LGPLv2.1 |
---|
[9552] | 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 |
---|
[10883] | 29 | Packager: Takemikaduchi, iwaim |
---|
[9552] | 30 | |
---|
| 31 | |
---|
| 32 | %description |
---|
[10883] | 33 | It provides an abstract API allowing access to mixer functionality available |
---|
| 34 | in the PulseAudio, ALSA and OSS sound systems. |
---|
[9552] | 35 | |
---|
| 36 | |
---|
| 37 | %package devel |
---|
[10883] | 38 | Summary: Development tools for libmatemixer |
---|
| 39 | Summary(ja): libmatemixer の開発環境 |
---|
[9552] | 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 |
---|
[10883] | 46 | libmatemixer. |
---|
[9552] | 47 | |
---|
| 48 | |
---|
| 49 | %package docs |
---|
[10883] | 50 | Summary: Documentation for libmatemixer |
---|
| 51 | Summary(ja): libmatemixer 用のドキュメント |
---|
[9552] | 52 | Group: Documentation |
---|
| 53 | Requires: %{name} = %{version}-%{release} |
---|
| 54 | BuildArch: noarch |
---|
| 55 | |
---|
| 56 | %description docs |
---|
[10883] | 57 | This package contains documentation for libmatemixer. |
---|
[9552] | 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 |
---|
[10997] | 111 | * Sun Apr 2 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 1.18.0-1 |
---|
| 112 | - update to 1.18.0 |
---|
| 113 | |
---|
[10883] | 114 | * Sat Nov 26 2016 IWAI, Masaharu <iwaim.sub@gmail.com> 1.16.0-1 |
---|
| 115 | - new upstream release |
---|
| 116 | - fix License |
---|
| 117 | - fix Summary and description |
---|
| 118 | - add Packager |
---|
| 119 | |
---|
[10255] | 120 | * Sun May 08 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.14.0-1 |
---|
| 121 | - new upstream release |
---|
| 122 | |
---|
[9842] | 123 | * Tue Dec 01 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.1-1 |
---|
| 124 | - new upstream release |
---|
| 125 | |
---|
[9797] | 126 | * Sat Nov 07 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.12.0-1 |
---|
| 127 | - new upstream release |
---|
| 128 | |
---|
[9552] | 129 | * Sat May 09 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1 |
---|
| 130 | - initial build |
---|
| 131 | |
---|