https://bugs.kde.org/show_bug.cgi?id=497619

            Bug ID: 497619
           Summary: RPM Specfile syntax is outdated (RPM 4.20.0)
    Classification: Frameworks and Libraries
           Product: frameworks-syntax-highlighting
           Version: 6.8.0
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: syntax
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: janfelix.langenb...@protonmail.com
                CC: walter.von.entfer...@posteo.net
  Target Milestone: ---

SUMMARY
The RPM spec file syntax is outdated as of RPM 4.20.0. As the last commit added
support for the %generate_buildrequires section (RPM 4.15.0), I’ve looked at
the changelogs of RPM 4.16.0–4.20.0 and found that at least the following
constructs are not highlighted correctly.

- %[...] expression syntax (including Lua support)
- SourceLicense tag
- UpstreamReleases tag
- TranslationURL tag
- %conf section
- %preuntrans scriptlet
- %postuntrans scriptlet
- BuildSystem directive
- BuildOption directive
- Indentation before tags

STEPS TO REPRODUCE
1. Open an RPM spec file in Kate or KWrite
2. Type out these constructs
3. Observe the highlighting

OBSERVED RESULT
The constructs are highlighted incorrectly or marked as errors.

EXPECTED RESULT
The constructs are highlighted correctly.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
RPM also reads '.specpart' files now, which might need to be added to the file
extension list and/or MIME type.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to