diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:54:02 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 10:54:02 +0000 |
commit | 14847f033d1576a0aec753b4779dbb9c992aa043 (patch) | |
tree | d3149a21c6fd10c88019c8ae6f12e0d93f08286c | |
parent | 111ac136728b9cf41632e9e948a3a6ac070aee21 (diff) |
automatic import of python-ninja
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-ninja.spec | 82 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 84 insertions, 0 deletions
@@ -0,0 +1 @@ +/ninja-1.11.1.tar.gz diff --git a/python-ninja.spec b/python-ninja.spec new file mode 100644 index 0000000..9a03bcd --- /dev/null +++ b/python-ninja.spec @@ -0,0 +1,82 @@ +%global _empty_manifest_terminate_build 0 +Name: python-ninja +Version: 1.11.1 +Release: 1 +Summary: Ninja is a small build system with a focus on speed +License: Apache 2.0 +URL: http://ninja-build.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/f7/69/938374c8ebfeda683863b22e936f5d465ac9f5bf42be238504c018123190/ninja-1.11.1.tar.gz + +Requires: python3-codecov +Requires: python3-coverage +Requires: python3-flake8 +Requires: python3-pytest +Requires: python3-pytest-cov +Requires: python3-pytest-runner +Requires: python3-pytest-virtualenv +Requires: python3-virtualenv + +%description + + +%package -n python3-ninja +Summary: Ninja is a small build system with a focus on speed +Provides: python-ninja +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-cffi +BuildRequires: gcc +BuildRequires: gdb +%description -n python3-ninja + + +%package help +Summary: Development documents and examples for ninja +Provides: python3-ninja-doc +%description help + + +%prep +%autosetup -n ninja-1.11.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-ninja -f filelist.lst +%dir %{python3_sitearch}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.11.1-1 +- Package Spec generated @@ -0,0 +1 @@ +134677f4ec357d8f85d1d2fc9f9debe9 ninja-1.11.1.tar.gz |