-
Notifications
You must be signed in to change notification settings - Fork 32
/
libao.spec
153 lines (121 loc) · 4.37 KB
/
libao.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
Name: libao
Version: 0.8.6
Release: 1
Summary: Cross-Platform Audio Output Library
Group: System Environment/Libraries
License: GPL
URL: http://www.xiph.org/
Vendor: Xiph.org Foundation <[email protected]>
Source: http://www.xiph.org/ao/src/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-root
# glibc-devel is needed for oss plug-in build
BuildRequires: glibc-devel
%{!?_without_esd:BuildRequires: esound-devel >= 0.2.8}
%{!?_without_arts:BuildRequires: arts-devel}
%{?_with_alsa:BuildRequires: alsa-lib-devel >= 0.9.0}
# FIXME: perl is needed for the dirty configure flag trick, which should be
# solved differently
BuildRequires: perl
%description
Libao is a cross-platform audio output library. It currently supports
ESD, aRts, ALSA, OSS, *BSD and Solaris.
This package provides plug-ins for OSS, ESD, aRts, and ALSA (0.9). You will
need to install the supporting libraries for any plug-ins you want to use
in order for them to work.
Available rpmbuild rebuild options :
--with : alsa
--without : esd arts
%package devel
Summary: Cross Platform Audio Output Library Development
Group: Development/Libraries
Requires: libao = %{version}
%description devel
The libao-devel package contains the header files, libraries and
documentation needed to develop applications with libao.
%prep
%setup -q -n %{name}-%{version}
perl -p -i -e "s/-O20/$RPM_OPT_FLAGS/" configure
perl -p -i -e "s/-ffast-math//" configure
%build
%configure \
--disable-nas \
--disable-alsa \
%{?_with_alsa:--enable-alsa09} %{!?_with_alsa:--disable-alsa09} \
%{?_without_esd:--disable-esd} \
%{?_without_arts:--disable-arts}
make
%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
#FIXME: makeinstall breaks the plugin install location; they end up in /usr/lib
make DESTDIR=$RPM_BUILD_ROOT install
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun
if [ "$1" -ge "1" ]; then
/sbin/ldconfig
fi
%files
%defattr(-,root,root)
%doc AUTHORS CHANGES COPYING README
%{_libdir}/libao.so.*
%{_libdir}/ao/*/liboss.so
%{!?_without_esd:%{_libdir}/ao/*/libesd.so}
%{!?_without_arts:%{_libdir}/ao/*/libarts.so}
%{?_with_alsa:%{_libdir}/ao/*/libalsa09.so}
%{_mandir}/man5/*
%files devel
%defattr(-,root,root)
%doc doc/*
%{_includedir}/ao
%{_libdir}/libao.so
%{_libdir}/libao.la
%{_libdir}/ao/*/liboss.la
%{!?_without_esd:%{_libdir}/ao/*/libesd.la}
%{!?_without_arts:%{_libdir}/ao/*/libarts.la}
%{?_with_alsa:%{_libdir}/ao/*/libalsa09.la}
%{_datadir}/aclocal/ao.m4
%{_libdir}/pkgconfig/ao.pc
%changelog
* Mon Mar 25 2004 Gary Peck <[email protected]> 0.8.5-3
- Set default user and permissions on the devel package
* Mon Mar 22 2004 Gary Peck <[email protected]> 0.8.5-2
- Update source URL
- Add support for "--with alsa", "--without esd" and "--without arts"
- Make configure more explicit on what plugins to enable
* Fri Mar 11 2004 Stan Seibert <[email protected]> 0.8.5-1
- Version bump
* Fri Oct 5 2003 Stan Seibert <[email protected]> 0.8.4-1
- Remove alsa libraries from RPM since RedHat doesn't ship with ALSA
ALSA users will need to recompile from source.
- Add ao.pc to -devel
- Make the devel libraries .la instead of .a
* Fri Jul 19 2002 Michael Smith <[email protected]> 0.8.3-2
- re-disable static libraries (they do not work - at all)
* Sun Jul 14 2002 Thomas Vander Stichele <[email protected]> 0.8.3-1
- new release for vorbis 1.0
- small cleanups
- added better BuildRequires
- added alsa-lib-devel 0.9.0 buildrequires
- added static libraries to -devel
- added info about plug-ins to description
- listed plug-in so files explicitly to ensure package build fails when one
is missing
* Mon Jan 7 2002 Peter Jones <[email protected]> 0.8.2-4
- minor cleanups, even closer to RH .spec
- arts-devel needs a build dependancy to be sure the
plugin will get built
* Wed Jan 2 2002 Peter Jones <[email protected]> 0.8.2-3
- fix libao.so's provide
* Wed Jan 2 2002 Peter Jones <[email protected]> 0.8.2-2
- merge RH and Xiphophorous packages
* Tue Dec 18 2001 Jack Moffitt <[email protected]>
- Update for 0.8.2 release.
* Sun Oct 07 2001 Jack Moffitt <[email protected]>
- supports configurable prefixes
* Sun Oct 07 2001 Stan Seibert <[email protected]>
- devel packages look for correct documentation files
- added ao/plugin.h include file to devel package
- updated package description
* Sun Sep 03 2000 Jack Moffitt <[email protected]>
- initial spec file created