forked from pool/libtheora
This commit is contained in:
parent
66ffc82ce5
commit
147e647ca8
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 12 00:06:27 CEST 2007 - crrodriguez@suse.de
|
||||
|
||||
- fix build in x86_64
|
||||
- use library packaging policy
|
||||
- run make check in the check section
|
||||
- add missing call to ldconfig
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 28 18:34:27 CEST 2007 - sbrabec@suse.cz
|
||||
|
||||
|
@ -12,15 +12,12 @@
|
||||
|
||||
Name: libtheora
|
||||
BuildRequires: SDL-devel doxygen gcc-c++ libogg-devel libvorbis-devel pkg-config python
|
||||
%ifarch %ix86 ppc x86_64
|
||||
BuildRequires: valgrind
|
||||
%endif
|
||||
URL: http://www.xiph.org/
|
||||
License: BSD License and BSD-like
|
||||
License: BSD 3-Clause, The software is free and claimed patent free.
|
||||
Group: Productivity/Multimedia/Other
|
||||
Summary: Free Video Codec
|
||||
Version: 0.99.0.7
|
||||
Release: 1
|
||||
Release: 42
|
||||
%define _version 1.0alpha7
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: %{name}-%{_version}.tar.bz2
|
||||
@ -32,6 +29,23 @@ to playback VP3 streams.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
the Xiph.Org Foundation http://www.xiph.org/
|
||||
|
||||
%package -n libtheora0
|
||||
Group: Productivity/Multimedia/Other
|
||||
Summary: Free Video Codec
|
||||
Provides: %{name} = %{version}
|
||||
Obsoletes: %{name} <= %{version}
|
||||
|
||||
%description -n libtheora0
|
||||
Theora is a free video codec based on VP3. The package contains the
|
||||
library that can decode and encode Theora streams. Theora is also able
|
||||
to playback VP3 streams.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
the Xiph.Org Foundation http://www.xiph.org/
|
||||
@ -39,7 +53,7 @@ Authors:
|
||||
%package devel
|
||||
Group: Productivity/Multimedia/Other
|
||||
Summary: Free Video Codec
|
||||
Requires: %{name} = %{version} libogg-devel
|
||||
Requires: libtheora0 = %{version} libogg-devel
|
||||
|
||||
%description devel
|
||||
Theora is a free video codec based on VP3. The package contains the
|
||||
@ -54,61 +68,68 @@ Authors:
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{_version}
|
||||
#rm -rf `find . -name .svn`
|
||||
#libtoolize --force
|
||||
#aclocal -I m4/
|
||||
#autoconf
|
||||
#automake -a
|
||||
|
||||
%build
|
||||
# FIXME:
|
||||
# toplevel.c:183: warning: dereferencing type-punned pointer will break strict-aliasing rules
|
||||
# x86_64/fdct_mmx.c:295: warning: dereferencing type-punned pointer will break strict-aliasing rules
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -fstack-protector"
|
||||
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
||||
ACLOCAL="aclocal -I m4" autoreconf -f -i
|
||||
%configure\
|
||||
--enable-valgrind-testing
|
||||
make %{?jobs:-j%jobs} docdir=%{_docdir}/%{name}
|
||||
make check
|
||||
%configure \
|
||||
--disable-static \
|
||||
--with-pic
|
||||
%{__make} %{?jobs:-j%jobs} docdir=%{_docdir}/%{name}
|
||||
|
||||
%install
|
||||
%makeinstall docdir=%{_docdir}/%{name}
|
||||
install -d $RPM_BUILD_ROOT%{_bindir}
|
||||
%{__install} -d $RPM_BUILD_ROOT%{_bindir}
|
||||
# Use non-generic name here to prevent vague meaning:
|
||||
install examples/.libs/dump_video $RPM_BUILD_ROOT%{_bindir}/dump_video_theora
|
||||
install examples/.libs/encoder_example $RPM_BUILD_ROOT%{_bindir}/encoder_example_theora
|
||||
install examples/.libs/player_example $RPM_BUILD_ROOT%{_bindir}/player_example_theora
|
||||
%{__install} examples/.libs/dump_video $RPM_BUILD_ROOT%{_bindir}/dump_video_theora
|
||||
%{__install} examples/.libs/encoder_example $RPM_BUILD_ROOT%{_bindir}/encoder_example_theora
|
||||
%{__install} examples/.libs/player_example $RPM_BUILD_ROOT%{_bindir}/player_example_theora
|
||||
# And provide symlinks to old names (<= openSUSE 10.2):
|
||||
ln -s dump_video_theora $RPM_BUILD_ROOT%{_bindir}/dump_video
|
||||
ln -s encoder_example_theora $RPM_BUILD_ROOT%{_bindir}/encoder_example
|
||||
ln -s player_example_theora $RPM_BUILD_ROOT%{_bindir}/player_example
|
||||
%{__ln_s} dump_video_theora $RPM_BUILD_ROOT%{_bindir}/dump_video
|
||||
%{__ln_s} encoder_example_theora $RPM_BUILD_ROOT%{_bindir}/encoder_example
|
||||
%{__ln_s} player_example_theora $RPM_BUILD_ROOT%{_bindir}/player_example
|
||||
# Install remaining parts of documentation.
|
||||
cp -a AUTHORS CHANGES COPYING LICENSE README $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||
%{__cp} -a AUTHORS CHANGES COPYING LICENSE README $RPM_BUILD_ROOT%{_docdir}/%{name}
|
||||
cd examples
|
||||
make clean
|
||||
cp -a . $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
||||
%{__make} clean
|
||||
%{__cp} -a . $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
||||
cd $RPM_BUILD_ROOT%{_docdir}/%{name}/examples
|
||||
rm -rf .deps Makefile*
|
||||
%{__rm} -rf .deps Makefile*
|
||||
|
||||
%check
|
||||
%{__make} check
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%post -n libtheora0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libtheora0 -p /sbin/ldconfig
|
||||
|
||||
%files -n libtheora0
|
||||
%defattr(-,root,root)
|
||||
%doc %dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/[ACLR]*
|
||||
%{_libdir}/libtheora.so.*
|
||||
%{_libdir}/libtheora.so.0*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}/[cdehlv]*
|
||||
%doc %dir %{_docdir}/%{name}
|
||||
%doc %{_docdir}/%{name}/*
|
||||
%{_bindir}/*
|
||||
%{_includedir}/theora
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/*.*a
|
||||
%{_libdir}/pkgconfig/theora.pc
|
||||
%exclude %{_libdir}/*.la
|
||||
|
||||
%changelog
|
||||
* Sun Aug 12 2007 - crrodriguez@suse.de
|
||||
- fix build in x86_64
|
||||
- use library packaging policy
|
||||
- run make check in the check section
|
||||
- add missing call to ldconfig
|
||||
* Wed Mar 28 2007 - sbrabec@suse.cz
|
||||
- Updated to version 1.0alpha7:
|
||||
* Enable mmx assembly by default
|
||||
|
Loading…
x
Reference in New Issue
Block a user