forked from pool/python-dbus-deviation
I give up, use the existing bits in %prep that I missed.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-dbus-deviation?expand=0&rev=11
This commit is contained in:
@@ -45,8 +45,8 @@ This functionality is also available as a Python module, dbusdeviation.
|
||||
%prep
|
||||
%setup -q -n dbus-deviation-%{version}
|
||||
sed -i -e "/setuptools_/d" setup.py
|
||||
chmod -x dbusapi/tests/*.py dbusdeviation/utilities/*.py
|
||||
sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py
|
||||
chmod -x dbusapi/tests/*.py dbusdeviation/tests/*.py dbusdeviation/utilities/*.py
|
||||
sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/tests/*.py dbusdeviation/utilities/*.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -56,8 +56,6 @@ sed -i '1 {/^#!/d}' dbusapi/tests/*.py dbusdeviation/utilities/*.py
|
||||
%python_clone -a %{buildroot}%{_bindir}/dbus-interface-diff
|
||||
%python_clone -a %{buildroot}%{_bindir}/dbus-interface-vcs-helper
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# Drop execute bits for shipped modules
|
||||
%python_expand find %{buildroot}%{$python_sitelib} -name '*.py' -print0 | xargs -0 chmod a-x
|
||||
|
||||
%check
|
||||
%pyunittest -v
|
||||
|
||||
Reference in New Issue
Block a user