diff --git a/python-vulture.spec b/python-vulture.spec new file mode 100644 index 0000000000000000000000000000000000000000..c80614a58c55c86a9ee926134c4e802d472ff84b --- /dev/null +++ b/python-vulture.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-vulture +Version: 2.3 +Release: 1 +Summary: Vulture finds unused code in Python programs. +License: MIT +URL: https://github.com/jendrikseipp/vulture +Source0: https://files.pythonhosted.org/packages/30/8b/bf4765866521da744ca081f09184657c0dc4fd8ee910a2fd1043d2c7cd6e/vulture-2.3.tar.gz +BuildArch: noarch + +Requires: python3-toml + +%description +Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. + +%package -n python3-vulture +Summary: Find dead code +Provides: python-vulture +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-vulture +Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. + +%package help +Summary: Development documents and examples for vulture +Provides: python3-vulture-doc +%description help +Vulture finds unused code in Python programs. This is useful for cleaning up and finding errors in large code bases. If you run Vulture on both your library and test suite you can find untested code. + +%prep +%autosetup -n vulture-2.3 + +%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-vulture -f filelist.lst +%dir %{python3_sitelib}/vulture/__pycache__/ + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Oct 12 2021 Python_Bot - 2.3-1 +- Package Init diff --git a/vulture-2.3.tar.gz b/vulture-2.3.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..65e43e04736feec1d1de5aebf7138f43fbbbfb5e Binary files /dev/null and b/vulture-2.3.tar.gz differ