Bug ID 1125035
Summary [osc build] botches Boolean (rich) Dependencies
Classification openSUSE
Product openSUSE.org
Version unspecified
Hardware All
OS SUSE Other
Status NEW
Severity Normal
Priority P5 - None
Component BuildService
Assignee bnc-team-screening@forge.provo.novell.com
Reporter eich@suse.com
QA Contact adrian@suse.com
Found By Development
Blocker ---

Created attachment 796540 [details]
Affected spec file

The following line from the attached spec file from the OBS project
science/slurm gets botched when calling 'osc build':

Requires(pre):       (munge if slurm-munge)

The error from osc build is:
[    3s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature
--define '_build_create_debug 1' /home/abuild/rpmbuild/SOURCES/slurm.spec
[    3s] error: line 89: Unterminated rich dependency: (munge: Requires:      
(munge

The spec file is altered, the line is split and spread (sorted>). The result
is:
Requires:       if
Requires:       slurm-config = %{version}
Requires:       slurm-munge)
Requires:       slurm-node = %{version}
Requires:       (munge

Latest osc from openSUSE:Tools on Leap 15.0.

Package versions from this repo:
build                                     20190123-lp150.311.1                  
build-mkbaselibs                          20190123-lp150.311.1                  
build-mkdrpms                             20190123-lp150.311.1                  
obs-service-download_files                0.6.2-lp150.83.1                      
obs-service-format_spec_file              20180820-lp150.230.1                  
obs-service-obs_scm                       0.9.5.1545082095.8dbc95f-lp150.239.1  
obs-service-obs_scm-common                0.9.5.1545082095.8dbc95f-lp150.239.1  
obs-service-recompress                    0.3.1+git20170704.59bf231-lp150.31.1  
obs-service-set_version                   0.5.11-lp150.102.1                    
obs-service-source_validator              0.18-lp150.138.1                      
obs-service-tar_scm                       0.9.5.1545082095.8dbc95f-lp150.239.1  
obs-service-verify_file                   0.1.1-lp150.35.6                      
osc                                       0.164.1-lp150.243.1


You are receiving this mail because: