Bug 1734137

Summary: barman fails to build on Fedora 31 (rawhide): %python_provide in %files
Product: [Fedora] Fedora Reporter: Miro Hrončok <mhroncok>
Component: barmanAssignee: Francisco Javier Tsao Santín <tsao>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: dbmacartney, tsao
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.8-6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-08 14:31:20 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1700317, 1686977, 1732841    

Description Miro Hrončok 2019-07-29 17:41:04 UTC
barman fails to build on Fedora 31 (rawhide).

See https://koji.fedoraproject.org/koji/taskinfo?taskID=36632129

Processing files: python3-barman-2.8-5.fc31.noarch
BUILDSTDERR: error: File must begin with "/": Provides:
BUILDSTDERR: error: File must begin with "/": python-%{srcname}
BUILDSTDERR: error: File must begin with "/": =
BUILDSTDERR: error: File must begin with "/": 2.8-5.fc31
BUILDSTDERR: error: File must begin with "/": Obsoletes:
BUILDSTDERR: error: File must begin with "/": python-%{srcname}
BUILDSTDERR: error: File must begin with "/": <
BUILDSTDERR: error: File must begin with "/": 2.8-5.fc31



The error is here:

	
%files -n python3-barman
%{?python_provide:%python_provide python3-%{srcname}}


The %python_provide macro cannot be used in %files.

See the example Python spec file: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_example_python_spec_file




This also fails with Python 3.8 and blocks the Python 3.8 rebuild:


For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/@python/python3.8/fedora-rawhide-x86_64/00978157-barman/

For all our attempts to build barman with Python 3.8, see:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/package/barman/

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.8:
https://copr.fedorainfracloud.org/coprs/g/python/python3.8/

Let us know here if you have any questions.

Comment 1 Francisco Javier Tsao Santín 2019-08-08 14:31:20 UTC
Built successfully in rawhide.