Accepting request 730879 from home:jayvdb:py3only
- Use %python_expand to recompile to fix inconsistent mtime - Expand fdupes to avoid dups in egg-info - Fix hashbang OBS-URL: https://build.opensuse.org/request/show/730879 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-RESTful?expand=0&rev=10
This commit is contained in:
committed by
Git OBS Bridge
parent
714a43b5bb
commit
d332d14692
@@ -40,15 +40,19 @@ Flask-RESTful provides the building blocks for creating a REST API.
|
||||
|
||||
%prep
|
||||
%setup -q -n Flask-RESTful-%{version}
|
||||
sed -i '1{/^#!/d}' flask_restful/__version__.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%py_compile %{buildroot}%{python_sitelib}
|
||||
%py3_compile %{buildroot}%{python3_sitelib}/flask_restful/
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}/flask_restful/
|
||||
%{python_expand \
|
||||
$python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/flask_restful/
|
||||
$python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/flask_restful/
|
||||
}
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%dir %{python_sitelib}/flask_restful
|
||||
|
||||
Reference in New Issue
Block a user