Miscellaneous
%export_docbook_catalogs
Ensure that builds using docbook can find XML catalogs locally
environment: | %export_docbook_catalogsbuilddeps: - (... remember to add docbook related packages here ...)%gtk_update_icon_cache
Pregenerate icon cache at build time
%gtk_update_icon_cache%install_bin
Install files to %(bindir)
%install_bin nano%install_dir
Create a new empty directory with the default permissions
%install_dir %(installroot)%(datadir)/pkgname/docs%install_exe
Macro to install a file with default executable permissions
%install_exe executable-file %(installroot)%(libexec)/%(name)/executable-file%install_file
Macro to install a file without executable permissions
%install_file %(pkgdir)/helper.file %(installroot)%(datadir)/%(name)/pkgfile%patch
Patch the upstream sources using an input patch file.
%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