Fedora packaging

Jump to: navigation, search

Fedora is another popular distribution using RPM packaging system. openSUSE Build Service supports recent Fedora releases. As Fedora and openSUSE share the same package format, spec files can be easily reused.

Disable debug packages

If your package doesn't have debug package, Fedora builds will throw errors:

Empty %files file /home/abuild/rpmbuild/BUILD/your-first-package-2.0.1/debugsourcefiles.list

To avoid it, add the following lines to the beginning of your spec file:

%if 0%{?fedora_version}
%global debug_package %{nil}
%endif

Supplements

Supplements is not available in Fedora/CentOS/RHEL. Only enable it in openSUSE/SLE:

%if 0%{?suse_version}
Supplements:    packageand(MozillaFirefox:plasma5-desktop)
%endif