Bug 1734137 - barman fails to build on Fedora 31 (rawhide): %python_provide in %files
Summary: barman fails to build on Fedora 31 (rawhide): %python_provide in %files
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: barman
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Francisco Javier Tsao Santín
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F31FTBFS PYTHON38 1732841
TreeView+ depends on / blocked
 
Reported: 2019-07-29 17:41 UTC by Miro Hrončok
Modified: 2019-08-08 14:31 UTC (History)
2 users (show)

Fixed In Version: 2.8-6
Clone Of:
Environment:
Last Closed: 2019-08-08 14:31:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.