diff --git a/curio-1.5.tar.gz b/curio-1.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..54536b789c5f031ecd5f1fbedd25883a887019c9 Binary files /dev/null and b/curio-1.5.tar.gz differ diff --git a/curio.spec b/curio.spec new file mode 100644 index 0000000000000000000000000000000000000000..6031d70f1d7e1535aaa2c25642ba1c28bd7e63a2 --- /dev/null +++ b/curio.spec @@ -0,0 +1,70 @@ +%global _empty_manifest_terminate_build 0 +Name: python-curio +Version: 1.5 +Release: 1 +Summary: Curio +License: BSD +URL: https://github.com/dabeaz/curio +Source0: https://github.com/dabeaz/curio/archive/1.5/curio-1.5.tar.gz +BuildArch: noarch + +%description +Curio is a coroutine-based library for concurrent systems programming. + +%package -n python3-curio +Summary: Curio +Provides: python-curio +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-curio +Curio is a coroutine-based library for concurrent systems programming. + +%package help +Summary: Development documents and examples for curio +Provides: python3-curio-doc +%description help +Curio is a coroutine-based library for concurrent systems programming. + +%prep +%autosetup -n curio-1.5 + +%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-curio -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Jul 05 2021 liliang - 1.5-1 +- Init project \ No newline at end of file