diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:07:56 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 08:07:56 +0000 |
commit | 1d79e565fdce8c821f01a2e7e671f5800d34c3ff (patch) | |
tree | 1495f3bcec4ed074e642d707a1fe96e84a0cfd71 | |
parent | 726a27da73fc49d973535a1b02dc2db38b0be1d4 (diff) |
automatic import of python-Flask-MDEopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-flask-mde.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/Flask-MDE-1.2.1.tar.gz diff --git a/python-flask-mde.spec b/python-flask-mde.spec new file mode 100644 index 0000000..ef23f4f --- /dev/null +++ b/python-flask-mde.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-Flask-MDE +Version: 1.2.1 +Release: 1 +Summary: Pagedown for Flask +License: MIT +URL: https://github.com/bittobennichan/Flask-MDE +Source0: https://mirrors.aliyun.com/pypi/web/packages/51/e1/f5e56e598f7f0da48804160ac56a4077f336bc792dab6b09415e49339a34/Flask-MDE-1.2.1.tar.gz +BuildArch: noarch + +Requires: python3-Flask +Requires: python3-WTForms + +%description + + +%package -n python3-Flask-MDE +Summary: Pagedown for Flask +Provides: python-Flask-MDE +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-Flask-MDE + + +%package help +Summary: Development documents and examples for Flask-MDE +Provides: python3-Flask-MDE-doc +%description help + + +%prep +%autosetup -n Flask-MDE-1.2.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-Flask-MDE -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 1.2.1-1 +- Package Spec generated @@ -0,0 +1 @@ +c63102f9e8020bdbd42944b4057c3eac Flask-MDE-1.2.1.tar.gz |