summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 00:12:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 00:12:17 +0000
commit50745a7641c304af243708db2db2e12db1a8f271 (patch)
tree601f1d7fec15056970f0bbd3af18877771fcaf2d
parent1bec73ac50045a193b71f892543d351abeffab43 (diff)
automatic import of python-django-resized
-rw-r--r--.gitignore1
-rw-r--r--python-django-resized.spec75
-rw-r--r--sources1
3 files changed, 77 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..3976fa9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-resized-1.0.2.tar.gz
diff --git a/python-django-resized.spec b/python-django-resized.spec
new file mode 100644
index 0000000..1ae13b9
--- /dev/null
+++ b/python-django-resized.spec
@@ -0,0 +1,75 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-resized
+Version: 1.0.2
+Release: 1
+Summary: Resizes image origin to specified size.
+License: MIT License
+URL: https://github.com/un1t/django-resized
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/30/4b/06699ab3dbe204602e86d3af8ee42835290de80ea0633781a6e6dc1a31b6/django-resized-1.0.2.tar.gz
+BuildArch: noarch
+
+
+%description
+- Tested on Django 2.2, 3.0, 3.1, 3.2, 4.0
+- Python 3 support
+
+%package -n python3-django-resized
+Summary: Resizes image origin to specified size.
+Provides: python-django-resized
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-resized
+- Tested on Django 2.2, 3.0, 3.1, 3.2, 4.0
+- Python 3 support
+
+%package help
+Summary: Development documents and examples for django-resized
+Provides: python3-django-resized-doc
+%description help
+- Tested on Django 2.2, 3.0, 3.1, 3.2, 4.0
+- Python 3 support
+
+%prep
+%autosetup -n django-resized-1.0.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-resized -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..c2fff8b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+ebbfe479d0dddeae158a51ba5baa21e1 django-resized-1.0.2.tar.gz