summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 01:45:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 01:45:17 +0000
commit32e1bdba521766061613508bb991429720e502bc (patch)
tree6a8bd515d79bf29a5d268472d18fe4acd68fd94b
parent80dcf3698cfc2ed0a572aa135ca16f0113e1ac26 (diff)
automatic import of python-django-rosetta
-rw-r--r--.gitignore1
-rw-r--r--python-django-rosetta.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3f371cc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-rosetta-0.9.8.tar.gz
diff --git a/python-django-rosetta.spec b/python-django-rosetta.spec
new file mode 100644
index 0000000..a302b68
--- /dev/null
+++ b/python-django-rosetta.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-rosetta
+Version: 0.9.8
+Release: 1
+Summary: A Django application that eases the translation of Django projects
+License: MIT
+URL: https://github.com/mbi/django-rosetta
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/52/0e/f0a2abf55a45c75e78708c3a96d8b9eab9dbf3e7ae4b50e17cf465a3ce8f/django-rosetta-0.9.8.tar.gz
+BuildArch: noarch
+
+Requires: python3-Django
+Requires: python3-requests
+Requires: python3-polib
+
+%description
+
+
+%package -n python3-django-rosetta
+Summary: A Django application that eases the translation of Django projects
+Provides: python-django-rosetta
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-rosetta
+
+
+%package help
+Summary: Development documents and examples for django-rosetta
+Provides: python3-django-rosetta-doc
+%description help
+
+
+%prep
+%autosetup -n django-rosetta-0.9.8
+
+%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-rosetta -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.8-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..642b511
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+7cce5c6eb96df282c0009d1be7260bb2 django-rosetta-0.9.8.tar.gz