Skip to content

Commit

Permalink
#1037 support building on opensuse
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@11332 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Nov 29, 2015
1 parent 57b4290 commit c9cfc87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions rpmbuild/Cython.spec
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
%{!?__python2: %global __python2 /usr/bin/python2}
%{!?__python2: %global __python2 python2}
%{!?__python3: %define __python3 python3}
%{!?python_sitearch: %global python_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%define with_python3 0%{?fedora}
%{!?py3dir: %global py3dir %{_builddir}/python3-%{name}-%{version}-%{release}}
%define with_python3 0%{?fedora}%{?suse_version}

%if 0%{?suse_version}
Name: python-Cython
%else
Name: Cython
%endif

Version: 0.23.4
Release: 1%{?dist}
Summary: A language for writing Python extension modules
Expand Down Expand Up @@ -37,7 +44,7 @@ for writing Python extension modules.


%prep
%setup -q -n %{name}-%{version}
%setup -q -n Cython-%{version}

%if %{with_python3}
rm -rf %{py3dir}
Expand Down
2 changes: 1 addition & 1 deletion rpmbuild/PyOpenGL_accelerate.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Source0: http://downloads.sourceforge.net/pyopengl/%{name}-%{VERSION}.tar
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
BuildRequires: PyOpenGL
%if 0%{suse_version}
%if 0%{?suse_version}
BuildRequires: python-Cython
%else
BuildRequires: Cython
Expand Down

0 comments on commit c9cfc87

Please sign in to comment.