2010-09-13 13:28:33 +02:00
|
|
|
#
|
2010-12-01 17:38:07 +01:00
|
|
|
# spec file for package libvpx (Version 0.9.5)
|
2010-09-13 13:28:33 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: libvpx
|
2010-12-01 11:56:20 +01:00
|
|
|
Version: 0.9.5
|
2010-12-01 17:38:07 +01:00
|
|
|
Release: 1
|
2010-09-14 13:14:28 +02:00
|
|
|
License: BSD3c ; GPLv2+
|
2010-09-13 13:28:33 +02:00
|
|
|
Summary: VP8 codec library
|
|
|
|
Url: http://www.webmproject.org/
|
|
|
|
Group: Productivity/Multimedia/Other
|
2010-12-01 11:56:20 +01:00
|
|
|
Source0: %{name}-v%{version}.tar.bz2
|
2010-09-13 13:28:33 +02:00
|
|
|
# PATCH-FIX-UPSTREAM libvpx-define-config_pic.patch dimstar@opensuse.org -- For older compilers, CONFIG_PIC need to be defined.
|
|
|
|
Patch0: libvpx-define-config_pic.patch
|
|
|
|
BuildRequires: yasm
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
WebM is an open, royalty-free, media file format designed for the web.
|
|
|
|
|
|
|
|
WebM defines the file container structure, video and audio formats.
|
|
|
|
WebM files consist of video streams compressed with the VP8 video codec
|
|
|
|
and audio streams compressed with the Vorbis audio codec.
|
|
|
|
The WebM file structure is based on the Matroska container.
|
|
|
|
|
|
|
|
%package -n vpx-tools
|
2010-09-14 13:14:28 +02:00
|
|
|
License: BSD3c ; GPLv2+
|
2010-09-13 13:28:33 +02:00
|
|
|
Summary: VP8 codec library - Utilities
|
|
|
|
Group: Productivity/Multimedia/Other
|
|
|
|
|
|
|
|
%description -n vpx-tools
|
|
|
|
This package contains utilities around the vp8 codec sdk.
|
|
|
|
|
|
|
|
WebM is an open, royalty-free, media file format designed for the web.
|
|
|
|
|
|
|
|
WebM defines the file container structure, video and audio formats.
|
|
|
|
WebM files consist of video streams compressed with the VP8 video codec
|
|
|
|
and audio streams compressed with the Vorbis audio codec.
|
|
|
|
The WebM file structure is based on the Matroska container.
|
|
|
|
|
|
|
|
%package -n %{name}0
|
|
|
|
|
2010-12-01 17:38:07 +01:00
|
|
|
|
2010-09-14 13:14:28 +02:00
|
|
|
License: BSD3c
|
2010-09-13 13:28:33 +02:00
|
|
|
Summary: VP8 codec library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %{name}0
|
|
|
|
WebM is an open, royalty-free, media file format designed for the web.
|
|
|
|
|
|
|
|
WebM defines the file container structure, video and audio formats.
|
|
|
|
WebM files consist of video streams compressed with the VP8 video codec
|
|
|
|
and audio streams compressed with the Vorbis audio codec.
|
|
|
|
The WebM file structure is based on the Matroska container.
|
|
|
|
|
|
|
|
%package devel
|
2010-09-14 13:14:28 +02:00
|
|
|
License: BSD3c ; GPLv2+
|
2010-09-13 13:28:33 +02:00
|
|
|
Summary: VP8 codec library - Development headers
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: %{name}0 = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development headers and library
|
|
|
|
|
|
|
|
WebM is an open, royalty-free, media file format designed for the web.
|
|
|
|
|
|
|
|
WebM defines the file container structure, video and audio formats.
|
|
|
|
WebM files consist of video streams compressed with the VP8 video codec
|
|
|
|
and audio streams compressed with the Vorbis audio codec.
|
|
|
|
The WebM file structure is based on the Matroska container.
|
|
|
|
|
|
|
|
%prep
|
2010-12-01 11:56:20 +01:00
|
|
|
%setup -q -n %name-v%version
|
2010-12-01 12:00:21 +01:00
|
|
|
%patch0 -p1
|
2010-09-13 13:28:33 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
cd build
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
# It is only an emulation of autotools configure; the macro does not work
|
|
|
|
../configure \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--enable-debug \
|
|
|
|
--enable-shared \
|
2010-12-01 11:56:20 +01:00
|
|
|
--enable-pic
|
2010-09-13 13:28:33 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
cd build
|
2011-02-13 12:31:17 +01:00
|
|
|
%make_install
|
2010-09-13 13:28:33 +02:00
|
|
|
# Remove static library
|
|
|
|
rm %{buildroot}%{_libdir}/libvpx.a
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%post -n %{name}0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{name}0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n vpx-tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%files -n %{name}0
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc LICENSE AUTHORS README CHANGELOG
|
|
|
|
%{_libdir}/libvpx.so.0*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc vp8_api1_migration.txt
|
|
|
|
%{_includedir}/vpx/
|
|
|
|
%{_libdir}/libvpx.so
|
|
|
|
|
|
|
|
%changelog
|