-
Notifications
You must be signed in to change notification settings - Fork 0
/
SFEamrwb.spec
80 lines (66 loc) · 1.65 KB
/
SFEamrwb.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
#
# spec file for package SFEamrwb
#
# includes module(s): amrwb
#
%include Solaris.inc
%define src_ver 7.0.0.1
%define src_name amrwb
%define src_url http://ftp.penguin.cz/pub/users/utx/amr
Name: SFEamrwb
Summary: 3GPP AMR-WB Floating-point Speech Codec
Version: %{src_ver}
Source: %{src_url}/%{src_name}-%{version}.tar.bz2
Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-700.zip
Patch1: amrwb-01-patch.diff
SUNW_BaseDir: %{_basedir}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
3GPP AMR-WB Floating-point Speech Codec
%package devel
Summary: %{summary} - development files
SUNW_BaseDir: %{_basedir}
%include default-depend.inc
Requires: %name
%prep
%setup -q -n %{src_name}-%version
cp %{SOURCE1} .
%patch1 -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
export CFLAGS="%optflags"
export LDFLAGS="%_ldflags"
libtoolize --copy --force
aclocal
autoconf -f
automake -a -f
./configure --prefix=%{_prefix} \
--bindir=%{_bindir} \
--libdir=%{_libdir} \
--includedir=%{_includedir} \
--mandir=%{_mandir} \
--infodir=%{_infodir} \
--disable-static \
--enable-shared \
--disable-debug
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.*a
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, bin)
%{_bindir}
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/lib*.so*
%files devel
%defattr (-, root, bin)
%{_includedir}
%changelog
* Fri Aug 3 2007 - dougs@truemail.co.th
- Initial spec