Create and own ucm directory so alsaucm doesn't crash. Cleanup and modernise spec
This commit is contained in:
parent
f7e6294944
commit
1e107db66b
@ -1,23 +1,24 @@
|
|||||||
#define prever rc3
|
#define prever rc3
|
||||||
#define prever_dot .rc3
|
#define prever_dot .rc3
|
||||||
#define postver a
|
#define postver a
|
||||||
|
|
||||||
Summary: The Advanced Linux Sound Architecture (ALSA) library
|
Summary: The Advanced Linux Sound Architecture (ALSA) library
|
||||||
Name: alsa-lib
|
Name: alsa-lib
|
||||||
Version: 1.0.26
|
Version: 1.0.26
|
||||||
Release: 1%{?prever_dot}%{?dist}
|
Release: 2%{?prever_dot}%{?dist}
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}%{?postver}.tar.bz2
|
URL: http://www.alsa-project.org/
|
||||||
|
|
||||||
|
Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}%{?postver}.tar.bz2
|
||||||
Source10: asound.conf
|
Source10: asound.conf
|
||||||
Source11: modprobe-dist-alsa.conf
|
Source11: modprobe-dist-alsa.conf
|
||||||
Source12: modprobe-dist-oss.conf
|
Source12: modprobe-dist-oss.conf
|
||||||
Patch0: alsa-lib-1.0.24-config.patch
|
Patch0: alsa-lib-1.0.24-config.patch
|
||||||
Patch2: alsa-lib-1.0.14-glibc-open.patch
|
Patch2: alsa-lib-1.0.14-glibc-open.patch
|
||||||
Patch4: alsa-lib-1.0.16-no-dox-date.patch
|
Patch4: alsa-lib-1.0.16-no-dox-date.patch
|
||||||
URL: http://www.alsa-project.org/
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRequires: doxygen
|
||||||
BuildRequires: doxygen
|
|
||||||
Requires(post): /sbin/ldconfig, coreutils
|
Requires(post): /sbin/ldconfig, coreutils
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -28,9 +29,9 @@ This package includes the ALSA runtime libraries to simplify application
|
|||||||
programming and provide higher level functionality as well as support for
|
programming and provide higher level functionality as well as support for
|
||||||
the older OSS API, providing binary compatibility for most OSS programs.
|
the older OSS API, providing binary compatibility for most OSS programs.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files from the ALSA library
|
Summary: Development files from the ALSA library
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: pkgconfig
|
Requires: pkgconfig
|
||||||
|
|
||||||
@ -49,14 +50,15 @@ against the ALSA libraries and interfaces.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-aload --with-plugindir=%{_libdir}/alsa-lib --disable-alisp
|
%configure --disable-aload --with-plugindir=%{_libdir}/alsa-lib --disable-alisp
|
||||||
|
|
||||||
# Remove useless /usr/lib64 rpath on 64bit archs
|
# Remove useless /usr/lib64 rpath on 64bit archs
|
||||||
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
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
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
make %{?_smp_mflags}
|
|
||||||
|
make %{?_smp_mflags} V=1
|
||||||
make doc
|
make doc
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
|
||||||
make DESTDIR=%{buildroot} install
|
make DESTDIR=%{buildroot} install
|
||||||
|
|
||||||
# We need the library to be available even before /usr might be mounted
|
# We need the library to be available even before /usr might be mounted
|
||||||
@ -73,8 +75,11 @@ mkdir -p -m 755 %{buildroot}/lib/modprobe.d/
|
|||||||
install -p -m 644 %{SOURCE11} %{buildroot}/lib/modprobe.d/dist-alsa.conf
|
install -p -m 644 %{SOURCE11} %{buildroot}/lib/modprobe.d/dist-alsa.conf
|
||||||
install -p -m 644 %{SOURCE12} %{buildroot}/lib/modprobe.d/dist-oss.conf
|
install -p -m 644 %{SOURCE12} %{buildroot}/lib/modprobe.d/dist-oss.conf
|
||||||
|
|
||||||
%clean
|
# Create UCM directory
|
||||||
rm -rf %{buildroot}
|
mkdir -p %{buildroot}/%{_datadir}/alsa/ucm
|
||||||
|
|
||||||
|
#Remove libtool archives.
|
||||||
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -98,11 +103,14 @@ rm -rf %{buildroot}
|
|||||||
%{_includedir}/alsa/
|
%{_includedir}/alsa/
|
||||||
%{_includedir}/sys/asoundlib.h
|
%{_includedir}/sys/asoundlib.h
|
||||||
%{_libdir}/libasound.so
|
%{_libdir}/libasound.so
|
||||||
%exclude %{_libdir}/libasound.la
|
|
||||||
%{_libdir}/pkgconfig/alsa.pc
|
%{_libdir}/pkgconfig/alsa.pc
|
||||||
%{_datadir}/aclocal/alsa.m4
|
%{_datadir}/aclocal/alsa.m4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 3 2012 Peter Robinson <pbrobinson@fedoraproject.org> 1.0.26-2
|
||||||
|
- Create and own ucm directory so alsaucm doesn't crash.
|
||||||
|
- Cleanup and modernise spec
|
||||||
|
|
||||||
* Thu Sep 6 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.26-1
|
* Thu Sep 6 2012 Jaroslav Kysela <jkysela@redhat.com> - 1.0.26-1
|
||||||
- Updated to 1.0.26
|
- Updated to 1.0.26
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user