OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtheora?expand=0&rev=25
139 lines
3.5 KiB
RPMSpec
139 lines
3.5 KiB
RPMSpec
#
|
|
# spec file for package libtheora
|
|
#
|
|
# Copyright (c) 2011 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/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libtheora
|
|
BuildRequires: gcc-c++ libogg-devel libvorbis-devel pkg-config python
|
|
Url: http://www.theora.org/
|
|
License: BSD3c(or similar)
|
|
Group: Productivity/Multimedia/Other
|
|
Summary: Free Video Codec
|
|
Version: 1.1.1
|
|
Release: 14
|
|
%define pkg_version %version
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libtheora-64bit
|
|
%endif
|
|
#
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source: http://downloads.xiph.org/releases/theora/%{name}-%{pkg_version}.tar.bz2
|
|
Source2: baselibs.conf
|
|
|
|
%description
|
|
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/
|
|
|
|
%package -n libtheora0
|
|
License: BSD3c(or similar)
|
|
Group: Productivity/Multimedia/Other
|
|
Summary: Free Video Codec
|
|
Provides: %{name} = %{version}
|
|
Obsoletes: %{name} <= %{version}
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libtheora-64bit
|
|
%endif
|
|
#
|
|
|
|
%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/
|
|
|
|
%package devel
|
|
License: BSD3c(or similar)
|
|
Group: Development/Libraries/C and C++
|
|
Summary: Free Video Codec
|
|
Requires: libtheora0 = %{version} libogg-devel
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libtheora-devel-64bit
|
|
%endif
|
|
#
|
|
|
|
%description devel
|
|
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/
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{pkg_version}
|
|
|
|
%build
|
|
ACLOCAL="aclocal -I m4" autoreconf -f -i
|
|
%configure --disable-examples \
|
|
--disable-static \
|
|
--with-pic
|
|
%{__make} %{?jobs:-j%jobs} docdir=%{_docdir}/%{name}
|
|
|
|
%install
|
|
%makeinstall docdir=%{_docdir}/%{name}
|
|
%{__install} -d $RPM_BUILD_ROOT%{_bindir}
|
|
# Install remaining parts of documentation.
|
|
%{__cp} -a AUTHORS CHANGES COPYING LICENSE README $RPM_BUILD_ROOT%{_docdir}/%{name}
|
|
|
|
%check
|
|
%{__make} check
|
|
|
|
%clean
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%post -n libtheora0 -p /sbin/ldconfig
|
|
|
|
%postun -n libtheora0 -p /sbin/ldconfig
|
|
|
|
%files -n libtheora0
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libtheora.so.0*
|
|
%{_libdir}/libtheoradec.so.1*
|
|
%{_libdir}/libtheoraenc.so.1*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc %dir %{_docdir}/%{name}
|
|
%doc %{_docdir}/%{name}/*
|
|
%{_includedir}/theora
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/theoradec.pc
|
|
%{_libdir}/pkgconfig/theoraenc.pc
|
|
%{_libdir}/pkgconfig/theora.pc
|
|
%exclude %{_libdir}/*.la
|
|
|
|
%changelog
|