English Portuguese (Brazil)
`+-d directory+`: for cases where the documentation directory is not named `doc`, or there are multiple documentation directories
`+-n package+`: the installed add-on directory name is assumed to be available from a macro `+%pkgname+`. If that is not the case, use this macro to give the main add-on directory name.
Since GAP documentation must be installed under `+%{_gap_dir}/pkg+` for the builtin documentation browser to find it, such documentation SHOULD NOT be duplicated with `+%doc+`. However, the documentation SHOULD still be marked as such so that documentation-free installs work as expected. Most add-ons SHOULD include `+%docdir+` declarations in the `+%files+` section of the spec file; e.g., `+%docdir %{_gap_dir}/pkg/%{pkgname}/doc+` and `+%docdir %{_gap_dir}/pkg/%{pkgname}/htm+`.
Fedora now encourages packagers to https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval[not build packages for i686]. For that reason, noarch GAP add-ons must include these tags:
BuildArch: noarch
ExclusiveArch: %{gap_arches} noarch
Architecture-specific GAP add-ons must instead include this tag:
ExclusiveArch: %{gap_arches}
However, any noarch subpackages, such as a documentation subpackage, must include this tag:
ExclusiveArch: %{gap_arches} noarch
Other RPM macros
Other RPM macros that may be useful for GAP add-on spec files include the following:
`+%gap_version+`: the version of the main GAP package; e.g., 4.12.0.
`+%gap_dir+`: the root directory of the GAP installation, currently `/usr/lib/gap`.
`+%gap_arch+`: the GAP name for the build architecture; e.g., `x86_64-redhat-linux-gnu`.