diff --git a/python-shellingham.spec b/python-shellingham.spec new file mode 100644 index 0000000..63503ba --- /dev/null +++ b/python-shellingham.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-shellingham +Version: 1.5.4 +Release: 1 +Summary: Tool to Detect Surrounding Shell. +License: MIT +URL: https://github.com/sarugaku/shellingham +Source0: https://files.pythonhosted.org/packages/58/15/8b3609fd3830ef7b27b655beb4b4e9c62313a4e8da8c676e142cc210d58e/shellingham-1.5.4.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling + +%description +Tool to Detect Surrounding Shell. + +%package -n python3-shellingham +Summary: Tool to Detect Surrounding Shell. +Provides: python-shellingham +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-hatchling +%description -n python3-shellingham +Tool to Detect Surrounding Shell. + +%package help +Summary: Development documents and examples for shellingham +Provides: python3-shellingham-doc + +%description help +Development documents and examples for shellingham. + +%prep +%autosetup -n shellingham-%{version} +sed -i 's/\~=/\>=/g' pyproject.toml + +%build +%pyproject_build + +%install +%pyproject_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} +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}/doclist.lst . + +%files -n python3-shellingham +%doc README.rst +%license LICENSE +%{python3_sitelib}/shellingham +%{python3_sitelib}/shellingham*.dist-info/ + + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Nov 29 2023 Dongxing Wang - 1.5.4-1 +- Init package diff --git a/shellingham-1.5.4.tar.gz b/shellingham-1.5.4.tar.gz new file mode 100644 index 0000000..30d06f0 Binary files /dev/null and b/shellingham-1.5.4.tar.gz differ