diff options
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-webhelpers2.spec | 87 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 89 insertions, 0 deletions
@@ -0,0 +1 @@ +/WebHelpers2-2.0.tar.gz 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 @@ -0,0 +1 @@ +0f6b68d70c12ee0aed48c00b24da13d3 WebHelpers2-2.0.tar.gz |
