diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-sphinxcontrib-log-cabinet.spec | 109 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 111 insertions, 0 deletions
@@ -0,0 +1 @@ +/sphinxcontrib-log-cabinet-1.0.1.tar.gz diff --git a/python-sphinxcontrib-log-cabinet.spec b/python-sphinxcontrib-log-cabinet.spec new file mode 100644 index 0000000..46a6f53 --- /dev/null +++ b/python-sphinxcontrib-log-cabinet.spec @@ -0,0 +1,109 @@ +%global _empty_manifest_terminate_build 0 +Name: python-sphinxcontrib-log-cabinet +Version: 1.0.1 +Release: 1 +Summary: Organize changelog directives in Sphinx docs. +License: BSD-3-Clause +URL: https://github.com/davidism/sphinxcontrib-log-cabinet +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/75/26/0687391e10c605a4d0c7ebe118c57c51ecc687128bcdae5803d9b96def81/sphinxcontrib-log-cabinet-1.0.1.tar.gz +BuildArch: noarch + +Requires: python3-Sphinx + +%description +Organize changelogs generated by ``versionadded``, ``versionchanged``, +``deprecated`` directives. The log will be sorted by newest to oldest +version. For HTML docs, older versions will be collapsed by default. +Install: + $ pip install sphinxcontrib-log-cabinet +Enable: + extensions = [ + "sphinxcontrib.log_cabinet", + ] +Configure: +``log_cabinet_collapse_all`` + By default, current changes and deprecations are not collapsed. Set + this to ``True`` to collapse all changes. + +%package -n python3-sphinxcontrib-log-cabinet +Summary: Organize changelog directives in Sphinx docs. +Provides: python-sphinxcontrib-log-cabinet +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-sphinxcontrib-log-cabinet +Organize changelogs generated by ``versionadded``, ``versionchanged``, +``deprecated`` directives. The log will be sorted by newest to oldest +version. For HTML docs, older versions will be collapsed by default. +Install: + $ pip install sphinxcontrib-log-cabinet +Enable: + extensions = [ + "sphinxcontrib.log_cabinet", + ] +Configure: +``log_cabinet_collapse_all`` + By default, current changes and deprecations are not collapsed. Set + this to ``True`` to collapse all changes. + +%package help +Summary: Development documents and examples for sphinxcontrib-log-cabinet +Provides: python3-sphinxcontrib-log-cabinet-doc +%description help +Organize changelogs generated by ``versionadded``, ``versionchanged``, +``deprecated`` directives. The log will be sorted by newest to oldest +version. For HTML docs, older versions will be collapsed by default. +Install: + $ pip install sphinxcontrib-log-cabinet +Enable: + extensions = [ + "sphinxcontrib.log_cabinet", + ] +Configure: +``log_cabinet_collapse_all`` + By default, current changes and deprecations are not collapsed. Set + this to ``True`` to collapse all changes. + +%prep +%autosetup -n sphinxcontrib-log-cabinet-1.0.1 + +%build +%py3_build + +%install +%py3_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-sphinxcontrib-log-cabinet -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.1-1 +- Package Spec generated @@ -0,0 +1 @@ +50e9b6e692689c605862a3f9b5c6c936 sphinxcontrib-log-cabinet-1.0.1.tar.gz |