diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:38:58 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 10:38:58 +0000 |
| commit | cebddd99efc93c352a0324234e4ede4aa0c993fb (patch) | |
| tree | c7044559529ad58256b498fa218d3963427bc852 | |
| parent | 83a4d5834900f51b659dd1a154a721a4437a9c84 (diff) | |
automatic import of python-semaphoreopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-semaphore.spec | 72 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/semaphore-0.4.65.zip diff --git a/python-semaphore.spec b/python-semaphore.spec new file mode 100644 index 0000000..eda3b4f --- /dev/null +++ b/python-semaphore.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-semaphore +Version: 0.4.65 +Release: 1 +Summary: A python library to access sentry relay functionality. +License: BSL-1.1 +URL: https://pypi.org/project/semaphore/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f6/76/e9858698ae39b24191d252d53e7c2a37c0f8422f9fda55824a11a0916edf/semaphore-0.4.65.zip +BuildArch: noarch + + +%description + + +%package -n python3-semaphore +Summary: A python library to access sentry relay functionality. +Provides: python-semaphore +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-semaphore + + +%package help +Summary: Development documents and examples for semaphore +Provides: python3-semaphore-doc +%description help + + +%prep +%autosetup -n semaphore-0.4.65 + +%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-semaphore -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.65-1 +- Package Spec generated @@ -0,0 +1 @@ +5ac39be6267a97f9876eaef2f3bd5ee2 semaphore-0.4.65.zip |
