Summary: Theora video compression codec
Summary(ja): Theora 映像圧縮コーデック
Name: libtheora
Version: 1.1.1
Release: 1%{?_dist_release}
License: BSD
URL: http://www.theora.org/
Source: http://www.theora.org/files/libtheora-%{version}.tar.bz2
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libogg-devel >= 1.1
BuildRequires: libvorbis-devel >= 1.0.1
BuildRequires: SDL-devel
# Seems like a devel package forgot to include this one (ogg? vorbis? SDL?)
#BuildRequires: alsa-lib-devel

%description
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed video format.


%package devel
Summary: Headers for developing programs that will use libtheora
Summary(ja): libtheora の開発用ファイル
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: libogg-devel >= 1.1

%description devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.


%prep
%setup -q -n %{name}-%{version}

%build
%configure --disable-static
make %{?_smp_mflags}


%install
rm -rf %{buildroot} installed-docs
%makeinstall
mv %{buildroot}%{_datadir}/doc/libtheora* installed-docs
# Fix the location of the include file
#mkdir -p %{buildroot}%{_includedir}/theora
#mv %{buildroot}%{_includedir}/theora.h %{buildroot}%{_includedir}/theora/

# remove unpackage files
rm -f $RPM_BUILD_ROOT%{_libdir}/libtheora*.la

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root, 0755)
%doc README COPYING
%{_libdir}/libtheora*.so.*

%files devel
%defattr(-, root, root, 0755)
%doc installed-docs/*
%{_includedir}/theora
#{_libdir}/libtheora*.a
%{_libdir}/libtheora*.so
%{_libdir}/pkgconfig/*.pc


%changelog
* Sun Nov 22 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.1.1-1
- new upstream relase

* Thu Nov 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-1
- new upstream release

* Sat Apr  5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.beta2.1vl5
- new upstream relase

* Fri Sep 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha7vl1
- new upstream relase

* Sat Sep 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha5vl1
- new upstream relase

* Thu Mar 17 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha4vl1
- new upstream relase
- added Japanese summary

* Sun Sep  5 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0-0.alpha3vl1
- Build for Vine 

* Wed May 19 2004 Matthias Saou <http://freshrpms.net/> 1.0-0.alpha3.1
- Initial RPM release, only devel as there is only a static lib for now.

