Accepting request 82975 from home:jengelh:bl-a

- Remove redundant tags/sections from specfile as discussed on opensuse-packaging
- Use %_smp_mflags for parallel build

OBS-URL: https://build.opensuse.org/request/show/82975
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=37
This commit is contained in:
Ismail Dönmez 2011-09-18 11:06:22 +00:00 committed by Git OBS Bridge
parent aacdf98c8c
commit 35ddd17fa5
2 changed files with 9 additions and 15 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 17 10:58:04 UTC 2011 - jengelh@medozas.de
- Remove redundant tags/sections from specfile
- Use %_smp_mflags for parallel build
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 28 15:53:16 CEST 2011 - tiwai@suse.de Tue Jun 28 15:53:16 CEST 2011 - tiwai@suse.de

View File

@ -15,7 +15,6 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
%if %suse_version > 1130 %if %suse_version > 1130
%define use_systemd 1 %define use_systemd 1
@ -32,11 +31,10 @@ License: GPLv2+
Group: Productivity/Multimedia/Sound/Players Group: Productivity/Multimedia/Sound/Players
Provides: alsa-conf Provides: alsa-conf
Requires: dialog pciutils Requires: dialog pciutils
AutoReqProv: on
Summary: Advanced Linux Sound Architecture Utilities Summary: Advanced Linux Sound Architecture Utilities
Version: 1.0.24.2 Version: 1.0.24.2
Release: 8 Release: 8
Source: ftp://ftp.alsa-project.org/pub/util/alsa-utils-%{package_version}.tar.bz2 Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{package_version}.tar.bz2
# Patch: alsa-utils-git-fixes.diff # Patch: alsa-utils-git-fixes.diff
Patch1: 0001-alsamixer-fix-display-of-active-inactive-controls.patch Patch1: 0001-alsamixer-fix-display-of-active-inactive-controls.patch
Patch2: 0002-alsaloop-libsamplerate-requires-specific-formats-for.patch Patch2: 0002-alsaloop-libsamplerate-requires-specific-formats-for.patch
@ -64,13 +62,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
This package contains utility programs supporting ALSA, Advanced Linux This package contains utility programs supporting ALSA, Advanced Linux
Sound Architecture. Sound Architecture.
Authors:
--------
Jaroslav Kysela <perex@perex.cz>
Takashi Iwai <tiwai@suse.de>
%prep %prep
%setup -q -n %{name}-%{package_version} %setup -q -n %{name}-%{package_version}
# fix stupid automake's automatic action # fix stupid automake's automatic action
@ -101,7 +92,7 @@ sed -i -e's/EXTRA_DIST= config.rpath /EXTRA_DIST=/' Makefile.am
%endif %endif
%build %build
export AUTOMAKE_JOBS=%{?jobs:%jobs} export AUTOMAKE_JOBS="%{?_smp_mflags}"
%if %suse_version < 1020 %if %suse_version < 1020
gettextize -f gettextize -f
%endif %endif
@ -117,7 +108,7 @@ opts="$opts --with-asound-state-dir=/etc"
opts="$opts --disable-xmlto" opts="$opts --disable-xmlto"
%endif %endif
%configure --with-curses=ncursesw $opts %configure --with-curses=ncursesw $opts
make %{?jobs:-j %jobs} make %{?_smp_mflags}
%install %install
%makeinstall %makeinstall
@ -129,9 +120,6 @@ ln -s alsa-restore.service $RPM_BUILD_ROOT/lib/systemd/system/alsasound.service
mkdir -p $RPM_BUILD_ROOT/var/lib/alsa mkdir -p $RPM_BUILD_ROOT/var/lib/alsa
%endif %endif
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-, root, root) %defattr(-, root, root)
%doc COPYING ChangeLog INSTALL README TODO %doc COPYING ChangeLog INSTALL README TODO