From d7b37b76b72c03b580a47ec37270bf0220a79f83 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 11 Apr 2023 02:00:44 +0000 Subject: automatic import of python-code-annotations --- python-code-annotations.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 python-code-annotations.spec (limited to 'python-code-annotations.spec') 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 - 1.3.0-1 +- Package Spec generated -- cgit v1.2.3