Skip to content

Miscellaneous

%export_docbook_catalogs

Ensure that builds using docbook can find XML catalogs locally
Example usage
environment: |
%export_docbook_catalogs
builddeps:
- (... remember to add docbook related packages here ...)

%gtk_update_icon_cache

Pregenerate icon cache at build time
Example usage
%gtk_update_icon_cache

%install_bin

Install files to %(bindir)
Example usage
%install_bin nano

%install_dir

Create a new empty directory with the default permissions
Example usage
%install_dir %(installroot)%(datadir)/pkgname/docs

%install_exe

Macro to install a file with default executable permissions
Example usage
%install_exe executable-file %(installroot)%(libexec)/%(name)/executable-file

%install_file

Macro to install a file without executable permissions
Example usage
%install_file %(pkgdir)/helper.file %(installroot)%(datadir)/%(name)/pkgfile

%patch

Patch the upstream sources using an input patch file.
Example usage
%patch %(pkgdir)/some.patch
# If you need to override the default -p1, add it after the patch file
%patch %(pkgdir)/some.patch -p3

%tmpfiles

Create a tmpfiles.d file for the package with given content

%sysusers

Create a sysusers.d file for the package with given content