-
Notifications
You must be signed in to change notification settings - Fork 0
/
SFEalsa-utils.spec
86 lines (75 loc) · 1.88 KB
/
SFEalsa-utils.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
#
# spec file for package SFEalsa-utils
#
# includes module(s): alsa-utils
#
%include Solaris.inc
Name: SFEalsa-utils
Summary: alsa-utils
Version: 1.0.14
Source: ftp://ftp.alsa-project.org/pub/utils/alsa-utils-%{version}.tar.bz2
Patch1: alsa-utils-01-endian.diff
Patch2: alsa-utils-02-configure.diff
SUNW_BaseDir: %{_basedir}
SUNW_Copyright: %{name}.copyright
Group: Audio
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc
BuildRequires: SFEalsa-lib-devel
Requires: SFEalsa-lib
%prep
%setup -q -n alsa-utils-%version
%patch1 -p1
%patch2 -p1
%build
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
if test "x$CPUS" = "x" -o $CPUS = 0; then
CPUS=1
fi
CC=/usr/sfw/bin/gcc
export CPPFLAGS="-D_POSIX_SOURCE -D__EXTENSIONS__ -D_XPG4_2"
%if %debug_build
export CFLAGS="-g"
dbgopt=-enable-debug
%else
export CFLAGS="-O4"
dbgopt=-disable-debug
%endif
export LDFLAGS="%_ldflags"
libtoolize -f -c
aclocal
autoheader
automake -f -a
autoconf -f
./configure --prefix=%{_prefix} \
--sbindir=%{_sbindir} \
--bindir=%{_bindir} \
--datadir=%{_datadir} \
--mandir=%{_mandir} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
--sysconfdir=%{_sysconfdir} \
--enable-shared \
--disable-static \
--disable-alsamixer
make -j$CPUS
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, bin)
%{_bindir}
%{_sbindir}
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/alsa
%{_datadir}/sounds
%{_mandir}
%changelog
* Tue Oct 21 2008 - Pradhap Devarajan <pradhap (at) gmail.com>
- Fix comments
* Fri Aug 15 2008 - glynn.foster@sun.com
- Add license and grouping
* Sat Aug 11 2007 - dougs@truemail.co.th
- Initial version