speex.spec
author dermotm
Mon, 24 Jul 2006 12:30:39 +0000
branchgnome-2-10
changeset 19949 94f49bf19351
parent 19693 ecfa915b40d9
permissions -rw-r--r--
access control test #4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     1
#
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
     2
# spec file for package speex
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     3
#
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19639
diff changeset
     4
# Copyright (c) 2005 Sun Microsystems, Inc.
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     6
# package are under the same license as the package itself.
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     7
#
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     8
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     9
Name:         speex
19639
fa7dfc28b738 2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19615
diff changeset
    10
License:      Xiph
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    11
Group:        Application/Devel
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    12
Version:      1.0.5
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    13
Release:      1
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19639
diff changeset
    14
Distribution: Java Desktop System
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    15
Vendor:       Sun Microsystems, Inc.
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    16
Summary:      An open-source, patent-free speech codec
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    17
Source:       http://www.speex.org/download/%{name}-%{version}.tar.gz
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    18
URL:          http://www.speex.org/
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    19
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    20
Docdir:       %{_docdir}/%{name}
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    21
Autoreqprov:  on
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    22
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    23
%description
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    24
Speex is a patent-free audio codec designed especially for voice (unlike 
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    25
Vorbis which targets general audio) signals and providing good narrowband 
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    26
and wideband quality. This project aims to be complementary to the Vorbis
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    27
codec.
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    28
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    29
%package devel
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    30
Summary:	Speex development files
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    31
Group:		Development/Libraries
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    32
Requires:	%{name} = %{version}
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    33
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    34
%description devel
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    35
Speex development files.
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    36
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    37
%prep
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    38
%setup -q
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    39
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    40
%build
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    41
%ifos linux
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    42
if [ -x /usr/bin/getconf ]; then
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    43
  CPUS=`getconf _NPROCESSORS_ONLN`
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    44
fi
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    45
%else
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    46
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    47
%endif
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    48
if test "x$CPUS" = "x" -o $CPUS = 0; then
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    49
  CPUS=1
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    50
fi
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    51
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    52
CFLAGS="$RPM_OPT_FLAGS" \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    53
./configure --enable-shared     \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    54
            --enable-static     \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    55
            --prefix=%{_prefix} \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    56
            --sysconfdir=%{_sysconfdir} \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    57
            --mandir=%{_mandir}
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    58
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    59
make -j $CPUS
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    60
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    61
%install
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    62
make DESTDIR=$RPM_BUILD_ROOT install
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    63
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    64
#Clean up unpackaged files
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    65
rm $RPM_BUILD_ROOT%{_libdir}/*.a
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    66
rm $RPM_BUILD_ROOT%{_libdir}/*la
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    67
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    68
%clean
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    69
rm -rf $RPM_BUILD_ROOT
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    70
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    71
%post -p /sbin/ldconfig
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    72
%postun -p /sbin/ldconfig
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    73
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    74
%files
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    75
%defattr(-,root,root)
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    76
%doc COPYING AUTHORS ChangeLog NEWS README
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    77
%{_datadir}/doc/*
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    78
%{_datadir}/man/man1/speexenc.1*
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    79
%{_datadir}/man/man1/speexdec.1*
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    80
%attr(755,root,root) %{_bindir}/speex*
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    81
%attr(755,root,root) %{_libdir}/libspeex*.so*
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    82
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    83
%files devel
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    84
%defattr(-,root,root)
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    85
%{_includedir}/speex*.h
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    86
%{_includedir}/speex/speex*.h
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    87
%{_datadir}/aclocal/speex.m4
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    88
%{_libdir}/pkgconfig/speex.pc
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    89
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    90
%changelog
19639
fa7dfc28b738 2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19615
diff changeset
    91
* Tue Aug 02 2005 - [email protected]
fa7dfc28b738 2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19615
diff changeset
    92
- Change copyright to license
fa7dfc28b738 2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19615
diff changeset
    93
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    94
* Tue Jul 26 2005 - [email protected]
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    95
- Fix defattr for files and files devel
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    96
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    97
* Thu Jul 21 2005 - [email protected]
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    98
- Remove *.a and *.la files. Fix typo. Add proper configure arguments
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19603
diff changeset
    99
19603
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
   100
* Wed Jul 20 2005 - [email protected]
ad20a2e09490 2005-07-20 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
   101
- Initial spec file checkin