diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:17:00 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 00:17:00 +0000 |
| commit | 05a7ca415cb1af4f86093443ddc9c7d454a74a33 (patch) | |
| tree | d652b6e52523c25b22831f6121c72e9aa66daf59 | |
| parent | e68ff49058c465924c81cb0a76bc92066281ef56 (diff) | |
automatic import of python-django-babel
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-django-babel.spec | 84 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/django-babel-0.6.2.tar.gz diff --git a/python-django-babel.spec b/python-django-babel.spec new file mode 100644 index 0000000..29287f1 --- /dev/null +++ b/python-django-babel.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-babel +Version: 0.6.2 +Release: 1 +Summary: Utilities for using Babel in Django +License: BSD +URL: https://github.com/python-babel/django-babel/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/87/e2/a009668c03148a62bc1d9cb6a30769de1eeab12e70824b609d5b405b5f6e/django-babel-0.6.2.tar.gz +BuildArch: noarch + + +%description +This package contains various utilities for integration of `Babel`_ into the +`Django`_ web framework: + * A message extraction plugin for Django templates. + * A middleware class that adds the Babel `Locale`_ object to requests. + * A set of template tags for date and number formatting. + +%package -n python3-django-babel +Summary: Utilities for using Babel in Django +Provides: python-django-babel +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-babel +This package contains various utilities for integration of `Babel`_ into the +`Django`_ web framework: + * A message extraction plugin for Django templates. + * A middleware class that adds the Babel `Locale`_ object to requests. + * A set of template tags for date and number formatting. + +%package help +Summary: Development documents and examples for django-babel +Provides: python3-django-babel-doc +%description help +This package contains various utilities for integration of `Babel`_ into the +`Django`_ web framework: + * A message extraction plugin for Django templates. + * A middleware class that adds the Babel `Locale`_ object to requests. + * A set of template tags for date and number formatting. + +%prep +%autosetup -n django-babel-0.6.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-babel -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.6.2-1 +- Package Spec generated @@ -0,0 +1 @@ +a5483952426d1cd749e7204902b34d63 django-babel-0.6.2.tar.gz |
