diff --git a/doc8-0.8.0.tar.gz b/doc8-0.8.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bc5d4f96abfae6cdb8103db9ac5cdc749cdb17a2 Binary files /dev/null and b/doc8-0.8.0.tar.gz differ diff --git a/python-doc8.spec b/python-doc8.spec new file mode 100644 index 0000000000000000000000000000000000000000..9c6552a129a60071280788342285e2d1709e2b89 --- /dev/null +++ b/python-doc8.spec @@ -0,0 +1,92 @@ +%global _empty_manifest_terminate_build 0 +Name: python-doc8 +Version: 0.8.0 +Release: 1 +Summary: Style checker for Sphinx (or other) RST documentation +License: Apache-2.0 +URL: https://launchpad.net/doc8 +Source0: https://files.pythonhosted.org/packages/7b/c6/938edbe4a33f4ba04dae14a3814605b8fd970e2a6d8c32282be0c06517d2/doc8-0.8.0.tar.gz +BuildArch: noarch +%description +Doc8 Doc8 is an *opinionatedstyle checker for rst (with basic support for plain +text) styles of documentation.QuickStart :: pip install doc8To run doc8 just +invoke it against any doc directory:: $ doc8 coolproject/docsUsage Command line +usage ******************:: $ doc8 -h usage: doc8 [-h] [--config path] [--allow- +long-titles] [--ignore code] [--no-sphinx] [--ignore-path path] [--ignore-path- +errors path] [--default-extension extension] [--file-encoding encoding] [--max- +line-length int] [-e extension] [-v] [--version] [path [path . + +%package -n python2-doc8 +Summary: Style checker for Sphinx (or other) RST documentation +Provides: python2-doc8 +BuildRequires: python2-devel +BuildRequires: python2-setuptools +Requires: python2-chardet +Requires: python2-docutils +Requires: python2-restructuredtext-lint +Requires: python2-six +Requires: python2-stevedore +%description -n python2-doc8 +Doc8 Doc8 is an *opinionatedstyle checker for rst (with basic support for plain +text) styles of documentation.QuickStart :: pip install doc8To run doc8 just +invoke it against any doc directory:: $ doc8 coolproject/docsUsage Command line +usage ******************:: $ doc8 -h usage: doc8 [-h] [--config path] [--allow- +long-titles] [--ignore code] [--no-sphinx] [--ignore-path path] [--ignore-path- +errors path] [--default-extension extension] [--file-encoding encoding] [--max- +line-length int] [-e extension] [-v] [--version] [path [path . + +%package help +Summary: Development documents and examples for doc8 +Provides: python2-doc8-doc +%description help +Doc8 Doc8 is an *opinionatedstyle checker for rst (with basic support for plain +text) styles of documentation.QuickStart :: pip install doc8To run doc8 just +invoke it against any doc directory:: $ doc8 coolproject/docsUsage Command line +usage ******************:: $ doc8 -h usage: doc8 [-h] [--config path] [--allow- +long-titles] [--ignore code] [--no-sphinx] [--ignore-path path] [--ignore-path- +errors path] [--default-extension extension] [--file-encoding encoding] [--max- +line-length int] [-e extension] [-v] [--version] [path [path . + +%prep +%autosetup -n doc8-0.8.0 + +%build +%py2_build + +%install +%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 python2-doc8 -f filelist.lst +%dir %{python2_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue May 11 2021 OpenStack_SIG +- Package Spec generated