summaryrefslogtreecommitdiff
path: root/python-webhelpers2.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 09:23:29 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 09:23:29 +0000
commit1ff5bfb0a2a7110f188a985a9ff39e58d560fd9a (patch)
tree7893d68d19a32df7de440ad5a39eef81adf689fc /python-webhelpers2.spec
parent2c7d5d8773f6f8526d193eee0844f5ff20c7d3b0 (diff)
automatic import of python-webhelpers2
Diffstat (limited to 'python-webhelpers2.spec')
-rw-r--r--python-webhelpers2.spec87
1 files changed, 87 insertions, 0 deletions
diff --git a/python-webhelpers2.spec b/python-webhelpers2.spec
new file mode 100644
index 0000000..29f9a8d
--- /dev/null
+++ b/python-webhelpers2.spec
@@ -0,0 +1,87 @@
+%global _empty_manifest_terminate_build 0
+Name: python-WebHelpers2
+Version: 2.0
+Release: 1
+Summary: WebHelpers2
+License: UNKNOWN
+URL: https://webhelpers2.readthedocs.org/en/latest/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ff/30/56342c6ea522439e3662427c8d7b5e5b390dff4ff2dc92d8afcb8ab68b75/WebHelpers2-2.0.tar.gz
+BuildArch: noarch
+
+
+%description
+WebHelpers2 is the successor to the widely-used WebHelpers utilities.
+It contains convenience functions to make HTML tags, process text, format numbers, do basic statistics, work with collections, and more.
+
+Version 2.0 is the final release. (Version 1 was skipped to avoid confusion with WebHelpers 1.3.)
+
+Migrating from WebHelpers 1.3 docs: Click "Home Page" below, then "Migrating from WebHelpers".
+
+%package -n python3-WebHelpers2
+Summary: WebHelpers2
+Provides: python-WebHelpers2
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-WebHelpers2
+WebHelpers2 is the successor to the widely-used WebHelpers utilities.
+It contains convenience functions to make HTML tags, process text, format numbers, do basic statistics, work with collections, and more.
+
+Version 2.0 is the final release. (Version 1 was skipped to avoid confusion with WebHelpers 1.3.)
+
+Migrating from WebHelpers 1.3 docs: Click "Home Page" below, then "Migrating from WebHelpers".
+
+%package help
+Summary: Development documents and examples for WebHelpers2
+Provides: python3-WebHelpers2-doc
+%description help
+WebHelpers2 is the successor to the widely-used WebHelpers utilities.
+It contains convenience functions to make HTML tags, process text, format numbers, do basic statistics, work with collections, and more.
+
+Version 2.0 is the final release. (Version 1 was skipped to avoid confusion with WebHelpers 1.3.)
+
+Migrating from WebHelpers 1.3 docs: Click "Home Page" below, then "Migrating from WebHelpers".
+
+%prep
+%autosetup -n WebHelpers2-2.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-WebHelpers2 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0-1
+- Package Spec generated