forked from pool/python-acitoolkit
Accepting request 950358 from home:pgajdos:python
- use spec cleaner, remove redundant Provides OBS-URL: https://build.opensuse.org/request/show/950358 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-acitoolkit?expand=0&rev=13
This commit is contained in:
@@ -23,7 +23,7 @@ Release: 0
|
||||
Summary: Python library for programming ACI
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: http://github.com/datacenter/acitoolkit
|
||||
URL: https://github.com/datacenter/acitoolkit
|
||||
Source: https://github.com/datacenter/acitoolkit/archive/v%{version}.tar.gz
|
||||
Patch0: remove-app-dependency.patch
|
||||
# https://github.com/datacenter/acitoolkit/commit/629b84887dd0f0183b81efc8adb16817f985541a
|
||||
@@ -54,15 +54,13 @@ Infrastructure Controller.
|
||||
%package -n %{name}-doc
|
||||
Summary: Documentation for the Python acitoolkit library
|
||||
Group: Documentation/Other
|
||||
Provides: %{python_module acitoolkit-doc = %{version}}
|
||||
|
||||
%description -n %{name}-doc
|
||||
Documentation for %name.
|
||||
Documentation for %{name}.
|
||||
|
||||
%package -n %{name}-doc-applications
|
||||
Summary: Applications for the Python acitoolkit library
|
||||
Group: Development/Languages/Python
|
||||
Provides: %{python_module acitoolkit-doc-applications = %{version}}
|
||||
Requires: %{name}-doc
|
||||
Requires: python-Flask
|
||||
Requires: python-Flask-Admin
|
||||
@@ -80,7 +78,6 @@ Python applications using acitoolkit for programming ACI.
|
||||
%package -n %{name}-doc-samples
|
||||
Summary: Sample code for the Python acitoolkit library
|
||||
Group: Development/Languages/Python
|
||||
Provides: %{python_module acitoolkit-doc-samples = %{version}}
|
||||
Requires: %{name}-doc
|
||||
Requires: python-PyMySQL
|
||||
|
||||
@@ -114,27 +111,27 @@ dos2unix \
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# Install docs, samples and applications into a common doc area
|
||||
install -d %{buildroot}%_defaultdocdir/%{name}
|
||||
cp -rp docs/source/*.rst docs/source/*.png docs/source/stats/ samples/ applications/ %{buildroot}%_defaultdocdir/%{name}/
|
||||
find %{buildroot}%_defaultdocdir/%{name}/ -type f -exec chmod a-x \{\} \;
|
||||
install -d %{buildroot}%{_defaultdocdir}/%{name}
|
||||
cp -rp docs/source/*.rst docs/source/*.png docs/source/stats/ samples/ applications/ %{buildroot}%{_defaultdocdir}/%{name}/
|
||||
find %{buildroot}%{_defaultdocdir}/%{name}/ -type f -exec chmod a-x \{\} \;
|
||||
|
||||
%fdupes %{buildroot}%_defaultdocdir/%{name}/
|
||||
%fdupes %{buildroot}%{_defaultdocdir}/%{name}/
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python tests/acitoolkit_test.py offline
|
||||
|
||||
%files -n %{name}-doc
|
||||
%license LICENSE NOTICE
|
||||
%dir %_defaultdocdir/%{name}
|
||||
%_defaultdocdir/%{name}/*.rst
|
||||
%_defaultdocdir/%{name}/*.png
|
||||
%_defaultdocdir/%{name}/stats/
|
||||
%dir %{_defaultdocdir}/%{name}
|
||||
%{_defaultdocdir}/%{name}/*.rst
|
||||
%{_defaultdocdir}/%{name}/*.png
|
||||
%{_defaultdocdir}/%{name}/stats/
|
||||
|
||||
%files -n %{name}-doc-samples
|
||||
%_defaultdocdir/%{name}/samples/
|
||||
%{_defaultdocdir}/%{name}/samples/
|
||||
|
||||
%files -n %{name}-doc-applications
|
||||
%_defaultdocdir/%{name}/applications/
|
||||
%{_defaultdocdir}/%{name}/applications/
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
|
||||
Reference in New Issue
Block a user