base-specs/libtheora.spec
author Jon Tibble <meths@btinternet.com>
Sat, 06 Oct 2012 16:11:50 +0100
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 20083 450635fa0066
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
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 libtheora
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: 11147
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
#
17988
b505f1fb372c 2010-05-13 Brian Cameron <[email protected]>
yippi
parents: 17865
diff changeset
     8
%define owner yippi
11132
0183b8aba79a 2007-11-06 Brian Cameron <[email protected]>
yippi
parents: 11122
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
#
16431
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16365
diff changeset
    11
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16365
diff changeset
    12
%define OSR 4198:1.0
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16365
diff changeset
    13
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    14
Name:         libtheora
20083
450635fa0066 Synced Brian Cameron's relicensing changes for November release
davelam
parents: 17988
diff changeset
    15
License:      Xiph.org BSD-style, binaries use some LGPL v2.1
16282
ef6ce3e6a694 2009-08-14 Brian Cameron <[email protected]>
yippi
parents: 14693
diff changeset
    16
Group:        Libraries/Multimedia
16796
73be3a71fc4d 2009-10-16 Brian Cameron <[email protected]>
yippi
parents: 16543
diff changeset
    17
Version:      1.1.1
73be3a71fc4d 2009-10-16 Brian Cameron <[email protected]>
yippi
parents: 16543
diff changeset
    18
%define tarball_version 1.1.1
12965
49530f31c923 downgrade libtheora to 1.0alpha7, due to bug 6722237
jerrytan
parents: 12251
diff changeset
    19
Release:      2
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    20
Distribution: Java Desktop System
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 16805
diff changeset
    21
Vendor:       Xiph
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    22
Summary:      The Theora Video Compression Codec.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    23
Source:       http://downloads.xiph.org/releases/theora/%{name}-%{tarball_version}.tar.gz
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    24
URL:          http://www.theora.org/
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    25
BuildRoot:    %{_tmppath}/%{name}-%{tarball_version}-build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    26
Docdir:       %{_docdir}/%{name}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    27
Autoreqprov:  on
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    28
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    29
BuildRequires:  libogg-devel >= 1.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    30
BuildRequires:  libvorbis-devel >= 1.0.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    31
BuildRequires:  SDL-devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    32
Requires:       libvorbis >= 1.0.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    33
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    34
%description
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    35
Theora is Xiph.Org's first publicly released video codec, intended
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    36
for use within the Ogg's project's Ogg multimedia streaming system.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    37
Theora is derived directly from On2's VP3 codec; Currently the two are
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    38
nearly identical, varying only in encapsulating decoder tables in the
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    39
bitstream headers, but Theora will make use of this extra freedom
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    40
in the future to improve over what is possible with VP3.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    41
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    42
%package devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    43
Summary:        Development tools for Theora applications.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    44
Group:          Development/Libraries
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    45
Requires:       %{name} = %{version}-%{release}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    46
Requires:       libogg-devel >= 1.1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    47
 
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    48
%description devel
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    49
The libtheora-devel package contains the header files and documentation
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    50
needed to develop applications with Ogg Theora.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    51
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    52
%prep
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    53
%setup -q -n %{name}-%{tarball_version}
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    54
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    55
%build
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    56
%ifos linux
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    57
if [ -x /usr/bin/getconf ]; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    58
  CPUS=`getconf _NPROCESSORS_ONLN`
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
%else
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    61
  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
    62
%endif
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    63
if test "x$CPUS" = "x" -o $CPUS = 0; then
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    64
  CPUS=1
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    65
fi
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    66
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    67
libtoolize --force
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    68
aclocal $ACLOCAL_FLAGS -I ./m4
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    69
autoconf
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    70
automake -a -c -f
16805
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
    71
export CFLAGS="%optflags"
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
    72
export LDFLAGS="%_ldflags"
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
    73
#CFLAGS="$RPM_OPT_FLAGS" \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    74
./configure --enable-shared     \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    75
            --prefix=%{_prefix} \
16805
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
    76
            --libdir=%{_libdir}  \
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
    77
            --bindir=%{_bindir} \
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    78
            --sysconfdir=%{_sysconfdir} \
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    79
            --mandir=%{_mandir} \
16365
6e802c0bdb9a fix build error
jerrytan
parents: 16361
diff changeset
    80
            --disable-asm \
6e802c0bdb9a fix build error
jerrytan
parents: 16361
diff changeset
    81
	    --disable-examples
6e802c0bdb9a fix build error
jerrytan
parents: 16361
diff changeset
    82
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
make -j $CPUS
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    85
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    86
%install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    87
make DESTDIR=$RPM_BUILD_ROOT install
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    88
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    89
#clean up unpackaged files
16805
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
    90
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
    91
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
    92
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    93
%clean
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    94
rm -rf $RPM_BUILD_ROOT
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    95
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    96
%post -p /sbin/ldconfig
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
    97
%postun -p /sbin/ldconfig
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
%changelog
16805
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
   100
* Mon Oct 19 2009 - [email protected]
ea058114c717 2009-10-19 Ke Wang <[email protected]>
wangke
parents: 16796
diff changeset
   101
- Add 64-bit support.
16796
73be3a71fc4d 2009-10-16 Brian Cameron <[email protected]>
yippi
parents: 16543
diff changeset
   102
* Sat Oct 17 2009 - [email protected]
73be3a71fc4d 2009-10-16 Brian Cameron <[email protected]>
yippi
parents: 16543
diff changeset
   103
- Bump to 1.1.1.
16543
d51c4aa2171c 2009-09-13 Dave Lin <[email protected]>
davelam
parents: 16434
diff changeset
   104
* Sun Sep 13 2009 - [email protected]
d51c4aa2171c 2009-09-13 Dave Lin <[email protected]>
davelam
parents: 16434
diff changeset
   105
- Correct the version number, which is required as digit + dot only.
14567
4a6d2a7e0d4b bump to 1.0, remove upstream patches
jerrytan
parents: 14483
diff changeset
   106
* Fri Nov 07 2008 - [email protected]
4a6d2a7e0d4b bump to 1.0, remove upstream patches
jerrytan
parents: 14483
diff changeset
   107
- bump to 1.0, remove upstream patches
13320
39cc3f0692dc bumpe to 1.0beta3, add patch for bug 6722237
jerrytan
parents: 12965
diff changeset
   108
* Fri Aug 29 2008 - [email protected]
39cc3f0692dc bumpe to 1.0beta3, add patch for bug 6722237
jerrytan
parents: 12965
diff changeset
   109
- add patch libtheora-02-signed-short.diff to bump to 1.0beta3
12231
f75b5b1ad02f 2008-04-30 Brian Cameron <[email protected]>
yippi
parents: 11147
diff changeset
   110
* Tue Apr 29 2008 - [email protected]
f75b5b1ad02f 2008-04-30 Brian Cameron <[email protected]>
yippi
parents: 11147
diff changeset
   111
- Bump to 1.0beta3.  Remove upstream patch libtheora-01-fixlink.diff.
f75b5b1ad02f 2008-04-30 Brian Cameron <[email protected]>
yippi
parents: 11147
diff changeset
   112
  Add new patch libtheora-01-fixtestlink.diff.
11122
a56928b8a1ec 2007-11-05 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
   113
* Mon Nov 05 2007 - [email protected]
a56928b8a1ec 2007-11-05 Brian Cameron <[email protected]>
yippi
parents: 9397
diff changeset
   114
- Bump to 1.0beta2.
9397
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   115
* Fri Feb 09 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   116
- Go back to 1.0alpha7, but add --disable-asm configure flag so that
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   117
  we don't try to compile GCC-style assembler code with Sun Studio
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   118
  compiler.  Remove upstream patch 01-noversionscript.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   119
* Wed Dec 06 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   120
- Revert to 1.0alpha5 because of compilation errors. Add patch too.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   121
* Sun Dec 03 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   122
- Remove upstream patch, 01-noversionscript.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   123
* Thu Nov 30 2006 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   124
- Bump to 1.0alpha7.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   125
* Thu Nov 10 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   126
- Change %setup to reference %{tarball_version} in order to build.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   127
* Tue Sep 20 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   128
- Bump to 1.0alpha5
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   129
* Fri Sep 09 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   130
- Move ACLOCAL_FLAGS setting to the Solaris spec file
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   131
- libtoolize so it builds with newer libtool
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   132
* Fri Sep 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   133
- Set ACLOCAL_FLAGS to build on Solaris.
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   134
* Tue Aug 02 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   135
- Change copyright to license
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   136
* Tue Jul 26 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   137
- Add patch libtheora-1.0alpha4-01-docs-make.diff
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   138
* Wed Jul 20 2005 - [email protected]
b16e349d18c5 the easy part of the reorg (most files moved around)
laca
parents:
diff changeset
   139
- Initial spec file checkin