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