|
@@ -2,14 +2,16 @@
|
|
Summary: Advanced Linux Sound Architecture (ALSA) Library
|
|
Summary: Advanced Linux Sound Architecture (ALSA) Library
|
|
Summary(ja): Advanced Linux Sound Architecture (ALSA) ライブラリ
|
|
Summary(ja): Advanced Linux Sound Architecture (ALSA) ライブラリ
|
|
Name: alsa-lib
|
|
Name: alsa-lib
|
|
-Version: 1.1.1
|
|
+Version: 1.1.5
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{version}.tar.bz2
|
|
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{version}.tar.bz2
|
|
-Patch2: alsa-lib-1.0.14-glibc-open.patch
|
|
+Source10: asound.conf
|
|
-Patch4: alsa-lib-1.0.16-no-dox-date.patch
|
|
+Source11: modprobe-dist-alsa.conf
|
|
-Patch10: alsa-lib-1.0.15-dmix-not-use-audio-group.patch
|
|
+Source12: modprobe-dist-oss.conf
|
|
|
|
+Patch0: alsa-lib-1.0.24-config.patch
|
|
|
|
+Patch1: alsa-lib-1.0.14-glibc-open.patch
|
|
|
|
|
|
%{?nosrc:NoSource: 0}
|
|
%{?nosrc:NoSource: 0}
|
|
URL: http://www.alsa-project.org/
|
|
URL: http://www.alsa-project.org/
|
|
@@ -176,17 +178,22 @@ alsa-lib-develパッケージは静的ライブラリとヘッダファイルを
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch2 -p1 -b .glibc-open
|
|
+%patch0 -p1 -b .config
|
|
-%patch4 -p1 -b .no-dox-date
|
|
+%patch1 -p1 -b .glibc-open
|
|
-#%patch5 -p1 -b .softvolmute
|
|
|
|
-#%patch6 -p1 -b .clamprrfw
|
|
|
|
-#%patch7 -p1 -b .fixtype
|
|
|
|
-#%patch8 -p1 -b .fixreturnrrfw
|
|
|
|
-%patch10 -p1
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-%configure --disable-python
|
|
+autoreconf -vif
|
|
-make %{?_smp_mflags}
|
|
+%configure \
|
|
|
|
+ --disable-python \
|
|
|
|
+ --disable-aload \
|
|
|
|
+ --with-plugindir=%{_libdir}/alsa-lib \
|
|
|
|
+ --disable-alisp
|
|
|
|
+
|
|
|
|
+# Remove useless /usr/lib64 rpath on 64bit archs
|
|
|
|
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags} V=1
|
|
|
|
|
|
%if %make_doc
|
|
%if %make_doc
|
|
make doc
|
|
make doc
|
|
@@ -196,8 +203,26 @@ make %{?_smp_mflags}
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|
+# We need the library to be available even before /usr might be mounted
|
|
-rm -f $RPM_BUILD_ROOT/%{_libdir}/alsa-lib/smixer/*.la
|
|
+mkdir -p %{buildroot}/%{_lib}
|
|
|
|
+mv %{buildroot}%{_libdir}/libasound.so.* %{buildroot}/%{_lib}
|
|
|
|
+ln -snf ../../%{_lib}/libasound.so.2 %{buildroot}%{_libdir}/libasound.so
|
|
|
|
+
|
|
|
|
+# Install global configuration files
|
|
|
|
+mkdir -p -m 755 %{buildroot}/etc
|
|
|
|
+install -p -m 644 %{SOURCE10} %{buildroot}/etc
|
|
|
|
+
|
|
|
|
+# Install the modprobe files for ALSA
|
|
|
|
+mkdir -p -m 755 %{buildroot}/lib/modprobe.d/
|
|
|
|
+install -p -m 644 %{SOURCE11} %{buildroot}/lib/modprobe.d/dist-alsa.conf
|
|
|
|
+# bug#926973, place this file to the doc directory
|
|
|
|
+install -p -m 644 %{SOURCE12} .
|
|
|
|
+
|
|
|
|
+# Create UCM directory
|
|
|
|
+mkdir -p %{buildroot}/%{_datadir}/alsa/ucm
|
|
|
|
+
|
|
|
|
+# Remove libtool archives.
|
|
|
|
+find %{buildroot} -name '*.la' -delete
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
rm -rf %{buildroot}
|
|
@@ -208,30 +233,35 @@ rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc [A-Z][^a]* doc/R* doc/*.txt
|
|
+%{!?_licensedir:%global license %%doc}
|
|
-%{_libdir}/lib*.so.*
|
|
+%license COPYING
|
|
-%dir %{_libdir}/alsa-lib
|
|
+%doc doc/asoundrc.txt modprobe-dist-oss.conf
|
|
-%{_libdir}/alsa-lib/smixer/*.so
|
|
+%config %{_sysconfdir}/asound.conf
|
|
-%{_datadir}/alsa/*
|
|
+/%{_lib}/lib*.so.*
|
|
%{_bindir}/aserver
|
|
%{_bindir}/aserver
|
|
|
|
+#dir %{_libdir}/alsa-lib
|
|
|
|
+#{_libdir}/alsa-lib/smixer/*.so
|
|
|
|
+%{_datadir}/alsa/
|
|
|
|
+/lib/modprobe.d/dist-*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
|
|
+%doc TODO
|
|
%if %make_doc
|
|
%if %make_doc
|
|
%doc doc/doxygen/html
|
|
%doc doc/doxygen/html
|
|
%endif
|
|
%endif
|
|
-%{_libdir}/lib*.so
|
|
+%{_includedir}/alsa/
|
|
-%{_includedir}/alsa
|
|
|
|
%{_includedir}/sys/asoundlib.h
|
|
%{_includedir}/sys/asoundlib.h
|
|
|
|
+%{_libdir}/libasound.so
|
|
%{_libdir}/pkgconfig/alsa.pc
|
|
%{_libdir}/pkgconfig/alsa.pc
|
|
%{_datadir}/aclocal/alsa.m4
|
|
%{_datadir}/aclocal/alsa.m4
|
|
|
|
|
|
%if %{build_compat32}
|
|
%if %{build_compat32}
|
|
%files -n compat32-%{name}
|
|
%files -n compat32-%{name}
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%{_libdir}/lib*.so.*
|
|
+/%{_lib}/lib*.so.*
|
|
-%dir %{_libdir}/alsa-lib
|
|
+#dir %{_libdir}/alsa-lib
|
|
-%{_libdir}/alsa-lib/smixer/*.so
|
|
+#{_libdir}/alsa-lib/smixer/*.so
|
|
|
|
|
|
%files -n compat32-%{name}-devel
|
|
%files -n compat32-%{name}-devel
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
@@ -240,6 +270,9 @@ rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Feb 22 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.1.5-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-1
|
|
* Sun May 15 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.1-1
|
|
- new upstream release
|
|
- new upstream release
|
|
|
|
|