/[packages]/cauldron/alsa-oss/current/SPECS/alsa-oss.spec
ViewVC logotype

Contents of /cauldron/alsa-oss/current/SPECS/alsa-oss.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3267 - (show annotations) (download)
Sun Jan 9 16:33:18 2011 UTC (13 years, 3 months ago) by ahmad
File size: 3646 byte(s)
- clean spec and drop conflicts
1 %define beta 0
2 %define name alsa-oss
3 %define version 1.0.17
4
5 %define lib_major 0
6 %define pre rc4
7
8 %define lib_name %mklibname %name %lib_major
9 %define develname %mklibname -d %name
10 %if %beta
11 %define fname %name-%version%pre
12 %else
13 %define fname %name-%version
14 %endif
15
16 Summary: Advanced Linux Sound Architecture (ALSA) library
17 Name: %name
18 Version: %version
19 %if %beta
20 Release: %mkrel 0.%{pre}
21 %else
22 Release: %mkrel 6
23 %endif
24 Epoch: 1
25 Source0: ftp://ftp.alsa-project.org/pub/oss-lib/%fname.tar.bz2
26 Patch0: alsa-oss-1.0.12-aoss.patch
27 License: GPL
28 Url: http://www.alsa-project.org/
29 BuildRoot: %_tmppath/%name-%version-root
30 Group: Sound
31 Requires: kernel >= 2.4.18
32 BuildRequires: doxygen libalsa-devel > 1.0.5
33
34 %description
35 Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
36 supports quite a large range of ISA and PCI cards.
37 It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
38 To use the features of alsa, one can either use:
39 - the old OSS api
40 - the new ALSA api that provides many enhanced features.
41
42 Using the ALSA api requires to use the ALSA library.
43 This library provides oss compatibility
44
45 %package -n %{lib_name}
46 Summary: Advanced Linux Sound Architecture (ALSA) library
47 Group: System/Libraries
48 Provides: %name
49 Provides: lib%name = %version-%release
50
51 %description -n %{lib_name}
52 Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
53 supports quite a large range of ISA and PCI cards.
54 It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
55 To use the features of alsa, one can either use:
56 - the old OSS api
57 - the new ALSA api that provides many enhanced features.
58
59 Using the ALSA api requires to use the ALSA library.
60 This library provides oss compatibility
61
62 %package -n %develname
63 Summary: Development files for Advanced Linux Sound Architecture (ALSA)
64 Group: Development/C
65 Requires: %lib_name = %epoch:%version
66 Obsoletes: %{mklibname alsa-oss 1}-devel
67 Provides: %{mklibname alsa-oss 1}-devel = %version-%release
68 Provides: lib%name-devel = %version-%release, %name-devel = %version-%release
69
70 %description -n %develname
71 Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
72 supports quite a large range of ISA and PCI cards.
73 It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
74 To use the features of alsa, one can either use:
75 - the old OSS api
76 - the new ALSA api that provides many enhanced features.
77
78 This package contains files needed in order to develop an application
79 that made use of ALSA.
80
81 %package -n aoss
82 Summary: Wrapper script to ease ALSA-OSS compatibility library usage
83 Group: Development/C
84 Requires: %lib_name = %epoch:%version
85
86 %description -n aoss
87 aoss is a simple wrapper script which facilitates the use
88 of the ALSA OSS compatibility library.
89 It just sets the appropriate LD_PRELOAD path and then runs the command.
90
91 This is useful in cases where routing settings (which can
92 be made in your .asoundrc file) need to be applied to commands that use the
93 OSS API.
94
95
96 %prep
97 %setup -q -n %fname
98 %patch0 -p1
99
100 %build
101 autoreconf -fiv
102 %configure2_5x
103 make CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="%ldflags -ldl"
104
105 %install
106 mkdir -p %{buildroot}%_includedir/sys
107 mkdir -p %{buildroot}%_libdir
108 %makeinstall_std
109 rm -f %{buildroot}%_libdir/libaoss.a
110
111 %clean
112 rm -rf %{buildroot}
113
114 %files -n %lib_name
115 %defattr(-, root, root)
116 %doc COPYING
117 %_libdir/*.so.%{lib_major}*
118
119 %files -n %develname
120 %defattr(-,root,root)
121 %doc COPYING
122 %_libdir/*.a
123 %_libdir/*.la
124 %_libdir/*.so
125 %_includedir/oss-redir.h
126
127 %files -n aoss
128 %defattr(-,root,root)
129 %doc COPYING
130 %_bindir/aoss
131 %_mandir/man1/aoss.*

  ViewVC Help
Powered by ViewVC 1.1.30