[python-webm/el6] initial import
T.C. Hollingsworth
patches at fedoraproject.org
Tue May 7 18:49:21 UTC 2013
commit cc196398a7c812eeb55ae0beaf80ef23bcd8196b
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date: Tue May 7 11:48:36 2013 -0700
initial import
.gitignore | 1 +
python-webm.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 66 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..d0fe72c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/python-webm-0.2.2.tar.gz
diff --git a/python-webm.spec b/python-webm.spec
new file mode 100644
index 0000000..4b8d710
--- /dev/null
+++ b/python-webm.spec
@@ -0,0 +1,64 @@
+%global libwebp_sover 4
+
+#disable debuginfo, this package does not contain arched output, but needs to
+#be arched to work properly with multilibbed libwebp
+%global debug_package %{nil}
+
+Name: python-webm
+Version: 0.2.2
+Release: 2%{?dist}
+Summary: Python wrapper to WebM libraries
+
+License: BSD
+URL: https://code.google.com/p/python-webm/
+Source0: https://python-webm.googlecode.com/files/%{name}-%{version}.tar.gz
+
+BuildRequires: python2-devel
+BuildRequires: python-nose
+BuildRequires: libwebp
+BuildRequires: python-imaging
+
+%if %{__isa_bits} == 64
+Requires: libwebp.so.%{libwebp_sover}()(64bit)
+%else
+Requires: libwebp.so.%{libwebp_sover}
+%endif
+
+Requires: python-imaging
+
+%description
+The python-webm package is an interface to the WebM video/image codec. The
+interface uses ctypes to call the libvpx/libwebm Google libraries installed in
+the system. At the moment only the libwebm library is wrapped and with some
+limitations.
+
+%prep
+%setup -qn %{name}
+
+#use the right library
+sed -i 's/libwebp\.so\.0/libwebp\.so\.%{libwebp_sover}/' webm/__init__.py
+
+%build
+#nothing to do
+
+%install
+mkdir -p %{buildroot}%{python_sitearch}/webm
+cp -p webm/*.py %{buildroot}%{python_sitearch}/webm
+
+%check
+nosetests -sxv
+
+%files
+%{python_sitearch}/webm
+%doc README
+
+%changelog
+* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.2.2-2
+- fix up dependency on libwebp (package became arched as a result)
+- fix License tag
+- explicitly list python version in BuildRequires
+- be more verbose when running tests
+
+* Thu Apr 18 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 0.2.2-1
+- initial package
+
diff --git a/sources b/sources
index e69de29..a94d060 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+604accc5d3b983d4dda669ebcfc4e456 python-webm-0.2.2.tar.gz
More information about the scm-commits
mailing list