diff --git a/csvkit-1.0.6.tar.gz b/csvkit-1.0.6.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..b2a210e9feed8800da60545a7d85bd4bc092d074 Binary files /dev/null and b/csvkit-1.0.6.tar.gz differ diff --git a/python-csvkit.spec b/python-csvkit.spec new file mode 100644 index 0000000000000000000000000000000000000000..eb47d3df0c7e0e2f9302856d4c4de30fe29c8c69 --- /dev/null +++ b/python-csvkit.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-csvkit +Version: 1.0.6 +Release: 1 +Summary: A suite of command-line tools for working with CSV, the king of tabular file formats. +License: MIT +URL: https://github.com/wireservice/csvkit +Source0: https://files.pythonhosted.org/packages/b6/88/bdd8b8c77e8d8681b69d6689ca2a585d44eab2db23926a2c9e581a5ddd4b/csvkit-1.0.6.tar.gz +BuildArch: noarch + +Requires: python3-agate +Requires: python3-agate-excel +Requires: python3-agate-dbf +Requires: python3-agate-sql +Requires: python3-six +Requires: python3-setuptools +Requires: python3-argparse +Requires: python3-ordereddict +Requires: python3-simplejson +Requires: python3-sphinx +Requires: python3-sphinx-rtd-theme +Requires: python3-coverage +Requires: python3-nose + +%description +A suite of utilities for converting to and working with CSV, the king of tabular file formats. + +%package -n python3-csvkit +Summary: A suite of command-line tools for working with CSV, the king of tabular file formats. +Provides: python-csvkit +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-csvkit +A suite of utilities for converting to and working with CSV, the king of tabular file formats. + +%package help +Summary: Development documents and examples for csvkit +Provides: python3-csvkit-doc +%description help +A suite of utilities for converting to and working with CSV, the king of tabular file formats. + +%prep +%autosetup -n csvkit-1.0.6 + +%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-csvkit -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Dec 09 2021 Python_Bot - 1.0.6-1 +- Package Init