--- alsa-lib.spec.orig 2007-08-23 12:48:54.000000000 +0200 +++ alsa-lib.spec 2007-08-31 14:12:30.000000000 +0200 @@ -1,19 +1,18 @@ -%define version_main 1.0.14 -%define postver a +#define prever -Summary: The Advanced Linux Sound Architecture (ALSA) library. +Summary: The Advanced Linux Sound Architecture (ALSA) library Name: alsa-lib -Version: %{version_main} -Release: 3%{?dist} -License: LGPL +Version: 1.0.14a +Release: 4%{?dist} +License: LGPLv2+ Group: System Environment/Libraries -Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version_main}%{?prever}%{?postver}.tar.bz2 +Source: ftp://ftp.alsa-project.org/pub/lib/%{name}-%{version}%{?prever}.tar.bz2 Patch0: alsa-lib-1.0.14rc1-config.patch Patch2: alsa-lib-1.0.14-glibc-open.patch -URL: http://www.alsa-project.org/ -BuildRoot: %{_tmppath}/%{name}-%{version_main}-root +URL: http://www.alsa-project.org/ +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: doxygen -Prereq: /sbin/ldconfig, coreutils +Requires(post): /sbin/ldconfig, coreutils %description The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI @@ -24,10 +23,11 @@ programming and provide higher level fun the older OSS API, providing binary compatibility for most OSS programs. %package devel -Summary: Static libraries and header files from the ALSA library. +Summary: Development files from the ALSA library Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} Requires: pkgconfig + %description devel The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI functionality to the Linux operating system. @@ -36,15 +36,15 @@ This package includes the ALSA developme against the ALSA libraries and interfaces. %prep -%setup -q -n %{name}-%{version_main}%{?prever}%{?postver} +%setup -q -n %{name}-%{version}%{?prever} %patch0 -p1 -b .config %patch2 -p1 -b .glibc-open %build -%configure \ - CFLAGS="$RPM_OPT_FLAGS"\ - --enable-static=yes \ - --datadir=/etc +%configure --with-configdir=%{_sysconfdir}/alsa +# 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} make doc @@ -52,14 +52,11 @@ make doc rm -rf %{buildroot} make DESTDIR=%{buildroot} install -mkdir -p %{buildroot}%{_datadir} +# 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 -mv %{buildroot}/etc/aclocal %{buildroot}%{_datadir} - %clean rm -rf %{buildroot} @@ -71,28 +68,34 @@ rm -rf %{buildroot} ln -snf ../../etc/alsa %{_datadir}/alsa %files -%defattr(-, root, root) +%defattr(-,root,root,-) %doc COPYING ChangeLog TODO doc/asoundrc.txt -%{_bindir}/aserver +%config %{_sysconfdir}/alsa/ /%{_lib}/libasound.so.* -%{_libdir}/alsa-lib/smixer/* -%{_sysconfdir}/alsa -%config %{_sysconfdir}/alsa/alsa.conf -%dir %{_libdir}/alsa-lib -%dir %{_libdir}/alsa-lib/smixer +%{_bindir}/aserver +%{_libdir}/alsa-lib/ %files devel -%defattr(-, root, root) -%doc doc/doxygen -%{_includedir}/alsa +%defattr(-,root,root,-) +%doc doc/doxygen/ +%{_includedir}/alsa/ %{_includedir}/sys/asoundlib.h %{_libdir}/libasound.so -%{_libdir}/libasound.a %exclude %{_libdir}/libasound.la %{_libdir}/pkgconfig/alsa.pc %{_datadir}/aclocal/alsa.m4 %changelog +* Fri Aug 31 2007 Matthias Saou 1.0.14-4 +- Update License field. +- Use configdir instead of sysconfdir hacks (cleaner). +- Remove redundant optflags overriding. +- Switch to using main "version", and merge "postver" since this is the right + way of doing things (see NamingGuidelines#NonNumericRelease). +- Remove static library. +- Mark all of /etc/alsa as config, but not "noreplace". +- Remove useless rpath on 64bit archs. + * Thu Aug 16 2007 Martin Stransky 1.0.14-3 - updated to 1.0.14a