diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 08:14:34 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 08:14:34 +0000 |
commit | d744af66a34a139db8021275b3efc325aac42df9 (patch) | |
tree | 4c6cc1777be792c604af62fd485881d9650ced97 | |
parent | 7433c3154e9960e0998d65ba4cabaac63b4accba (diff) |
automatic import of python-google-pasta
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-google-pasta.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/google-pasta-0.2.0.tar.gz diff --git a/python-google-pasta.spec b/python-google-pasta.spec new file mode 100644 index 0000000..048df3f --- /dev/null +++ b/python-google-pasta.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-google-pasta +Version: 0.2.0 +Release: 1 +Summary: pasta is an AST-based Python refactoring library +License: Apache 2.0 +URL: https://github.com/google/pasta +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/35/4a/0bd53b36ff0323d10d5f24ebd67af2de10a1117f5cf4d7add90df92756f1/google-pasta-0.2.0.tar.gz +BuildArch: noarch + +Requires: python3-six + +%description + + +%package -n python3-google-pasta +Summary: pasta is an AST-based Python refactoring library +Provides: python-google-pasta +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-google-pasta + + +%package help +Summary: Development documents and examples for google-pasta +Provides: python3-google-pasta-doc +%description help + + +%prep +%autosetup -n google-pasta-0.2.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-google-pasta -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated @@ -0,0 +1 @@ +7c218a4a0d84303b9319352040fbfce6 google-pasta-0.2.0.tar.gz |