From 5b2cba7e89eb5988d3499e4e990c652739b9fc65 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 23 Feb 2023 08:45:55 +0000 Subject: automatic import of python3-ajpy --- python-ajpy.spec | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 python-ajpy.spec (limited to 'python-ajpy.spec') diff --git a/python-ajpy.spec b/python-ajpy.spec new file mode 100644 index 0000000..900bd83 --- /dev/null +++ b/python-ajpy.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ajpy +Version: 0.0.5 +Release: 1 +Summary: AJP package crafting library +License: BSD +URL: https://github.com/hypn0s/AJPy/ +Source0: https://files.pythonhosted.org/packages/d0/51/cf7473848bfe8805e4e899a1df7472e90f79f83fe88ab766a5f6f1c4b2b9/ajpy-0.0.5.tar.gz +BuildArch: noarch + + +%description +AJPy aims to craft AJP requests in order to communicate with AJP connectors. + + + + +%package -n python3-ajpy +Summary: AJP package crafting library +Provides: python-ajpy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +%description -n python3-ajpy +AJPy aims to craft AJP requests in order to communicate with AJP connectors. + + + + +%package help +Summary: Development documents and examples for ajpy +Provides: python3-ajpy-doc +%description help +AJPy aims to craft AJP requests in order to communicate with AJP connectors. + + + + +%prep +%autosetup -n ajpy-0.0.5 + +%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-ajpy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Feb 23 2023 Python_Bot - 0.0.5-1 +- Package Spec generated -- cgit v1.2.3