Browse Source

alsa-lib-1.1.5-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11508 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 6 years ago
parent
commit
c6c8250afd
1 changed files with 58 additions and 25 deletions
  1. 58 25
      a/alsa-lib/alsa-lib-vl.spec

+ 58 - 25
a/alsa-lib/alsa-lib-vl.spec

@@ -2,14 +2,16 @@
 Summary: Advanced Linux Sound Architecture (ALSA) Library
 Summary(ja): Advanced Linux Sound Architecture (ALSA) ライブラリ
 Name: alsa-lib
-Version: 1.1.1
+Version: 1.1.5
 Release: 1%{?_dist_release}
 License: LGPLv2+
 Group: System Environment/Libraries
 Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{version}.tar.bz2
-Patch2:  alsa-lib-1.0.14-glibc-open.patch
-Patch4:  alsa-lib-1.0.16-no-dox-date.patch
-Patch10: alsa-lib-1.0.15-dmix-not-use-audio-group.patch
+Source10: asound.conf
+Source11: modprobe-dist-alsa.conf
+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}
 URL: http://www.alsa-project.org/
@@ -176,17 +178,22 @@ alsa-lib-develパッケージは静的ライブラリとヘッダファイルを
 
 %prep
 %setup -q
-%patch2 -p1 -b .glibc-open
-%patch4 -p1 -b .no-dox-date
-#%patch5 -p1 -b .softvolmute
-#%patch6 -p1 -b .clamprrfw
-#%patch7 -p1 -b .fixtype
-#%patch8 -p1 -b .fixreturnrrfw
-%patch10 -p1
+%patch0 -p1 -b .config
+%patch1 -p1 -b .glibc-open
 
 %build
-%configure --disable-python
-make %{?_smp_mflags}
+autoreconf -vif
+%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
  make doc
@@ -196,8 +203,26 @@ make %{?_smp_mflags}
 rm -rf %{buildroot}
 make install DESTDIR=$RPM_BUILD_ROOT
 
-rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
-rm -f $RPM_BUILD_ROOT/%{_libdir}/alsa-lib/smixer/*.la
+# We need the library to be available even before /usr might be mounted
+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
 rm -rf %{buildroot}
@@ -208,30 +233,35 @@ rm -rf %{buildroot}
 
 %files
 %defattr(-, root, root)
-%doc [A-Z][^a]* doc/R* doc/*.txt
-%{_libdir}/lib*.so.*
-%dir %{_libdir}/alsa-lib
-%{_libdir}/alsa-lib/smixer/*.so
-%{_datadir}/alsa/*
+%{!?_licensedir:%global license %%doc}
+%license COPYING
+%doc doc/asoundrc.txt modprobe-dist-oss.conf
+%config %{_sysconfdir}/asound.conf
+/%{_lib}/lib*.so.*
 %{_bindir}/aserver
+#dir %{_libdir}/alsa-lib
+#{_libdir}/alsa-lib/smixer/*.so
+%{_datadir}/alsa/
+/lib/modprobe.d/dist-*
 
 %files devel
 %defattr(-, root, root)
+%doc TODO
 %if %make_doc
   %doc doc/doxygen/html
 %endif
-%{_libdir}/lib*.so
-%{_includedir}/alsa
+%{_includedir}/alsa/
 %{_includedir}/sys/asoundlib.h
+%{_libdir}/libasound.so
 %{_libdir}/pkgconfig/alsa.pc
 %{_datadir}/aclocal/alsa.m4
 
 %if %{build_compat32}
 %files -n compat32-%{name}
 %defattr(-, root, root)
-%{_libdir}/lib*.so.*
-%dir %{_libdir}/alsa-lib
-%{_libdir}/alsa-lib/smixer/*.so
+/%{_lib}/lib*.so.*
+#dir %{_libdir}/alsa-lib
+#{_libdir}/alsa-lib/smixer/*.so
 
 %files -n compat32-%{name}-devel
 %defattr(-, root, root)
@@ -240,6 +270,9 @@ rm -rf %{buildroot}
 
 
 %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
 - new upstream release