CPack/RPM: Broken with rpm 4.19
In Fedora39 new RPM 4.19.0 comes in. It includes this commit: https://github.com/rpm-software-management/rpm/commit/d44114f007f54f205ffa13d22724199fe50a137a
It unfortunately conflicts with how CPackRPM lists files in the %files
section: they are unconditionally double-quoted and an asterisk is unconditionally appended to all man pages. As a result, the following section of MariaDB-backup specs file:
%files
%defattr(-,root,root,-)
"/usr/bin/mariabackup"
"/usr/bin/mariadb-backup"
"/usr/bin/mbstream"
"/usr/share/man/man1/mariabackup.1*"
"/usr/share/man/man1/mariadb-backup.1*"
"/usr/share/man/man1/mbstream.1*"
is interpreted literally and naturally the build fails with
error: File not found: .../build/_CPack_Packages/Linux/RPM/mariadb-11.1.3-linux-x86_64/backup/usr/share/man/man1/mariabackup.1\*