diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:40:41 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:40:41 +0000 |
commit | 1fa56bea1329b7504507860fbe60e5b8a0dff4fb (patch) | |
tree | b479277c415f21287d30272d455d7bebbd1e082d | |
parent | 0f812f0a3d15cff5723e797012d41cf2b2f4db96 (diff) |
automatic import of python-django-statici18n
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-django-statici18n.spec | 74 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 76 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-statici18n-2.3.1.tar.gz diff --git a/python-django-statici18n.spec b/python-django-statici18n.spec new file mode 100644 index 0000000..0e83573 --- /dev/null +++ b/python-django-statici18n.spec @@ -0,0 +1,74 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-statici18n +Version: 2.3.1 +Release: 1 +Summary: A Django app that compiles i18n JavaScript catalogs to static files. +License: BSD +URL: http://django-statici18n.readthedocs.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/2b/30/7e3ada5858c36822b1032ef24d894066df8c30dbfee016e1e9198d95906e/django-statici18n-2.3.1.tar.gz +BuildArch: noarch + +Requires: python3-Django +Requires: python3-django-appconf + +%description + + +%package -n python3-django-statici18n +Summary: A Django app that compiles i18n JavaScript catalogs to static files. +Provides: python-django-statici18n +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-statici18n + + +%package help +Summary: Development documents and examples for django-statici18n +Provides: python3-django-statici18n-doc +%description help + + +%prep +%autosetup -n django-statici18n-2.3.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-django-statici18n -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 2.3.1-1 +- Package Spec generated @@ -0,0 +1 @@ +dbeb3bdfdd61a87bfbd0b36bc00dceea django-statici18n-2.3.1.tar.gz |