diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:34:28 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:34:28 +0000 |
| commit | 0636c7d295a7e117b5da6e01791f7d8dc135ae80 (patch) | |
| tree | 1bce51773d53d48e58b74469d4f2e2fda9b72391 /python-django-email-obfuscator.spec | |
| parent | 6b580c3f7b829d1c859c1b63e96f2cd615439435 (diff) | |
automatic import of python-django-email-obfuscator
Diffstat (limited to 'python-django-email-obfuscator.spec')
| -rw-r--r-- | python-django-email-obfuscator.spec | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/python-django-email-obfuscator.spec b/python-django-email-obfuscator.spec new file mode 100644 index 0000000..2946658 --- /dev/null +++ b/python-django-email-obfuscator.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-email-obfuscator +Version: 0.1.5 +Release: 1 +Summary: A Django template filter to protect email addresses from crawlers. +License: MIT +URL: https://github.com/morninj/django-email-obfuscator +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f6/ef/476733a8dafacd240ca13e374c45c8142ff239171771dced719e526701de/django-email-obfuscator-0.1.5.tar.gz +BuildArch: noarch + + +%description +UNKNOWN + +%package -n python3-django-email-obfuscator +Summary: A Django template filter to protect email addresses from crawlers. +Provides: python-django-email-obfuscator +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-email-obfuscator +UNKNOWN + +%package help +Summary: Development documents and examples for django-email-obfuscator +Provides: python3-django-email-obfuscator-doc +%description help +UNKNOWN + +%prep +%autosetup -n django-email-obfuscator-0.1.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-django-email-obfuscator -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.5-1 +- Package Spec generated |
