be53b9b
# Some miscellaneous Fedora-related macros
be53b9b
be53b9b
# A directory for rpm macros
be53b9b
%rpmmacrodir /usr/lib/rpm/macros.d
fdbb98b
fdbb98b
# A directory for appdata metainfo.  This has changed between releases so a
fdbb98b
# macro is useful.
fdbb98b
%_metainfodir %{_datadir}/metainfo
e3e0ba6
e3e0ba6
# A directory for SWID tag files describing the installation
e3e0ba6
%_swidtagdir %{_prefix}/lib/swidtag/fedoraproject.org
8394d3c
8394d3c
# A helper to apply the fedora.wordwrap filter to the content of an rpm
8394d3c
# variable, and print the result. Optional parameter:
8394d3c
#  – -v <variable_name> (default value: _description)
8394d3c
# Putting multiple lines of UTF-8 text inside a variable is usually
8394d3c
# accomplished with a %%{expand: some_text}.
8394d3c
%wordwrap(v:) %{lua:
8394d3c
local   fedora = require "fedora.common"
8394d3c
local variable = "%{" .. rpm.expand("%{-v*}%{!-v:_description}") .. "}"
8394d3c
print(fedora.wordwrap(variable))
8394d3c
}