diff --git a/python-sphinx-feature-classification.spec b/python-sphinx-feature-classification.spec index b4bd30e2c1d4930b35859c47fd5637b441ffbdb7..f5f64466f76884d3039086ca6a6dd9fcc628f407 100644 --- a/python-sphinx-feature-classification.spec +++ b/python-sphinx-feature-classification.spec @@ -1,66 +1,86 @@ -Name: python-sphinx-feature-classification -Version: 1.1.0 -Release: 1 -Summary: OpenStack sphinx-feature-classification library -License: Apache-2.0 -URL: https://docs.openstack.org/sphinx-feature-classification/latest/ -Source0: https://files.pythonhosted.org/packages/source/s/sphinx-feature-classification/sphinx-feature-classification-1.1.0.tar.gz -BuildRequires: openstack-macros -BuildRequires: python3-ddt -BuildRequires: python3-devel -BuildRequires: python3-oslotest -BuildRequires: python3-pbr -BuildRequires: python3-testrepository -BuildRequires: python3-testtools -BuildArch: noarch - +%global _empty_manifest_terminate_build 0 +Name: python-sphinx-feature-classification +Version: 0.3.0 +Release: 1 +Summary: Generate a matrix of pluggable drivers and their support to an API in Sphinx. +License: Apache-2.0 +URL: http://www.openstack.org/ +Source0: https://files.pythonhosted.org/packages/be/26/c14fd813b90583ac9211eb5924a713414531c52c7c8e011bac529f7c6f3c/sphinx-feature-classification-0.3.0.tar.gz +BuildArch: noarch %description -This is a Sphinx directive that allows creating matrices of drivers -a project contains and which features they support. - -%package -n python3-sphinx-feature-classification -Summary: OpenStack sphinx-feature-classification library -Requires: python3-docutils -Requires: python3-pbr - -%description -n python3-sphinx-feature-classification -This is a Sphinx directive that allows creating matrices of drivers -a project contains and which features they support. + Team and repository tags .. Change things from this point on sphinx-feature- +classification This is a Sphinx directive that allows creating matrices of +drivers a project contains and which features they support. The directive takes +an INI file with specific syntax explained in the usage documentation to +generate the matrices, in which projects have the authority to say what is +supported within their own repository. -%package -n python-sphinx-feature-classification-doc -Summary: Documentation for the OpenStack sphinx-feature-classification library -BuildRequires: python3-sphinx -BuildRequires: python3-openstackdocstheme +%package -n python2-sphinx-feature-classification +Summary: Generate a matrix of pluggable drivers and their support to an API in Sphinx. +Provides: python2-sphinx-feature-classification +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-docutils +Requires: python2-pbr +%description -n python2-sphinx-feature-classification + Team and repository tags .. Change things from this point on sphinx-feature- +classification This is a Sphinx directive that allows creating matrices of +drivers a project contains and which features they support. The directive takes +an INI file with specific syntax explained in the usage documentation to +generate the matrices, in which projects have the authority to say what is +supported within their own repository. -%description -n python-sphinx-feature-classification-doc -Documentation for the OpenStack sphinx-feature-classification library. +%package help +Summary: Development documents and examples for sphinx-feature-classification +Provides: python2-sphinx-feature-classification-doc +%description help + Team and repository tags .. Change things from this point on sphinx-feature- +classification This is a Sphinx directive that allows creating matrices of +drivers a project contains and which features they support. The directive takes +an INI file with specific syntax explained in the usage documentation to +generate the matrices, in which projects have the authority to say what is +supported within their own repository. %prep -%autosetup -p1 -n sphinx-feature-classification-1.1.0 -%py_req_cleanup +%autosetup -n sphinx-feature-classification-0.3.0 %build -%{py3_build} - -PYTHONPATH=. sphinx-build-3 -b html doc/source doc/build/html -# remove the sphinx-build leftovers -rm -rf doc/build/html/.{doctrees,buildinfo} +%py2_build %install -%{py3_install} - -%check -PYTHON=python3 python3 setup.py test +%py2_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . -%files -n python3-sphinx-feature-classification -%license LICENSE -%{python3_sitelib}/sphinx_feature_classification -%{python3_sitelib}/*.egg-info +%files -n python2-sphinx-feature-classification -f filelist.lst +%dir %{python2_sitelib}/* -%files -n python-sphinx-feature-classification-doc -%doc doc/build/html README.rst -%license LICENSE +%files help -f doclist.lst +%{_docdir}/* %changelog -* Wed Feb 03 2021 liusheng - 1.1.0-1 -- Initial package +* Tue May 11 2021 OpenStack_SIG +- Package Spec generated diff --git a/sphinx-feature-classification-0.3.0.tar.gz b/sphinx-feature-classification-0.3.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..688b9587dba820b6f015db3601998bdbff06c863 Binary files /dev/null and b/sphinx-feature-classification-0.3.0.tar.gz differ diff --git a/sphinx-feature-classification-1.1.0.tar.gz b/sphinx-feature-classification-1.1.0.tar.gz deleted file mode 100644 index 6963d160ec1a283e940edbef29039a5e70a29252..0000000000000000000000000000000000000000 Binary files a/sphinx-feature-classification-1.1.0.tar.gz and /dev/null differ