Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.2:Update
python-Kivy
python-Kivy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-Kivy.spec of Package python-Kivy
# # spec file for package python-Kivy # # Copyright (c) 2014 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: python-Kivy Version: 1.8.0 Release: 0 Url: http://kivy.org/ Summary: Hardware-accelerated multitouch application library License: LGPL-3.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/K/Kivy/Kivy-%{version}.tar.gz # PATCH-FIX-UPSTREAM python-Kivy-Cython-0.21.patch dimstar@opensuse.org -- Fix build with Cython 0.21, taken from git Patch0: python-Kivy-Cython-0.21.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: Mesa-devel BuildRequires: fdupes BuildRequires: mtdev BuildRequires: python-Cython BuildRequires: python-Sphinx BuildRequires: python-devel BuildRequires: python-imaging BuildRequires: python-opengl BuildRequires: python-pyenchant BuildRequires: python-pygame Requires: mtdev Requires: python-imaging Requires: python-opengl Requires: python-pyenchant Requires: python-pygame Recommends: python-cairo Recommends: python-gstreamer-0_10 Recommends: python-opencv %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %endif %description Kivy is an open source software library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. %package doc Summary: Documentation for %{name} Group: Documentation/Other Requires: %{name} = %{version} %description doc Kivy is an open source software library for rapid development of applications that make use of innovative user interfaces, such as multi-touch apps. This package contains the developer documentation and examples %prep %setup -q -n Kivy-%{version} %patch0 -p1 sed -i "s|data_file_prefix = 'share/kivy-'|data_file_prefix = '%{_docdir}/%{name}/'|" setup.py sed -i "s|#!/usr/bin/python||" kivy/lib/osc/OSC.py # Fix non-executable script rm examples/demo/pictures/images/.empty # Remove empty file rm -r examples/audio # Remove content with non-commercial only license (bnc#749340) #drop usr/bin/kivy shebang to not produce dependency on itself sed -i 's@#!/usr/bin/kivy@@' \ examples/demo/showcase/main.py \ examples/demo/kivycatalog/main.py \ examples/demo/pictures/main.py \ examples/demo/shadereditor/main.py \ examples/demo/touchtracer/main.py %build CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build cd doc && make html && rm -r build/html/.buildinfo # Build HTML documentation %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %fdupes %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/%{name}-doc %files %defattr(-,root,root,-) %doc AUTHORS LICENSE %{python_sitearch}/kivy/ %{python_sitearch}/Kivy-%{version}-py*.egg-info %files doc %defattr(-,root,root,-) %doc examples doc/build/html %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor