forked from pool/python-pygraphviz
Accepting request 514808 from home:TheBlackCat:branches:devel:languages:python
Fix shebangs OBS-URL: https://build.opensuse.org/request/show/514808 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygraphviz?expand=0&rev=12
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Aug 6 04:42:26 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Fix shebangs
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 17 21:43:00 UTC 2017 - toddrme2178@gmail.com
|
Wed May 17 21:43:00 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@@ -38,6 +38,7 @@ BuildRequires: python-rpm-macros
|
|||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
# Needed even without tests
|
# Needed even without tests
|
||||||
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module nose}
|
BuildRequires: %{python_module nose}
|
||||||
Requires: graphviz >= 2.16
|
Requires: graphviz >= 2.16
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -64,8 +65,17 @@ This package provides documentation and help files for %{name}
|
|||||||
%install
|
%install
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags}"
|
||||||
%python_exec setup.py install -O1 --force --root %{buildroot} --prefix %{_prefix} --include-path %{_includedir}/graphviz/ --library-path %{_libdir}/graphviz/
|
%python_exec setup.py install -O1 --force --root %{buildroot} --prefix %{_prefix} --include-path %{_includedir}/graphviz/ --library-path %{_libdir}/graphviz/
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
||||||
%python_expand chmod +x %{buildroot}%{$python_sitearch}/pygraphviz/tests/test.py
|
%{python_expand pushd %{buildroot}%{$python_sitearch}
|
||||||
|
# Fix wrong-script-interpreter
|
||||||
|
sed -i "s|#!/usr/bin/env python|#!%__$python|" pygraphviz/tests/test.py
|
||||||
|
chmod a+x pygraphviz/tests/test.py
|
||||||
|
# Deduplicating files can generate a RPMLINT warning for pyc mtime
|
||||||
|
$python -m compileall -d %{$python_sitearch} pygraphviz/tests/
|
||||||
|
$python -O -m compileall -d %{$python_sitearch} pygraphviz/tests/
|
||||||
|
%fdupes .
|
||||||
|
popd
|
||||||
|
}
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
|
Reference in New Issue
Block a user