From 12d25646433800f91b06ebf191f4cbfda933c756 Mon Sep 17 00:00:00 2001 From: yaozc701 Date: Tue, 6 Jul 2021 16:05:08 +0800 Subject: [PATCH] add source package and spec file --- python-rangehttpserver.spec | 72 +++++++++++++++++++++++++++++++++++ rangehttpserver-1.2.0.tar.gz | Bin 0 -> 2507 bytes 2 files changed, 72 insertions(+) create mode 100644 python-rangehttpserver.spec create mode 100644 rangehttpserver-1.2.0.tar.gz diff --git a/python-rangehttpserver.spec b/python-rangehttpserver.spec new file mode 100644 index 0000000..72430cc --- /dev/null +++ b/python-rangehttpserver.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-rangehttpserver +Version: 1.2.0 +Release: 1 +Summary: SimpleHTTPServer with support for Range requests +License: ASL 2.0 +URL: https://github.com/danvk/RangeHTTPServer/ +Source0: https://files.pythonhosted.org/packages/66/73/786ef8508d1dfd6ca3c73236f170246ce60ea7032d237231af73a9a03466/rangehttpserver-1.2.0.tar.gz +BuildArch: noarch + +%description +SimpleHTTPServer with support for Range requests. + +%package -n python3-rangehttpserver +Summary: SimpleHTTPServer with support for Range requests +Provides: python-rangehttpserver +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-rangehttpserver +SimpleHTTPServer with support for Range requests. + +%package help +Summary: Development documents and examples for rangehttpserver +Provides: python3-rangehttpserver-doc + +%description help +SimpleHTTPServer with support for Range requests. + +%prep +%autosetup -n rangehttpserver-1.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-rangehttpserver -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jul 06 2021 Python_Bot - 1.2.0-1 +- Package Spec generated diff --git a/rangehttpserver-1.2.0.tar.gz b/rangehttpserver-1.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0c079fa228dcfcb456f4a39ebca7da2a219b6cfc GIT binary patch literal 2507 zcmV;+2{iT}iwFq7lf+j7|72-%bT4vYZf9j^baZfYWpZ|9axF0~GA=MKbYXG;?Hg-z z+qlu6@hi|ghE&g@McI}*nyRgn_!7@0c4{ZN>9`&ZB!UuZl3)SQj_%jrE=Y=$!*KAIirtdA9qv@H5)2L=8141axiO_aTS8Rx$r&5^Z^Tg0=VP29S6O$P= zJPB~QF}I5{HRX%dMFMvqHZoT78vKf~D59_r30w87d+dSvkqm6B?iF6~x?*QI_Rbr4fX zCo-Ln#&g3*HiEb!LGf%;nVI|s-O3D)Wn%ATTHKDaP>bLA(C_`#?{xQCIb$G`x8f4) zY?c`jc}N_o$npPhhRN*(M=7IrJyfhUOrto9wMQ(O7ZP-47pB0hU6wM%K_QbU)8Y!G zU#w=YA}o->ED~ubayX#*PC(ZD(zTCU78%qYaq8#%A{aS>wF5e&u}IuvU-@3?Pt>RF zl9J(3o~sheS&^sQO2!h7OKOj5HW3v>4-W;ZI;wx z2tMFzsG>C`R$O^t4Nk}H(xXcQ7nnZif0nW$;UNXJMSY`?veXbq)oYsluZYPvB+xc#X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