File python-jsonformatter.changes of Package failed_python-jsonformatter

Repair summary for package: python-jsonformatter

Root cause:
- rpmbuild failed during %prep due to: "autosetup: invalid option -- 'r'". The spec file contained a malformed sed expression in the %prep section that included stray/unescaped characters, which caused autosetup to misinterpret spec macro content.

Minimal fix applied:
- File modified: python-jsonformatter.spec
- Replaced the problematic sed and ensured proper escaping for the find command's exec semicolon.
- Original (approx):
  sed -i '1{\,^#!%{_bindir}/env python,d}' jsonformatter/*.py
  find . -type f -exec chmod -x {} ;
- New lines:
  # Use autosetup to unpack and apply patches. Avoid passing unintended characters.
  %autosetup -p1 -n jsonformatter-%{version}
  find . -type f -exec chmod -x {} \;
  # Remove a possible Python shebang on the first line of installed module files
  # Use a safer sed expression with properly escaped slashes
  sed -i '1{/^#!%{_bindir}\/env python/d}' jsonformatter/*.py

Why this is minimal:
- Only the spec file was changed to correct syntax errors. No source code or archive changed.
- The change prevents rpmbuild/autosetup from parsing stray characters as options.

Files changed:
- python-jsonformatter.spec
- python-jsonformatter.changes (this file)

Next action:
- Re-run the OBS build for this package. The autosetup invalid option error should be resolved.

Timestamp: 2025-08-29
openSUSE Build Service is sponsored by