[Libwebsockets] RPM build options

Andy Green andy at warmcat.com
Tue Jul 29 23:38:46 CEST 2014



On 30 July 2014 00:11:24 GMT+08:00, "Canaday, Andrew" <andrew.canaday at nytimes.com> wrote:
>Hey all,
>
>I'm wondering if someone with some cmake expertise could help me out: I
>want to build the *libwebsockets_rpm* target and have command line
>options
>(LWS_WITH_LIBEV, etc) propagate to the RPM build. I tried modifying the
>spec file as follows:
>
>diff --git a/libwebsockets.spec b/libwebsockets.spec
>> index 10015dd..1ef3ee9 100644
>> --- a/libwebsockets.spec
>> +++ b/libwebsockets.spec
>> @@ -30,7 +30,7 @@ Development files for libwebsockets
>>  %build
>>  mkdir -p build
>>  cd build
>> -%cmake ..
>> +%cmake -C %{_topdir}/../CMakeCache.txt ..
>>  make
>>
>>  %install
>>
>
>But this results in dependency issues. Is there some way to cleanly
>propagate the options from the top level build into the rpm build?

I think cmake -> spec might not be the best approach.

The selected options for cmake you want to package need to live somewhere, traditionally that place is the spec file.  So it might make more sense overall to treat the spec file as the boss of cmake, not something generated by it.

-Andy

>Thanks,
>-Andrew
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Libwebsockets mailing list
>Libwebsockets at ml.libwebsockets.org
>http://ml.libwebsockets.org/mailman/listinfo/libwebsockets




More information about the Libwebsockets mailing list