summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 06:53:51 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 06:53:51 +0000
commit940b88b892d0f4120d67b389b7f5ff55adc0f319 (patch)
treec812a53f1c9f4722a977777ed998abdeb83e89d6
parenta2d9b4d4dd625e9bb1ae32fed9b8c8ce6ae55cd1 (diff)
automatic import of python-flask-moment
-rw-r--r--.gitignore1
-rw-r--r--python-flask-moment.spec80
-rw-r--r--sources1
3 files changed, 82 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..ffdc374 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/Flask-Moment-1.0.5.tar.gz
diff --git a/python-flask-moment.spec b/python-flask-moment.spec
new file mode 100644
index 0000000..32942cc
--- /dev/null
+++ b/python-flask-moment.spec
@@ -0,0 +1,80 @@
+%global _empty_manifest_terminate_build 0
+Name: python-Flask-Moment
+Version: 1.0.5
+Release: 1
+Summary: Formatting of dates and times in Flask templates using moment.js.
+License: MIT License
+URL: https://github.com/miguelgrinberg/flask-moment
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5b/db/3fbc023b087ec95d04991bd053e92702b92a24968cc9935598a8f7045832/Flask-Moment-1.0.5.tar.gz
+BuildArch: noarch
+
+Requires: python3-Flask
+Requires: python3-packaging
+
+%description
+[![Build status](https://github.com/miguelgrinberg/flask-moment/workflows/build/badge.svg)](https://github.com/miguelgrinberg/flask-moment/actions) [![codecov](https://codecov.io/gh/miguelgrinberg/flask-moment/branch/main/graph/badge.svg)](https://codecov.io/gh/miguelgrinberg/flask-moment)
+This extension enhances Jinja2 templates with formatting of dates and times
+using [moment.js](https://momentjs.com/).
+
+%package -n python3-Flask-Moment
+Summary: Formatting of dates and times in Flask templates using moment.js.
+Provides: python-Flask-Moment
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-Flask-Moment
+[![Build status](https://github.com/miguelgrinberg/flask-moment/workflows/build/badge.svg)](https://github.com/miguelgrinberg/flask-moment/actions) [![codecov](https://codecov.io/gh/miguelgrinberg/flask-moment/branch/main/graph/badge.svg)](https://codecov.io/gh/miguelgrinberg/flask-moment)
+This extension enhances Jinja2 templates with formatting of dates and times
+using [moment.js](https://momentjs.com/).
+
+%package help
+Summary: Development documents and examples for Flask-Moment
+Provides: python3-Flask-Moment-doc
+%description help
+[![Build status](https://github.com/miguelgrinberg/flask-moment/workflows/build/badge.svg)](https://github.com/miguelgrinberg/flask-moment/actions) [![codecov](https://codecov.io/gh/miguelgrinberg/flask-moment/branch/main/graph/badge.svg)](https://codecov.io/gh/miguelgrinberg/flask-moment)
+This extension enhances Jinja2 templates with formatting of dates and times
+using [moment.js](https://momentjs.com/).
+
+%prep
+%autosetup -n Flask-Moment-1.0.5
+
+%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-Flask-Moment -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..2eaa8ea
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+32e462a9ddc0fcb8b509225f0864cc58 Flask-Moment-1.0.5.tar.gz