mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -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
|
Name: alsa-lib
|
||||||
Version: %ver
|
Version: %ver
|
||||||
Release: %rel
|
Release: %rel
|
||||||
Copyright: GPL
|
License: LGPL
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{ver}.tar.bz2
|
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
|
URL: http://www.alsa-project.org
|
||||||
Requires: alsa-driver
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
|
||||||
Advanced Linux Sound Architecture (ALSA) - Library
|
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
|
%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>
|
* Tue Nov 20 2001 Jaroslav Kysela <perex@suse.cz>
|
||||||
|
|
||||||
|
|
@ -36,31 +48,28 @@ Advanced Linux Sound Architecture (ALSA) - Library
|
||||||
%prep
|
%prep
|
||||||
%setup
|
%setup
|
||||||
%build
|
%build
|
||||||
|
%configure
|
||||||
./configure --prefix=%_prefix --mandir=%_mandir --datadir=%_datadir \
|
|
||||||
--includedir=%_includedir --libdir=%_libdir
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
%makeinstall
|
||||||
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
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root)
|
%defattr(-, root, root)
|
||||||
|
%{_bindir}/*
|
||||||
|
%{_libdir}/*.so.*
|
||||||
|
%{_datadir}/alsa
|
||||||
%doc doc/*.txt
|
%doc doc/*.txt
|
||||||
|
|
||||||
%_includedir/alsa/*.h
|
%files -n alsa-lib-devel
|
||||||
%_libdir/lib*
|
%defattr(-,root,root)
|
||||||
%_datadir/aclocal/alsa.m4
|
%{_includedir}/alsa
|
||||||
%_datadir/alsa/*
|
%{_includedir}/sys/*
|
||||||
%_prefix/bin/aserver
|
%{_libdir}/*.la
|
||||||
|
%{_libdir}/*.so
|
||||||
|
%{_datadir}/aclocal/*
|
||||||
|
%{_libdir}/pkgconfig/*
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue