diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-15 05:16:39 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 05:16:39 +0000 |
| commit | 595d73b241975d9f5d299a96752165ec639ee20f (patch) | |
| tree | f8e64ea6137c2c0a21bc766dd22afee6e30889ad /python-django-upgrade.spec | |
| parent | f3ad1cab20f608c64320680fa0e50d9cee87bf79 (diff) | |
automatic import of python-django-upgrade
Diffstat (limited to 'python-django-upgrade.spec')
| -rw-r--r-- | python-django-upgrade.spec | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/python-django-upgrade.spec b/python-django-upgrade.spec new file mode 100644 index 0000000..501ff86 --- /dev/null +++ b/python-django-upgrade.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-django-upgrade +Version: 1.13.0 +Release: 1 +Summary: Automatically upgrade your Django project code. +License: MIT +URL: https://github.com/adamchainz/django-upgrade +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1d/9f/1671a1b8d578dc8aa5dea2a8d93fb9954360cdd3c5305a519324f6b7a013/django_upgrade-1.13.0.tar.gz +BuildArch: noarch + +Requires: python3-tokenize-rt + +%description + + +%package -n python3-django-upgrade +Summary: Automatically upgrade your Django project code. +Provides: python-django-upgrade +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-django-upgrade + + +%package help +Summary: Development documents and examples for django-upgrade +Provides: python3-django-upgrade-doc +%description help + + +%prep +%autosetup -n django-upgrade-1.13.0 + +%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-upgrade -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.13.0-1 +- Package Spec generated |
