summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-10 07:27:14 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-10 07:27:14 +0000
commitb96addec83dd5de0572d402c7a6cf73e3e88436c (patch)
tree32173de5c4fdee028f1828e950af3e7b83d05002
parent962a61da515cb24a289d477f888fb6aa442ae7e9 (diff)
automatic import of python-django-bcrypt
-rw-r--r--.gitignore1
-rw-r--r--python-django-bcrypt.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..8addd85 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-bcrypt-0.9.2.tar.gz
diff --git a/python-django-bcrypt.spec b/python-django-bcrypt.spec
new file mode 100644
index 0000000..9424f51
--- /dev/null
+++ b/python-django-bcrypt.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-django-bcrypt
+Version: 0.9.2
+Release: 1
+Summary: Make Django use bcrypt for hashing passwords.
+License: UNKNOWN
+URL: http://bitbucket.org/dwaiter/django-bcrypt/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/22/05/c18aa9c41fc6efec2cc1662e0f6bb0fb81a7bbf52d14f392b661e28c9464/django-bcrypt-0.9.2.tar.gz
+BuildArch: noarch
+
+
+%description
+`You should be using bcrypt`_.
+ http://codahale.com/how-to-safely-store-a-password/
+django-bcrypt makes it easy to use bcrypt to hash passwords with Django.
+
+%package -n python3-django-bcrypt
+Summary: Make Django use bcrypt for hashing passwords.
+Provides: python-django-bcrypt
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-django-bcrypt
+`You should be using bcrypt`_.
+ http://codahale.com/how-to-safely-store-a-password/
+django-bcrypt makes it easy to use bcrypt to hash passwords with Django.
+
+%package help
+Summary: Development documents and examples for django-bcrypt
+Provides: python3-django-bcrypt-doc
+%description help
+`You should be using bcrypt`_.
+ http://codahale.com/how-to-safely-store-a-password/
+django-bcrypt makes it easy to use bcrypt to hash passwords with Django.
+
+%prep
+%autosetup -n django-bcrypt-0.9.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-bcrypt -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.9.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..8365272
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+3ea23874c4a82e1e21ad5043bb3eb1e3 django-bcrypt-0.9.2.tar.gz