Ticket #606: xpra-20140816.patch
File xpra-20140816.patch, 1.7 KB (added by , 7 years ago) |
---|
-
xpra.spec
old new 4 4 # later version. See the file COPYING for details. 5 5 6 6 %define version 0.14.0 7 %{!?python_site lib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}7 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} 8 8 %if 0%{?build_no} == 0 9 9 %define build_no 0 10 10 %endif … … Requires: ffmpeg-xpra 118 118 BuildRequires: pkgconfig 119 119 BuildRequires: Cython 120 120 BuildRequires: pygtk2-devel 121 BuildRequires: python, setuptool121 BuildRequires: python, python-setuptools 122 122 BuildRequires: pygobject2-devel 123 123 BuildRequires: libxkbfile-devel 124 124 BuildRequires: libXtst-devel … … rm -rf $RPM_BUILD_ROOT 178 178 cd xpra-%{version} 179 179 %{__python} setup.py install -O1 %{dummy} --prefix /usr --skip-build --root %{buildroot} 180 180 181 #why do we even need to do this ourselves?182 %ifarch x86_64183 mv -f "${RPM_BUILD_ROOT}/usr/lib64" "${RPM_BUILD_ROOT}/usr/lib"184 %endif185 181 186 182 %if 0%{?opengl} 187 183 #included by default 188 184 %else 189 rm -fr ${RPM_BUILD_ROOT}/ usr/lib/python2.*/site-packages/xpra/client/gl185 rm -fr ${RPM_BUILD_ROOT}/%{python_sitearch}/xpra/client/gl 190 186 %endif 191 187 192 188 %if 0%{?no_sound} 193 rm -fr ${RPM_BUILD_ROOT}/ usr/lib/python2.*/site-packages/xpra/sound189 rm -fr ${RPM_BUILD_ROOT}/%{python_sitearch}/xpra/sound 194 190 %endif 195 191 196 192 … … rm -rf $RPM_BUILD_ROOT 201 197 %files 202 198 %defattr(-,root,root) 203 199 %{_bindir}/xpra* 204 %{python_site lib}/xpra200 %{python_sitearch}/xpra 205 201 %if %{include_egg} 206 %{python_site lib}/xpra-*.egg-info202 %{python_sitearch}/xpra-*.egg-info 207 203 %endif 208 204 %{_datadir}/xpra 209 205 %{_datadir}/man/man1/xpra*