diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-11 02:00:44 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 02:00:44 +0000 |
| commit | d7b37b76b72c03b580a47ec37270bf0220a79f83 (patch) | |
| tree | c1da1fceff1ebabbb9691adbdd4bec900f300c2d | |
| parent | 76014a0db1176abdc6885fb82ea9670a99740936 (diff) | |
automatic import of python-code-annotations
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-code-annotations.spec | 84 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 86 insertions, 0 deletions
@@ -0,0 +1 @@ +/code-annotations-1.3.0.tar.gz diff --git a/python-code-annotations.spec b/python-code-annotations.spec new file mode 100644 index 0000000..b458112 --- /dev/null +++ b/python-code-annotations.spec @@ -0,0 +1,84 @@ +%global _empty_manifest_terminate_build 0 +Name: python-code-annotations +Version: 1.3.0 +Release: 1 +Summary: Extensible tools for parsing annotations in codebases +License: AGPL 3.0 +URL: https://github.com/edx/code-annotations +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f2/79/06073704a1fd8b48e6692e16821ac694848b322a9cef70e5da223ee3d5a0/code-annotations-1.3.0.tar.gz +BuildArch: noarch + +Requires: python3-stevedore +Requires: python3-click +Requires: python3-pyyaml +Requires: python3-Jinja2 +Requires: python3-slugify +Requires: python3-Django + +%description +|pypi-badge| |CI| |codecov-badge| |doc-badge| |pyversions-badge| +|license-badge| +Extensible tools for parsing annotations in codebases + +%package -n python3-code-annotations +Summary: Extensible tools for parsing annotations in codebases +Provides: python-code-annotations +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-code-annotations +|pypi-badge| |CI| |codecov-badge| |doc-badge| |pyversions-badge| +|license-badge| +Extensible tools for parsing annotations in codebases + +%package help +Summary: Development documents and examples for code-annotations +Provides: python3-code-annotations-doc +%description help +|pypi-badge| |CI| |codecov-badge| |doc-badge| |pyversions-badge| +|license-badge| +Extensible tools for parsing annotations in codebases + +%prep +%autosetup -n code-annotations-1.3.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-code-annotations -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 1.3.0-1 +- Package Spec generated @@ -0,0 +1 @@ +cfcd3d0f1bae14b846345790abac0e1b code-annotations-1.3.0.tar.gz |
