summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 02:36:31 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-02-24 02:36:31 +0000
commitd706964b98e394424439e4827618a23c6bb3a52a (patch)
tree4a25c086c62f1d5a7cd2b50c0f20c986ab4dd7b7
parent535ebf88168b8c1b80a2735eb7dbe8f99385b16d (diff)
automatic import of python3-bodhi-messagesopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-bodhi-messages.spec72
-rw-r--r--sources1
3 files changed, 74 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cef8bb3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bodhi_messages-7.0.1.tar.gz
diff --git a/python-bodhi-messages.spec b/python-bodhi-messages.spec
new file mode 100644
index 0000000..d0eb63c
--- /dev/null
+++ b/python-bodhi-messages.spec
@@ -0,0 +1,72 @@
+%global _empty_manifest_terminate_build 0
+Name: python-bodhi-messages
+Version: 7.0.1
+Release: 1
+Summary: JSON schema for messages sent by Bodhi
+License: GPL-2.0-or-later
+URL: https://bodhi.fedoraproject.org
+Source0: https://files.pythonhosted.org/packages/20/de/f63ab0e3a249faf47e8b76c34365b05279d7366085506e2448f76b70be18/bodhi_messages-7.0.1.tar.gz
+BuildArch: noarch
+
+Requires: python3-fedora-messaging
+
+%description
+This package contains the schema for messages published by Bodhi.
+
+%package -n python3-bodhi-messages
+Summary: JSON schema for messages sent by Bodhi
+Provides: python-bodhi-messages
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%description -n python3-bodhi-messages
+This package contains the schema for messages published by Bodhi.
+
+%package help
+Summary: Development documents and examples for bodhi-messages
+Provides: python3-bodhi-messages-doc
+%description help
+This package contains the schema for messages published by Bodhi.
+
+%prep
+%autosetup -n bodhi-messages-7.0.1
+
+%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-bodhi-messages -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri Feb 24 2023 Python_Bot <Python_Bot@openeuler.org> - 7.0.1-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..f4886f4
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b7273479ccf7ba28a21b621222cdcc02 bodhi_messages-7.0.1.tar.gz