summaryrefslogtreecommitdiff
path: root/python-pipe.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 03:31:50 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 03:31:50 +0000
commit5914ed61e7e62cf2e6f5a4fee9ac8e193d768eb7 (patch)
treef9254a287afda0f70d4c3bb5dff2296d522b5f92 /python-pipe.spec
parent8617b4a4187ac380f4f651bc1d36dd1ade4197d3 (diff)
automatic import of python-pipe
Diffstat (limited to 'python-pipe.spec')
-rw-r--r--python-pipe.spec93
1 files changed, 93 insertions, 0 deletions
diff --git a/python-pipe.spec b/python-pipe.spec
new file mode 100644
index 0000000..120c81c
--- /dev/null
+++ b/python-pipe.spec
@@ -0,0 +1,93 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pipe
+Version: 2.0
+Release: 1
+Summary: Module enablig a sh like infix syntax (using pipes)
+License: MIT License
+URL: https://pypi.org/project/pipe/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ee/63/e03c4a74314b2735d83e752a2c6d3a01ab7a72cca6cde98abe102d9db21a/pipe-2.0.tar.gz
+BuildArch: noarch
+
+
+%description
+we are feeding in a: <class 'itertools.count'>
+the resulting object is: <generator object take at 0x7fefb5e70c10>
+when we force evaluation we get:
+processing at value 100
+processing at value 101
+processing at value 102
+processing at value 103
+processing at value 104
+
+%package -n python3-pipe
+Summary: Module enablig a sh like infix syntax (using pipes)
+Provides: python-pipe
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pipe
+we are feeding in a: <class 'itertools.count'>
+the resulting object is: <generator object take at 0x7fefb5e70c10>
+when we force evaluation we get:
+processing at value 100
+processing at value 101
+processing at value 102
+processing at value 103
+processing at value 104
+
+%package help
+Summary: Development documents and examples for pipe
+Provides: python3-pipe-doc
+%description help
+we are feeding in a: <class 'itertools.count'>
+the resulting object is: <generator object take at 0x7fefb5e70c10>
+when we force evaluation we get:
+processing at value 100
+processing at value 101
+processing at value 102
+processing at value 103
+processing at value 104
+
+%prep
+%autosetup -n pipe-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-pipe -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0-1
+- Package Spec generated