diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 14:49:47 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 14:49:47 +0000 |
commit | 49da84816e0f690630154b7476dcea71d1017dfe (patch) | |
tree | 9da6095d6d856e93ef278b3987c2b6a6d58c8de1 | |
parent | 2f6388019707ac17dffdd0fad49d0042dac479af (diff) |
automatic import of python-osrf-pycommon
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-osrf-pycommon.spec | 73 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 75 insertions, 0 deletions
@@ -0,0 +1 @@ +/osrf_pycommon-2.0.2.tar.gz diff --git a/python-osrf-pycommon.spec b/python-osrf-pycommon.spec new file mode 100644 index 0000000..c4aff7a --- /dev/null +++ b/python-osrf-pycommon.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-osrf-pycommon +Version: 2.0.2 +Release: 1 +Summary: Commonly needed Python modules, used by Python software developed at OSRF +License: Apache 2.0 +URL: http://osrf-pycommon.readthedocs.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e1/5f/372510c5311800ff0587b3adf490e81d1d6ff064e2682dae50871e2ff1ef/osrf_pycommon-2.0.2.tar.gz +BuildArch: noarch + +Requires: python3-importlib-metadata + +%description + + +%package -n python3-osrf-pycommon +Summary: Commonly needed Python modules, used by Python software developed at OSRF +Provides: python-osrf-pycommon +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-osrf-pycommon + + +%package help +Summary: Development documents and examples for osrf-pycommon +Provides: python3-osrf-pycommon-doc +%description help + + +%prep +%autosetup -n osrf-pycommon-2.0.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-osrf-pycommon -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.2-1 +- Package Spec generated @@ -0,0 +1 @@ +cf5e21c79968f5ffb985d645ec9f016a osrf_pycommon-2.0.2.tar.gz |