diff --git a/python-validators.spec b/python-validators.spec new file mode 100644 index 0000000000000000000000000000000000000000..322c8fca2e06649b1285e6d5ffb0638b53b5e7a2 --- /dev/null +++ b/python-validators.spec @@ -0,0 +1,73 @@ +%global _empty_manifest_terminate_build 0 +Name: python-validators +Version: 0.20.0 +Release: 1 +Summary: Python Data Validation for Humans™. +License: MIT +URL: https://github.com/kvesteri/validators +Source0: https://files.pythonhosted.org/packages/95/14/ed0af6865d378cfc3c504aed0d278a890cbefb2f1934bf2dbe92ecf9d6b1/validators-0.20.0.tar.gz +BuildArch: noarch + +%description +Python Data Validation for Humans™. + +%package -n python3-validators +Summary: Python Data Validation for Humans™. +Provides: python-validators +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-validators +Python Data Validation for Humans™. + +%package help +Summary: Development documents and examples for validators +Provides: python3-validators-doc +%description help +Python Data Validation for Humans™. + +%prep +%autosetup -n validators-0.20.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-validators -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Aug 09 2022 liukuo - 0.20.0-1 +- Update version to 0.20.0 + +* Sun May 23 2021 Python_Bot +- Package Spec generated diff --git a/validators-0.20.0.tar.gz b/validators-0.20.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..5d2b6d57ba2be7445912a9d48ac32b481d9f1ad5 Binary files /dev/null and b/validators-0.20.0.tar.gz differ