libtheora.spec
author dermotm
Mon, 24 Jul 2006 12:30:39 +0000
branchgnome-2-10
changeset 19949 94f49bf19351
parent 19804 24ac0ff34e62
permissions -rw-r--r--
access control test #4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     1
#
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     2
# spec file for package libtheora
6c353def7600 2005-07-21 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.
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     6
# package are under the same license as the package itself.
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     7
#
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     8
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
     9
Name:         libtheora
19639
fa7dfc28b738 2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19615
diff changeset
    10
License:      Xiph
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    11
Group:        System Environment/Libraries
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    12
Version:      1.0alpha4
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    13
Release:      2
19693
ecfa915b40d9 2005-08-05 Laszlo Peter <[email protected]>
laca
parents: 19639
diff changeset
    14
Distribution: Java Desktop System
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    15
Vendor:       Sun Microsystems, Inc.
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    16
Summary:      The Theora Video Compression Codec.
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    17
Source:       http://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.bz2
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    18
Patch1:       libtheora-1.0alpha4-01-docs-make.diff
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    19
URL:          http://www.theora.org/
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    20
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    21
Docdir:       %{_docdir}/%{name}
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    22
Autoreqprov:  on
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    23
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    24
BuildRequires:  libogg-devel >= 1.1
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    25
BuildRequires:  libvorbis-devel >= 1.0.1
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    26
BuildRequires:  SDL-devel
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    27
Requires:       libvorbis >= 1.0.1
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    28
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    29
%description
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    30
Theora is Xiph.Org's first publicly released video codec, intended
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    31
for use within the Ogg's project's Ogg multimedia streaming system.
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    32
Theora is derived directly from On2's VP3 codec; Currently the two are
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    33
nearly identical, varying only in encapsulating decoder tables in the
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    34
bitstream headers, but Theora will make use of this extra freedom
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    35
in the future to improve over what is possible with VP3.
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    36
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    37
%package devel
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    38
Summary:        Development tools for Theora applications.
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    39
Group:          Development/Libraries
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    40
Requires:       %{name} = %{version}-%{release}
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    41
Requires:       libogg-devel >= 1.1
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    42
 
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    43
%description devel
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    44
The libtheora-devel package contains the header files and documentation
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    45
needed to develop applications with Ogg Theora.
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    46
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    47
%prep
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    48
%setup -q
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    49
%patch1 -p1
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    50
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    51
%build
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    52
%ifos linux
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    53
if [ -x /usr/bin/getconf ]; then
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    54
  CPUS=`getconf _NPROCESSORS_ONLN`
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    55
fi
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    56
%else
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    57
  CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    58
%endif
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    59
if test "x$CPUS" = "x" -o $CPUS = 0; then
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    60
  CPUS=1
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    61
fi
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    62
19804
24ac0ff34e62 2005-09-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
    63
libtoolize --force
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    64
aclocal $ACLOCAL_FLAGS
19804
24ac0ff34e62 2005-09-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
    65
autoconf
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    66
automake -a -c -f
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    67
CFLAGS="$RPM_OPT_FLAGS" \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    68
./configure --enable-shared     \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    69
            --prefix=%{_prefix} \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    70
            --sysconfdir=%{_sysconfdir} \
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    71
            --mandir=%{_mandir}
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    72
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    73
make -j $CPUS
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    74
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    75
%install
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    76
make DESTDIR=$RPM_BUILD_ROOT install
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    77
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    78
#clean up unpackaged files
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    79
rm $RPM_BUILD_ROOT%{_libdir}/*.a
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    80
rm $RPM_BUILD_ROOT%{_libdir}/*la
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    81
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    82
%clean
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    83
rm -rf $RPM_BUILD_ROOT
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    84
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    85
%post -p /sbin/ldconfig
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    86
%postun -p /sbin/ldconfig
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    87
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    88
%files
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    89
%defattr(-,root,root)
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    90
%doc COPYING README
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    91
%{_libdir}/libtheora.so.*
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    92
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    93
%files devel
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
    94
%defattr(-,root,root)
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    95
%{_datadir}/doc/*
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    96
%{_libdir}/libtheora.so
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    97
%{_includedir}/theora
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    98
%{_includedir}/theora/theora.h
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
    99
%{_libdir}/pkgconfig/theora.pc
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
   100
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
   101
%changelog
19804
24ac0ff34e62 2005-09-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
   102
* Fri Sep 09 2005 - [email protected]
24ac0ff34e62 2005-09-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
   103
- Move ACLOCAL_FLAGS setting to the Solaris spec file
24ac0ff34e62 2005-09-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
   104
- libtoolize so it builds with newer libtool
24ac0ff34e62 2005-09-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
   105
* Fri Sep 02 2005 - [email protected]
24ac0ff34e62 2005-09-09 Laszlo Peter <[email protected]>
laca
parents: 19693
diff changeset
   106
- Set ACLOCAL_FLAGS to build on Solaris.
19639
fa7dfc28b738 2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19615
diff changeset
   107
* Tue Aug 02 2005 - [email protected]
fa7dfc28b738 2005-08-02 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19615
diff changeset
   108
- Change copyright to license
19615
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
   109
* Tue Jul 26 2005 - [email protected]
6225cc22eae9 2005-07-26 Balamurali Viswanathan <[email protected]>
bviswa
parents: 19604
diff changeset
   110
- Add patch libtheora-1.0alpha4-01-docs-make.diff
19604
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
   111
* Wed Jul 20 2005 - [email protected]
6c353def7600 2005-07-21 Balamurali Viswanathan <[email protected]>
bviswa
parents:
diff changeset
   112
- Initial spec file checkin