On Wed, Aug 21, 2013 at 6:58 PM, Juan Orti Alcaine
<juan.o...@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
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to