Am Sat, 22 Jul 2023 15:05:11 -0400
schrieb Richard Kimberly Heck <rikih...@gmail.com>:

> I've finally decided to use the rpmdist target rather than installing 
> directly, but it is failing here:
> 
>      $(LN_S) $(srcdir)/lib/images/lyx.png . ; \
> 
> The problem is that LN_S does not seem to be defined, so it is trying to 
> execute the image.
> 
> Temporarily replacing that with cp leads to:
> 
> rpm: -ta: unknown option
> 
> I needed to install the rpm-build package, but shouldn't this adapt? or 
> warn me?
> 
> Next problem:
> 
> $RPMBUILD -ta lyx-2.4.0-RC1-devel.tar.gz ; saved_status=$?; \
> rm lyx.png; exit $saved_status
> error: line 5: Illegal char '-' (0x2d) in: Version: 2.4.0-RC1-devel
> 
> This seems to be in the lyx.spec file, not in the filename itself.
> 
> Finally, does a similar target exist for cmake? If so, how to call it?

Not yet.
But in cmake it would be something like
   set(RPM_VERSION_SUFFIX whatever_that_may_be)
   set(PACKAGE whatever_that_may_be)
   set(VERSION whatever_that_may_be)
   set(DESTINATION whatever_that_may_be)
   configure_file("${TOP_SRC_DIR}/development/lyx.spec.in"
   "${DESTINATION}/lyx${PROGRAM_SUFFIX}.spec")

OTOH, why would we need it in cmake? We create already the rpm-package there.

> Riki

        Kornel

Attachment: pgpfjZBBA5kEz.pgp
Description: Digitale Signatur von OpenPGP

-- 
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to