mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-28 05:40:23 -04:00
clean up the spec file by Ronny V. Vindenes.
This commit is contained in:
parent
b80ccd1709
commit
4894758be0
1 changed files with 30 additions and 21 deletions
|
|
@ -5,18 +5,30 @@ Summary: Advanced Linux Sound Architecture (ALSA) - Library
|
|||
Name: alsa-lib
|
||||
Version: %ver
|
||||
Release: %rel
|
||||
Copyright: GPL
|
||||
License: LGPL
|
||||
Group: System/Libraries
|
||||
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{ver}.tar.bz2
|
||||
BuildRoot: /var/tmp/alsa-lib-%{ver}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
URL: http://www.alsa-project.org
|
||||
Requires: alsa-driver
|
||||
|
||||
%description
|
||||
|
||||
Advanced Linux Sound Architecture (ALSA) - Library
|
||||
|
||||
%package -n alsa-lib-devel
|
||||
Summary: ALSA Libraries Development Files
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description -n alsa-lib-devel
|
||||
Development files for building applications which use the ALSA libraries.
|
||||
|
||||
%changelog
|
||||
* Sat Feb 22 2003 Ronny V. Vindenes <sublett@dc-s.com>
|
||||
- split alsa-lib into alsa-lib and alsa-lib-devel
|
||||
- changed which files are installed (now includes alsa.pc)
|
||||
- use standard rpm macros for build and install
|
||||
- changed BuildRoot from /var/tmp to %{_tmppath}
|
||||
|
||||
* Tue Nov 20 2001 Jaroslav Kysela <perex@suse.cz>
|
||||
|
||||
|
|
@ -36,31 +48,28 @@ Advanced Linux Sound Architecture (ALSA) - Library
|
|||
%prep
|
||||
%setup
|
||||
%build
|
||||
|
||||
./configure --prefix=%_prefix --mandir=%_mandir --datadir=%_datadir \
|
||||
--includedir=%_includedir --libdir=%_libdir
|
||||
%configure
|
||||
make
|
||||
|
||||
%install
|
||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/%_includedir/alsa
|
||||
mkdir -p $RPM_BUILD_ROOT/%_datadir/alsa
|
||||
mkdir -p $RPM_BUILD_ROOT/%_datadir/aclocal
|
||||
mkdir -p $RPM_BUILD_ROOT/%_libdir
|
||||
|
||||
make DESTDIR="$RPM_BUILD_ROOT" install
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||
%makeinstall
|
||||
|
||||
%clean
|
||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
|
||||
%{_bindir}/*
|
||||
%{_libdir}/*.so.*
|
||||
%{_datadir}/alsa
|
||||
%doc doc/*.txt
|
||||
|
||||
%_includedir/alsa/*.h
|
||||
%_libdir/lib*
|
||||
%_datadir/aclocal/alsa.m4
|
||||
%_datadir/alsa/*
|
||||
%_prefix/bin/aserver
|
||||
%files -n alsa-lib-devel
|
||||
%defattr(-,root,root)
|
||||
%{_includedir}/alsa
|
||||
%{_includedir}/sys/*
|
||||
%{_libdir}/*.la
|
||||
%{_libdir}/*.so
|
||||
%{_datadir}/aclocal/*
|
||||
%{_libdir}/pkgconfig/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue