diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-29 11:56:40 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-29 11:56:40 +0000 |
| commit | da1bc8986b70bd96e8ef99ecd77924431efd1382 (patch) | |
| tree | cb5c17a1da50e4f00a7b082c090462eaacffb6aa | |
| parent | 3ca44619e5e5dbe457a5c65ef85c0170dc4bc3e3 (diff) | |
automatic import of python-environment
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-environment.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/environment-1.0.0.tar.gz diff --git a/python-environment.spec b/python-environment.spec new file mode 100644 index 0000000..1b9f7b5 --- /dev/null +++ b/python-environment.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-environment +Version: 1.0.0 +Release: 1 +Summary: This library provides parsing and validation of environment variables. +License: UNKNOWN +URL: https://environment-py.readthedocs.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ff/e7/3ea91d9ed699cbbe2155347b3bf2a515d0b79f4c7afb55c18b0488a5ed9d/environment-1.0.0.tar.gz +BuildArch: noarch + + +%description +UNKNOWN + +%package -n python3-environment +Summary: This library provides parsing and validation of environment variables. +Provides: python-environment +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-environment +UNKNOWN + +%package help +Summary: Development documents and examples for environment +Provides: python3-environment-doc +%description help +UNKNOWN + +%prep +%autosetup -n environment-1.0.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-environment -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 29 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +c079a6a0ed0a4d1fb6b8aee4340b8175 environment-1.0.0.tar.gz |
