Name: python-swift Version: 2.38.3 Release: %autorelease # Fill in the actual package summary to submit package to Fedora Summary: OpenStack Object Storage # No license information obtained, it's up to the packager to fill it in License: ... URL: https://opendev.org/openstack/swift/ Source: %{pypi_source swift} BuildArch: noarch BuildRequires: python3-devel # Fill in the actual package description to submit package to Fedora %global _description %{expand: This is package 'swift' generated automatically by pyp2spec.} %description %_description %package -n python3-swift Summary: %{summary} %description -n python3-swift %_description # For official Fedora packages, review which extras should be actually packaged # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras %pyproject_extras_subpkg -n python3-swift keystone,kmip-keymaster,kms-keymaster,test %prep %autosetup -p1 -n swift-%{version} %generate_buildrequires # Keep only those extras which you actually want to package or use during tests %pyproject_buildrequires -x keystone,kmip-keymaster,kms-keymaster,test %build %pyproject_wheel %install %pyproject_install # For official Fedora packages, including files with '*' +auto is not allowed # Replace it with a list of relevant Python modules/globs and list extra files in %%files %pyproject_save_files '*' +auto %check %_pyproject_check_import_allow_no_modules -t %files -n python3-swift -f %{pyproject_files} %{_bindir}/swift-account-audit %{_bindir}/swift-account-auditor %{_bindir}/swift-account-info %{_bindir}/swift-account-reaper %{_bindir}/swift-account-replicator %{_bindir}/swift-account-server %{_bindir}/swift-config %{_bindir}/swift-container-auditor %{_bindir}/swift-container-deleter %{_bindir}/swift-container-info %{_bindir}/swift-container-reconciler %{_bindir}/swift-container-replicator %{_bindir}/swift-container-server %{_bindir}/swift-container-sharder %{_bindir}/swift-container-sync %{_bindir}/swift-container-updater %{_bindir}/swift-dispersion-populate %{_bindir}/swift-dispersion-report %{_bindir}/swift-drive-audit %{_bindir}/swift-form-signature %{_bindir}/swift-get-nodes %{_bindir}/swift-init %{_bindir}/swift-manage-shard-ranges %{_bindir}/swift-object-auditor %{_bindir}/swift-object-expirer %{_bindir}/swift-object-info %{_bindir}/swift-object-reconstructor %{_bindir}/swift-object-relinker %{_bindir}/swift-object-replicator %{_bindir}/swift-object-server %{_bindir}/swift-object-updater %{_bindir}/swift-oldies %{_bindir}/swift-orphans %{_bindir}/swift-proxy-server %{_bindir}/swift-recon %{_bindir}/swift-recon-cron %{_bindir}/swift-reconciler-enqueue %{_bindir}/swift-reload %{_bindir}/swift-ring-builder %{_bindir}/swift-ring-builder-analyzer %{_bindir}/swift-ring-composer %changelog %autochangelog