Problem with sed in spec file

Ville Skyttä ville.skytta at iki.fi
Fri Aug 23 08:34:51 UTC 2013


On Wed, Aug 21, 2013 at 6:58 PM, Juan Orti Alcaine
<juan.orti at miceliux.com> wrote:
> El Miércoles, 21 de agosto de 2013 16:03:23 Richard W.M. Jones escribió:
>> Just open a bug against selinux-policy and ask the maintainer
>> to drop a file somewhere which contains the version number, eg:
>>
>>   %install
>>   echo '%{version}' > $RPM_BUILD_ROOT%{_datadir}/selinux/version
>>
>> We do something similar in the OCaml compiler base package.
>>
>> Rich.
>
> Done.
> https://bugzilla.redhat.com/show_bug.cgi?id=999584

Or possibly even better, drop it into /usr/lib/rpm/macros.d so it can
be used even easier in specfiles, something like

echo '%%_selinux_policy_version %{version}' > \
    $RPM_BUILD_ROOT%{_rpmconfigdir}/macros.d/selinux-policy.macros


More information about the devel mailing list