diff options
Diffstat (limited to 'python-cartography.spec')
-rw-r--r-- | python-cartography.spec | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/python-cartography.spec b/python-cartography.spec new file mode 100644 index 0000000..767435b --- /dev/null +++ b/python-cartography.spec @@ -0,0 +1,106 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cartography +Version: 0.78.0 +Release: 1 +Summary: Explore assets and their relationships across your technical infrastructure. +License: apache2 +URL: https://www.github.com/lyft/cartography +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/03/35/327c9e4896820e3aa0f819ac8c123c720fdd3ef23cc04fb1cafdeb6bead3/cartography-0.78.0.tar.gz +BuildArch: noarch + +Requires: python3-backoff +Requires: python3-boto3 +Requires: python3-botocore +Requires: python3-dnspython +Requires: python3-neo4j +Requires: python3-policyuniverse +Requires: python3-google-api-python-client +Requires: python3-oauth2client +Requires: python3-marshmallow +Requires: python3-oci +Requires: python3-okta +Requires: python3-pyyaml +Requires: python3-requests +Requires: python3-statsd +Requires: python3-packaging +Requires: python3-digitalocean +Requires: python3-adal +Requires: python3-azure-cli-core +Requires: python3-azure-mgmt-compute +Requires: python3-azure-mgmt-resource +Requires: python3-azure-mgmt-cosmosdb +Requires: python3-msrestazure +Requires: python3-azure-mgmt-storage +Requires: python3-azure-mgmt-sql +Requires: python3-azure-identity +Requires: python3-kubernetes +Requires: python3-pdpyras +Requires: python3-crowdstrike-falconpy +Requires: python3-dateutil +Requires: python3-xmltodict +Requires: python3-importlib-resources + +%description +file: README.md + + +%package -n python3-cartography +Summary: Explore assets and their relationships across your technical infrastructure. +Provides: python-cartography +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cartography +file: README.md + + +%package help +Summary: Development documents and examples for cartography +Provides: python3-cartography-doc +%description help +file: README.md + + +%prep +%autosetup -n cartography-0.78.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-cartography -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.78.0-1 +- Package Spec generated |