1%define ver      @SND_LIB_VERSION@
2%define rel      1
3
4Summary: Advanced Linux Sound Architecture (ALSA) - Library
5Name: alsa-lib
6Version: %ver
7Release: %rel
8License: LGPL
9Group: System/Libraries
10Source: ftp://ftp.alsa-project.org/pub/lib/alsa-lib-%{ver}.tar.bz2
11BuildRoot: %{_tmppath}/%{name}-%{version}-root
12URL: http://www.alsa-project.org
13
14%description
15
16Advanced Linux Sound Architecture (ALSA) - Library
17
18%package -n alsa-lib-devel
19Summary: ALSA Libraries Development Files
20Group: Development/Libraries
21Requires: %{name} = %{version}-%{release}
22
23%description -n alsa-lib-devel
24Development files for building applications which use the ALSA libraries.
25
26%changelog
27* Sat Feb 22 2003 Ronny V. Vindenes <sublett@dc-s.com>
28- split alsa-lib into alsa-lib and alsa-lib-devel
29- changed which files are installed (now includes alsa.pc)
30- use standard rpm macros for build and install
31- changed BuildRoot from /var/tmp to %{_tmppath}
32
33* Tue Nov 20 2001 Jaroslav Kysela <perex@perex.cz>
34
35- changed BuildRoot from /tmp to /var/tmp
36- use the standard RPM macros for prefix and paths
37- added DESTDIR for make install
38
39* Sun Nov 11 2001 Miroslav Benes <mbenes@tenez.cz>
40
41- dangerous command "rpm -rf $RPM_BUILD_ROOT" checks $RPM_BUILD_ROOT variable
42- unset key "Docdir" - on some new systems are documentation in /usr/share/doc
43
44* Mon May 28 1998 Helge Jensen <slog@slog.dk>
45
46- Made SPEC file
47
48%prep
49%setup
50%build
51%configure
52make
53
54%install
55[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
56%makeinstall
57
58%clean
59[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
60
61%files
62%defattr(-, root, root)
63%{_bindir}/*
64%{_libdir}/*.so.*
65%{_datadir}/alsa
66%doc doc/*.txt
67
68%files -n alsa-lib-devel
69%defattr(-,root,root)
70%{_includedir}/alsa
71%{_includedir}/sys/*
72%{_libdir}/*.la
73%{_libdir}/*.so
74%{_datadir}/aclocal/*
75%{_libdir}/pkgconfig/*
76