Accepting request 730992 from devel:languages:python:flask
OBS-URL: https://build.opensuse.org/request/show/730992 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Flask-RESTful?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 14 07:02:06 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Use %python_expand to recompile to fix inconsistent mtime
|
||||
- Expand fdupes to avoid dups in egg-info
|
||||
- Fix hashbang
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 30 19:05:00 UTC 2018 - Arun Persaud <arun@gmx.de>
|
||||
|
||||
|
||||
@@ -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