2016-04-12 02:41:45 +00:00
|
|
|
|
# Some miscellaneous Fedora-related macros
|
|
|
|
|
|
|
|
|
|
# A directory for rpm macros
|
|
|
|
|
%rpmmacrodir /usr/lib/rpm/macros.d
|
2018-04-20 17:05:38 +00:00
|
|
|
|
|
|
|
|
|
# A directory for appdata metainfo. This has changed between releases so a
|
|
|
|
|
# macro is useful.
|
|
|
|
|
%_metainfodir %{_datadir}/metainfo
|
2018-10-11 09:29:00 +00:00
|
|
|
|
|
|
|
|
|
# A directory for SWID tag files describing the installation
|
|
|
|
|
%_swidtagdir %{_prefix}/lib/swidtag/fedoraproject.org
|
2018-11-08 18:21:06 +00:00
|
|
|
|
|
|
|
|
|
# A helper to apply the fedora.wordwrap filter to the content of an rpm
|
|
|
|
|
# variable, and print the result. Optional parameter:
|
|
|
|
|
# – -v <variable_name> (default value: _description)
|
|
|
|
|
# Putting multiple lines of UTF-8 text inside a variable is usually
|
|
|
|
|
# accomplished with a %%{expand: some_text}.
|
|
|
|
|
%wordwrap(v:) %{lua:
|
|
|
|
|
local fedora = require "fedora.common"
|
|
|
|
|
local variable = "%{" .. rpm.expand("%{-v*}%{!-v:_description}") .. "}"
|
|
|
|
|
print(fedora.wordwrap(variable))
|
|
|
|
|
}
|