diff --git a/peewee-3.14.8.tar.gz b/peewee-3.14.8.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..9cf148363459db27580dca16c84d2eee73ef9aba Binary files /dev/null and b/peewee-3.14.8.tar.gz differ diff --git a/python-peewee.spec b/python-peewee.spec new file mode 100644 index 0000000000000000000000000000000000000000..748e427d86c7dedc6f178cb1d68f4fa5f11ba23c --- /dev/null +++ b/python-peewee.spec @@ -0,0 +1,71 @@ +%global _empty_manifest_terminate_build 0 +Name: python-peewee +Version: 3.14.8 +Release: 1 +Summary: a little orm +License: MIT +URL: https://github.com/coleifer/peewee/ +Source0: https://files.pythonhosted.org/packages/bc/02/7ad123e327bf339274f3ba407e747f23337c270bb25b94d7cc07fb0f52fc/peewee-3.14.8.tar.gz +BuildArch: noarch + + +%description +Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. + +%package -n python3-peewee +Summary: a little orm +Provides: python-peewee +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-peewee +Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. + +%package help +Summary: Development documents and examples for peewee +Provides: python3-peewee-doc +%description help +Peewee is a simple and small ORM. It has few (but expressive) concepts, making it easy to learn and intuitive to use. + +%prep +%autosetup -n peewee-3.14.8 + +%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-peewee -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Dec 16 2021 Python_Bot - 3.14.8-1 +- Package Init