summaryrefslogtreecommitdiff
path: root/python-sphinx-intl.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 17:02:02 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 17:02:02 +0000
commit55b44053a5dae4bb8d157a584f1bcfcd7a9cd5f9 (patch)
tree5173f97e517c017ee9d0a64c4aecb13ff34c223d /python-sphinx-intl.spec
parent8521d767ec23700c93a846b08e61732e72e67071 (diff)
automatic import of python-sphinx-intl
Diffstat (limited to 'python-sphinx-intl.spec')
-rw-r--r--python-sphinx-intl.spec79
1 files changed, 79 insertions, 0 deletions
diff --git a/python-sphinx-intl.spec b/python-sphinx-intl.spec
new file mode 100644
index 0000000..7db5a7c
--- /dev/null
+++ b/python-sphinx-intl.spec
@@ -0,0 +1,79 @@
+%global _empty_manifest_terminate_build 0
+Name: python-sphinx-intl
+Version: 2.1.0
+Release: 1
+Summary: Sphinx utility that make it easy to translate and to apply translation.
+License: BSD License
+URL: https://github.com/sphinx-doc/sphinx-intl
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/3f/49/9229216d3fdce197912e4756e044f3d3fbac73326ef8a49af186d7c2832b/sphinx-intl-2.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-setuptools
+Requires: python3-click
+Requires: python3-babel
+Requires: python3-sphinx
+Requires: python3-pytest
+Requires: python3-mock
+Requires: python3-six
+
+%description
+
+
+%package -n python3-sphinx-intl
+Summary: Sphinx utility that make it easy to translate and to apply translation.
+Provides: python-sphinx-intl
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-sphinx-intl
+
+
+%package help
+Summary: Development documents and examples for sphinx-intl
+Provides: python3-sphinx-intl-doc
+%description help
+
+
+%prep
+%autosetup -n sphinx-intl-2.1.0
+
+%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-sphinx-intl -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.1.0-1
+- Package Spec generated