[Fedora-packaging] Macro usage for Fedora 20 documentation tree change
Greg Bailey
gbailey at lxpro.com
Wed Aug 7 21:17:06 UTC 2013
On 08/06/2013 09:32 PM, Chuck Anderson wrote:
> On Mon, Aug 05, 2013 at 02:17:25PM -0700, Greg Bailey wrote:
>> Hello list,
>>
>> I have a package "mup" that currently fails to build in Rawhide due
>> to the introduction of the following Fedora 20 feature:
>>
>> http://fedoraproject.org/wiki/Changes/UnversionedDocdirs
>>
>> My current (broken) spec file has things like the following to fix
>> up file paths referenced by the upstream makefile:
>>
>> sed -i -e 's|DOCDIR = $(PREFIX)/share/doc/packages/mup|DOCDIR =
>> $(PREFIX)/share/doc/%{name}-%{version}|' makefile
> Install of patching the makefile, why not override the DOCDIR variable
> on the make invocation? (Also, the makefile and other changes should
> really be done in %prep, not %build--but using the following method
> avoids changing the makefile at all). This works correctly on F20 and
> older releases as well.
Thanks Chuck. This is much more concise than any other solution I could
come up with. I've committed your patch.
Regards,
Greg
More information about the packaging
mailing list