diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:35:01 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 10:35:01 +0000 |
| commit | 29f9d53caea29b6ebd8d316bec84d728c2fd8a76 (patch) | |
| tree | c1f0692612a54a94c2e5edd124a234c8937433fc /python-pulp-2to3-migration.spec | |
| parent | 6194bf5152c8456ea5543abd9a09c6afbe1c72f2 (diff) | |
automatic import of python-pulp-2to3-migration
Diffstat (limited to 'python-pulp-2to3-migration.spec')
| -rw-r--r-- | python-pulp-2to3-migration.spec | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/python-pulp-2to3-migration.spec b/python-pulp-2to3-migration.spec new file mode 100644 index 0000000..a72717c --- /dev/null +++ b/python-pulp-2to3-migration.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pulp-2to3-migration +Version: 0.17.0 +Release: 1 +Summary: Pulp 2 to Pulp 3 migration tool +License: GPLv2+ +URL: http://www.pulpproject.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/11/97/0efdde79cb5d47daa134bbca738de14d452589b1afe7b07465f7e18b808d/pulp-2to3-migration-0.17.0.tar.gz +BuildArch: noarch + +Requires: python3-pulpcore +Requires: python3-pymongo +Requires: python3-mongoengine +Requires: python3-semantic-version +Requires: python3-jsonschema + +%description + + +%package -n python3-pulp-2to3-migration +Summary: Pulp 2 to Pulp 3 migration tool +Provides: python-pulp-2to3-migration +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pulp-2to3-migration + + +%package help +Summary: Development documents and examples for pulp-2to3-migration +Provides: python3-pulp-2to3-migration-doc +%description help + + +%prep +%autosetup -n pulp-2to3-migration-0.17.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-pulp-2to3-migration -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 0.17.0-1 +- Package Spec generated |
