From c493df558ecda88516141f600d47e90c95356549 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 20 Jun 2023 09:21:46 +0000 Subject: automatic import of python-soft-delete --- .gitignore | 1 + python-soft-delete.spec | 80 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 82 insertions(+) create mode 100644 python-soft-delete.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..347b7bb 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/soft-delete-0.2.2.tar.gz diff --git a/python-soft-delete.spec b/python-soft-delete.spec new file mode 100644 index 0000000..5eea825 --- /dev/null +++ b/python-soft-delete.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-soft-delete +Version: 0.2.2 +Release: 1 +Summary: Abstraction to logical/soft delete in django models +License: MIT +URL: https://www.collabo.com.br/ +Source0: https://mirrors.aliyun.com/pypi/web/packages/89/4e/770cc7df017ba22787102feab965ce27425c52fcb386d9c42fcadfc7a03f/soft-delete-0.2.2.tar.gz +BuildArch: noarch + +Requires: python3-coverage +Requires: python3-Django + +%description +[![Build Status](https://travis-ci.org/collabo-br/django-soft-delete.svg?branch=master)](https://travis-ci.org/collabo-br/django-soft-delete) +[![codecov](https://codecov.io/gh/collabo-br/django-soft-delete/branch/master/graph/badge.svg)](https://codecov.io/gh/collabo-br/django-soft-delete) +Django Soft Delete gives Django models the ability to soft delete(logical delete). it also gives the ability to restore or undelete soft-deleted instances. + +%package -n python3-soft-delete +Summary: Abstraction to logical/soft delete in django models +Provides: python-soft-delete +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-soft-delete +[![Build Status](https://travis-ci.org/collabo-br/django-soft-delete.svg?branch=master)](https://travis-ci.org/collabo-br/django-soft-delete) +[![codecov](https://codecov.io/gh/collabo-br/django-soft-delete/branch/master/graph/badge.svg)](https://codecov.io/gh/collabo-br/django-soft-delete) +Django Soft Delete gives Django models the ability to soft delete(logical delete). it also gives the ability to restore or undelete soft-deleted instances. + +%package help +Summary: Development documents and examples for soft-delete +Provides: python3-soft-delete-doc +%description help +[![Build Status](https://travis-ci.org/collabo-br/django-soft-delete.svg?branch=master)](https://travis-ci.org/collabo-br/django-soft-delete) +[![codecov](https://codecov.io/gh/collabo-br/django-soft-delete/branch/master/graph/badge.svg)](https://codecov.io/gh/collabo-br/django-soft-delete) +Django Soft Delete gives Django models the ability to soft delete(logical delete). it also gives the ability to restore or undelete soft-deleted instances. + +%prep +%autosetup -n soft-delete-0.2.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-soft-delete -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot - 0.2.2-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..e9d9ba4 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d5b21a5a594b6319ccf42c5f74fcb12e soft-delete-0.2.2.tar.gz -- cgit v1.2.3