base-specs/speex.spec
author yippi
Thu, 31 May 2012 20:16:52 +0000
changeset 22481 1ff6784d9b6f
parent 20384 6a50803f5a65
permissions -rw-r--r--
2012-05-31 Brian Cameron <[email protected]> * base-specs/shared-mime-info.spec: Bump to 1.0. * base-specs/nautilus.spec, base-specs/pulseaudio.spec, base-specs/gnome-settings-daemon.spec, specs/SUNWdconf.spec: Add patch comments. * base-specs/gnome-panel.spec: Add --disable-telepathy-glib so it does not build with this module we do not deliver.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     1
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     2
# spec file for package speex
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     3
#
12231
f75b5b1ad02f 2008-04-30 Brian Cameron <[email protected]>
yippi
parents: 11318
diff changeset
     4
# Copyright (c) 2008 Sun Microsystems, Inc.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     6
# package are under the same license as the package itself.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
     7
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16282
diff changeset
     8
%define owner yippi
11132
0183b8aba79a 2007-11-06 Brian Cameron <[email protected]>
yippi
parents: 9921
diff changeset
     9
# bugdb: https://trac.xiph.org/
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    10
#
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    11
Name:         speex
20083
450635fa0066 Synced Brian Cameron's relicensing changes for November release
davelam
parents: 17865
diff changeset
    12
License:      Xiph.org BSD-style, binaries also use some LGPL v2 code.
16282
ef6ce3e6a694 2009-08-14 Brian Cameron <[email protected]>
yippi
parents: 15745
diff changeset
    13
Group:        Libraries/Multimedia
14716
b69c380afa05 * base-specs/speex.spec: Bump to 1.2rc1.
jyu_mit
parents: 14571
diff changeset
    14
%define tarball_version 1.2rc1
15745
cc12b969d079 2009-05-11 Brian Cameron <[email protected]>
yippi
parents: 15165
diff changeset
    15
Version:      1.2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    16
Release:      1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    17
Distribution: Java Desktop System
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 16522
diff changeset
    18
Vendor:       Xiph
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    19
Summary:      An open-source, patent-free speech codec
9921
882ae95b3ce6 2007-05-17 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    20
Source:       http://downloads.us.xiph.org/releases/%{name}/%{name}-%{tarball_version}.tar.gz
15165
edd399a101c3 * base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents: 14716
diff changeset
    21
# date:2009-02-19 type:branding owner:mattman
16282
ef6ce3e6a694 2009-08-14 Brian Cameron <[email protected]>
yippi
parents: 15745
diff changeset
    22
Patch1:       speex-01-manpages.diff
20384
6a50803f5a65 Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents: 20083
diff changeset
    23
# date:2010-11-15 type:branding owner:davelam
6a50803f5a65 Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents: 20083
diff changeset
    24
Patch2:       speex-02-visibility-hidden.diff
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
URL:          http://speex.org/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Docdir:       %{_docdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
Speex is a patent-free audio codec designed especially for voice (unlike 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Vorbis which targets general audio) signals and providing good narrowband 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
and wideband quality. This project aims to be complementary to the Vorbis
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
codec.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
%package devel
16282
ef6ce3e6a694 2009-08-14 Brian Cameron <[email protected]>
yippi
parents: 15745
diff changeset
    37
Summary:        Speex development files
ef6ce3e6a694 2009-08-14 Brian Cameron <[email protected]>
yippi
parents: 15745
diff changeset
    38
Group:          Development/Libraries
ef6ce3e6a694 2009-08-14 Brian Cameron <[email protected]>
yippi
parents: 15745
diff changeset
    39
Requires:       %{name} = %{version}
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
Speex development files.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
%prep
9921
882ae95b3ce6 2007-05-17 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
    45
%setup -q -n %{name}-%{tarball_version}
15165
edd399a101c3 * base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents: 14716
diff changeset
    46
%patch1 -p1
20384
6a50803f5a65 Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents: 20083
diff changeset
    47
%patch2 -p1
15165
edd399a101c3 * base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents: 14716
diff changeset
    48
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
  CPUS=`getconf _NPROCESSORS_ONLN`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    59
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    60
16522
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
    61
export LDFLAGS="%_ldflags"
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
    62
export CFLAGS="%optflags"
20384
6a50803f5a65 Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents: 20083
diff changeset
    63
6a50803f5a65 Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents: 20083
diff changeset
    64
aclocal $ACLOCAL_FLAGS
6a50803f5a65 Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents: 20083
diff changeset
    65
automake -a -c -f
6a50803f5a65 Fixed invalid ld option "-fvisibility=hidden" issue to make it work with ss12u1.
davelam
parents: 20083
diff changeset
    66
autoconf
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
./configure --enable-shared     \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
            --enable-static     \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
            --prefix=%{_prefix} \
16522
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
    70
            --libdir=%{_libdir} \
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
    71
            --bindir=%{_bindir} \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    72
            --sysconfdir=%{_sysconfdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    73
            --mandir=%{_mandir}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
make
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    76
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    77
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
make DESTDIR=$RPM_BUILD_ROOT install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    80
#Clean up unpackaged files
16522
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
    81
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
    82
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    83
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    84
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
%post -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
%postun -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    90
%files
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    91
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    92
%doc COPYING AUTHORS ChangeLog NEWS README
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%{_datadir}/doc/*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
%{_datadir}/man/man1/speexenc.1*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
%{_datadir}/man/man1/speexdec.1*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%attr(755,root,root) %{_bindir}/speex*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%attr(755,root,root) %{_libdir}/libspeex*.so*
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    98
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    99
%files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   100
%defattr(-,root,root)
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   101
%{_includedir}/speex/speex*.h
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   102
%{_datadir}/aclocal/speex.m4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   103
%{_libdir}/pkgconfig/speex.pc
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   104
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   105
%changelog
16522
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
   106
* Thu Sep 10 2009 - [email protected]
f415ad2143e1 2009-09-10 Ke Wang <[email protected]>
wangke
parents: 16434
diff changeset
   107
- Add 64-bit support
15165
edd399a101c3 * base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents: 14716
diff changeset
   108
* Thu Feb 19 2009 - [email protected]
edd399a101c3 * base-specs/speex.spec : Add man page patch for attributes and arc comment
mattman
parents: 14716
diff changeset
   109
- Add manpages patch for attributes and ARC comment
14716
b69c380afa05 * base-specs/speex.spec: Bump to 1.2rc1.
jyu_mit
parents: 14571
diff changeset
   110
* Fri Dec 05 2008 - [email protected]
b69c380afa05 * base-specs/speex.spec: Bump to 1.2rc1.
jyu_mit
parents: 14571
diff changeset
   111
- Bump to 1.2rc1
12231
f75b5b1ad02f 2008-04-30 Brian Cameron <[email protected]>
yippi
parents: 11318
diff changeset
   112
* Tue Apr 29 2008 - [email protected]
f75b5b1ad02f 2008-04-30 Brian Cameron <[email protected]>
yippi
parents: 11318
diff changeset
   113
- Bump to 1.2beta3.2
11318
c8b979a327b4 2007-12-12 Brian Cameron <[email protected]>
yippi
parents: 11149
diff changeset
   114
* Tue Dec 11 2007 - [email protected]
c8b979a327b4 2007-12-12 Brian Cameron <[email protected]>
yippi
parents: 11149
diff changeset
   115
- Bump to 1.2beta3.
11149
dc72262d4ebe 2007-11-07 Brian Cameron <[email protected]>
yippi
parents: 11132
diff changeset
   116
* Wed Nov 07 2007 - [email protected]
dc72262d4ebe 2007-11-07 Brian Cameron <[email protected]>
yippi
parents: 11132
diff changeset
   117
- Bump to 1.2beta2.
9921
882ae95b3ce6 2007-05-17 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   118
* Thu May 17 2007 - [email protected]
882ae95b3ce6 2007-05-17 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   119
- Use a numeric version number. 'beta' is not permitted by WOS integration
882ae95b3ce6 2007-05-17 Damien Carbery <[email protected]>
dcarbery
parents: 9397
diff changeset
   120
  scripts.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
* Fri Dec 01 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
- Bump to 1.2beta1. Remove obsolete patch, 01-empty-struct.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
* Thu Jul 20 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- Bump to 1.1.12. Add patch, 01-empty-struct, to fix empty struct build error.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
* Wed Jan 04 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
- Single threaded make because of timing issues.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
* Tue Jan 03 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- Bump to 1.1.11.1.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
* Tue Aug 23 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
- Remove an incorrect line from %files.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
* Mon Aug 16 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
- Bump to 1.1.10.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
- Change copyright to license
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
* Tue Jul 26 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
- Fix defattr for files and files devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
* Thu Jul 21 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
- Remove *.a and *.la files. Fix typo. Add proper configure arguments
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
* Wed Jul 20 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   140
- Initial spec file checkin