From 618e05f0e552719503aaedf308c43565bc5a303b Mon Sep 17 00:00:00 2001 From: 17764591921 Date: Mon, 6 Jul 2020 20:24:02 +0800 Subject: [PATCH 1/2] init package --- aiofiles-0.5.0.tar.gz | Bin 0 -> 9543 bytes python-aiofiles.spec | 110 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 aiofiles-0.5.0.tar.gz create mode 100644 python-aiofiles.spec diff --git a/aiofiles-0.5.0.tar.gz b/aiofiles-0.5.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..492513d5123839930484678d32e6783e056a2959 GIT binary patch literal 9543 zcmbW6Wm6jr!>n<4XmE$(QV8zu?o!->Q=~8aetkE5}UHg>mx%zL)(d>*(3qm}51g7z=R}5;>~+Zsn)Gx6a@qBsuk;4y-Fk z2S4KnB!hy2o|BPrGu0@3n&)sHA{Q?b`FwtFi!ZMY^_@rcANxe~l0BhhoU zRaE#w&#RpWe;R$c{Ut(gW$%;e+H+!USp@5Q3TK^{lepTtQlp5YL}EkHkuxw5ta-Bg zuWY2)7w|$k0o*&WeB`Ekfw0hx8^c-D-YT}WWDXL6lzb|t>xLg~H+@g*PRFH z_tHZC5t_i!=|{C!q2N63DnW#sOm4px)_umzr>VU-G@QPVz`^NH!xaNE05vjyoczi<%a0HD+;wmAqf9MbVb7h;G`%n9d={}4&U_m| zMn!mJkkBMLcB+QkaT`xYo(a`dTe$+??JNz&y63H5wP25b8{}jpvgHPgym4Qv-~njQ zs;%~!2W3yE%_b^o$O-?x8=uicUcB>iDySr^)!7p`T^pXzil0a8nO6vp&QX~dM1KHc zvxQHh>!>XIhc@0{;#2V=->LpNOUa?UdLK@{h?K)|AP>X(NDzppN)gkP)v-w{dY*w0 zGFyBVZyB}*)$cTjzbX`1#_h2_WIywU{vdedk)_5#L)$KjlP4M=EgaR79sjB9O3uHE z)ym-B7??f_;3&QV#vI=H$x|Sr6(%x$ung>5YVT0uuG!5=IBiIueKMZ(L`#rR+}eN)WBVJ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3S z#ZMBCnLZaWXK#0Wy#9hDKFtONL?5N&sOET1IuS2g3X=19h}S{?r0gT7`Q75^=*_DD zr}&#b@7r@SjyoY!mt{H_FTrd)OCyZw(|RN**uO==Gq|->sWv)?Q`IPznwKgYF$R5G z-I664fXt2u^VWJ>%jOCdgl$F_nAoibTqdBD6pR{lDrpTB!80#4H}H6I*2~*CqW(=6 z0rz@5GK#uzom}@mPRH65+j zfvj!-3Q=Uy2U1;y*%YO0vvfZhj#uRF7vZz7?Ef&%aWCUc@dz5#^RP!rie>#;h1wQV z9`<%ES+AZ5xjeu2Uh~Mw!*^M_;5S>ZA#5{UUxW#m(yiJcO7RKkR=2s@1_JDr7G9Bc zP7qS#U^e{MuLlU>x4x)La0_8)k9O@Zz5|3+HUc4eWBokWl3y=?8n*R}Aa!_=Hbn4^ sBhG(!F2Lw(Ubi?AZDWY~8*uIaw>_-EQeAyT23JK}|07X~LZvX%Q literal 0 HcmV?d00001 diff --git a/python-aiofiles.spec b/python-aiofiles.spec new file mode 100644 index 0000000..846a05e --- /dev/null +++ b/python-aiofiles.spec @@ -0,0 +1,110 @@ +%global _empty_manifest_terminate_build 0 +Name: python-aiofiles +Version: 0.5.0 +Release: 1 +Summary: File support for asyncio. +License: Apache 2.0 +URL: https://github.com/Tinche/aiofiles +Source0: https://files.pythonhosted.org/packages/2b/64/437053d6a4ba3b3eea1044131a25b458489320cb9609e19ac17261e4dc9b/aiofiles-0.5.0.tar.gz +BuildArch: noarch + + +%description +**aiofiles** is an Apache2 licensed library, written in Python, for handling local +disk files in asyncio applications. +Ordinary local file IO is blocking, and cannot easily and portably made +asynchronous. This means doing file IO may interfere with asyncio applications, +which shouldn't block the executing thread. aiofiles helps with this by +introducing asynchronous versions of files that support delegating operations to +a separate thread pool. + async with aiofiles.open('filename', mode='r') as f: + contents = await f.read() + print(contents) + 'My file contents' +Asynchronous iteration is also supported. + async with aiofiles.open('filename') as f: + async for line in f: + +%package -n python3-aiofiles +Summary: File support for asyncio. +Provides: python-aiofiles +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-aiofiles +**aiofiles** is an Apache2 licensed library, written in Python, for handling local +disk files in asyncio applications. +Ordinary local file IO is blocking, and cannot easily and portably made +asynchronous. This means doing file IO may interfere with asyncio applications, +which shouldn't block the executing thread. aiofiles helps with this by +introducing asynchronous versions of files that support delegating operations to +a separate thread pool. + async with aiofiles.open('filename', mode='r') as f: + contents = await f.read() + print(contents) + 'My file contents' +Asynchronous iteration is also supported. + async with aiofiles.open('filename') as f: + async for line in f: + +%package help +Summary: Development documents and examples for aiofiles +Provides: python3-aiofiles-doc +%description help +**aiofiles** is an Apache2 licensed library, written in Python, for handling local +disk files in asyncio applications. +Ordinary local file IO is blocking, and cannot easily and portably made +asynchronous. This means doing file IO may interfere with asyncio applications, +which shouldn't block the executing thread. aiofiles helps with this by +introducing asynchronous versions of files that support delegating operations to +a separate thread pool. + async with aiofiles.open('filename', mode='r') as f: + contents = await f.read() + print(contents) + 'My file contents' +Asynchronous iteration is also supported. + async with aiofiles.open('filename') as f: + async for line in f: + +%prep +%autosetup -n aiofiles-0.5.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-aiofiles -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Jul 06 2020 Python_Bot +- Package Spec generated -- Gitee From 15585dc85c376c2aeca6e371020adbd63ba064c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=99=A8=E4=B8=9C?= Date: Thu, 9 Jul 2020 19:50:50 +0800 Subject: [PATCH 2/2] update python-aiofiles.spec. update description --- python-aiofiles.spec | 46 +++----------------------------------------- 1 file changed, 3 insertions(+), 43 deletions(-) diff --git a/python-aiofiles.spec b/python-aiofiles.spec index 846a05e..b8f1a87 100644 --- a/python-aiofiles.spec +++ b/python-aiofiles.spec @@ -8,22 +8,8 @@ URL: https://github.com/Tinche/aiofiles Source0: https://files.pythonhosted.org/packages/2b/64/437053d6a4ba3b3eea1044131a25b458489320cb9609e19ac17261e4dc9b/aiofiles-0.5.0.tar.gz BuildArch: noarch - %description -**aiofiles** is an Apache2 licensed library, written in Python, for handling local -disk files in asyncio applications. -Ordinary local file IO is blocking, and cannot easily and portably made -asynchronous. This means doing file IO may interfere with asyncio applications, -which shouldn't block the executing thread. aiofiles helps with this by -introducing asynchronous versions of files that support delegating operations to -a separate thread pool. - async with aiofiles.open('filename', mode='r') as f: - contents = await f.read() - print(contents) - 'My file contents' -Asynchronous iteration is also supported. - async with aiofiles.open('filename') as f: - async for line in f: +aiofiles is an Apache2 licensed library, written in Python, for handling local %package -n python3-aiofiles Summary: File support for asyncio. @@ -31,39 +17,13 @@ Provides: python-aiofiles BuildRequires: python3-devel BuildRequires: python3-setuptools %description -n python3-aiofiles -**aiofiles** is an Apache2 licensed library, written in Python, for handling local -disk files in asyncio applications. -Ordinary local file IO is blocking, and cannot easily and portably made -asynchronous. This means doing file IO may interfere with asyncio applications, -which shouldn't block the executing thread. aiofiles helps with this by -introducing asynchronous versions of files that support delegating operations to -a separate thread pool. - async with aiofiles.open('filename', mode='r') as f: - contents = await f.read() - print(contents) - 'My file contents' -Asynchronous iteration is also supported. - async with aiofiles.open('filename') as f: - async for line in f: +aiofiles is an Apache2 licensed library, written in Python, for handling local %package help Summary: Development documents and examples for aiofiles Provides: python3-aiofiles-doc %description help -**aiofiles** is an Apache2 licensed library, written in Python, for handling local -disk files in asyncio applications. -Ordinary local file IO is blocking, and cannot easily and portably made -asynchronous. This means doing file IO may interfere with asyncio applications, -which shouldn't block the executing thread. aiofiles helps with this by -introducing asynchronous versions of files that support delegating operations to -a separate thread pool. - async with aiofiles.open('filename', mode='r') as f: - contents = await f.read() - print(contents) - 'My file contents' -Asynchronous iteration is also supported. - async with aiofiles.open('filename') as f: - async for line in f: +aiofiles is an Apache2 licensed library, written in Python, for handling local %prep %autosetup -n aiofiles-0.5.0 -- Gitee