diff --git a/python-spur.spec b/python-spur.spec new file mode 100644 index 0000000000000000000000000000000000000000..60dd098c428aff142615f7f12deddcfec9f9457f --- /dev/null +++ b/python-spur.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-spur +Version: 0.3.22 +Release: 1 +Summary: Run commands and manipulate files locally or over SSH using the same interface +License: BSD-2-Clause +URL: http://github.com/mwilliamson/spur.py +Source0: https://files.pythonhosted.org/packages/03/8a/8c0810dbf8140cb4765f770a2a45f118abcca38188427cb06bab83a42900/spur-0.3.22.tar.gz +BuildArch: noarch + + +%description +Executing the same command over SSH uses the same interface + +%package -n python3-spur +Summary: Run commands and manipulate files locally or over SSH using the same interface +Provides: python-spur +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-spur +Executing the same command over SSH uses the same interface + +%package help +Summary: Development documents and examples for spur +Provides: python3-spur-doc +%description help +Executing the same command over SSH uses the same interface + +%prep +%autosetup -n spur-0.3.22 + +%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-spur -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Sun May 30 2021 Python_Bot +- Package Spec generated diff --git a/spur-0.3.22.tar.gz b/spur-0.3.22.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..293b78bd35b0afab8fb738f35bb310372da44208 Binary files /dev/null and b/spur-0.3.22.tar.gz differ