diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 03:33:37 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 03:33:37 +0000 |
| commit | 127d92263ef453d2d7f2eea679c96154015af2cf (patch) | |
| tree | 20764f3cfcb317b6d6adc2e56447ad0e4b17ce47 | |
| parent | 59aefe6fec43301b537c299a1db5523b960456a4 (diff) | |
automatic import of python-django-markupopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-django-markup.spec | 81 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-markup-1.7.2.tar.gz diff --git a/python-django-markup.spec b/python-django-markup.spec new file mode 100644 index 0000000..e312146 --- /dev/null +++ b/python-django-markup.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-markup +Version: 1.7.2 +Release: 1 +Summary: A generic Django application to convert text with specific markup to html. +License: MIT +URL: https://github.com/bartTC/django-markup +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e8/fc/501d4177937e3641288fc37faf479560372cb6536dd09a75ac280a29fa0e/django-markup-1.7.2.tar.gz +BuildArch: noarch + +Requires: python3-django +Requires: python3-textile +Requires: python3-smartypants +Requires: python3-docutils +Requires: python3-pygments +Requires: python3-markdown +Requires: python3-bleach +Requires: python3-creole +Requires: python3-pygments + +%description + + +%package -n python3-django-markup +Summary: A generic Django application to convert text with specific markup to html. +Provides: python-django-markup +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-markup + + +%package help +Summary: Development documents and examples for django-markup +Provides: python3-django-markup-doc +%description help + + +%prep +%autosetup -n django-markup-1.7.2 + +%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-django-markup -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 1.7.2-1 +- Package Spec generated @@ -0,0 +1 @@ +383a831bfc1af3603791bf2d9ae550dc django-markup-1.7.2.tar.gz |
