diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:01:51 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 06:01:51 +0000 |
commit | 4181dbca3bd89ec93b50238c80191bc58be1e428 (patch) | |
tree | ec170bc2e9a1d862ee61f560c4cf9f06b3f850b2 | |
parent | e1e22250bd3ff3f57dfc65056f88191583fdd416 (diff) |
automatic import of python-ostructopeneuler20.03
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ostruct.spec | 81 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 83 insertions, 0 deletions
@@ -0,0 +1 @@ +/ostruct-4.0.0.tar.gz diff --git a/python-ostruct.spec b/python-ostruct.spec new file mode 100644 index 0000000..d2012d3 --- /dev/null +++ b/python-ostruct.spec @@ -0,0 +1,81 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ostruct +Version: 4.0.0 +Release: 1 +Summary: OpenStruct Data Structure +License: MIT +URL: http://github.com/hamidnazari/python-ostruct +Source0: https://mirrors.aliyun.com/pypi/web/packages/07/d8/0f0a681e39b9938fc60889e230656a7e5d654538730fa7a584b70ab00d17/ostruct-4.0.0.tar.gz +BuildArch: noarch + + +%description +OpenStruct, the flexible data structure. + + + + +%package -n python3-ostruct +Summary: OpenStruct Data Structure +Provides: python-ostruct +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-ostruct +OpenStruct, the flexible data structure. + + + + +%package help +Summary: Development documents and examples for ostruct +Provides: python3-ostruct-doc +%description help +OpenStruct, the flexible data structure. + + + + +%prep +%autosetup -n ostruct-4.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-ostruct -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 4.0.0-1 +- Package Spec generated @@ -0,0 +1 @@ +bf5d33761e0fa93912dd2d9c74b749aa ostruct-4.0.0.tar.gz |