On Wed, May 15, 2019 at 5:49 PM Kamil Dudka <kdu...@redhat.com> wrote:

> On Wednesday, May 15, 2019 1:26:29 PM CEST surya chandrika wrote:
> > On Mon, May 13, 2019 at 1:49 PM Kamil Dudka <kdu...@redhat.com> wrote:
> > > On Sunday, May 12, 2019 7:45:28 PM CEST surya chandrika via
> curl-library
> > >
> > > wrote:
> > > > On Fri, May 10, 2019 at 7:11 PM Kamil Dudka <kdu...@redhat.com>
> wrote:
> > > > > On Friday, May 10, 2019 3:00:46 PM CEST surya chandrika via
> > >
> > > curl-library
> > >
> > > > > wrote:
> > > > > > Hi All,
> > > > > >
> > > > > > Am trying to create rpm for libcurl version 7.64.0 using rpm
> build.
> > > > > > Am trying to write  SPEC file for the same.
> > > > >
> > > > > Why do not you use an existing SPEC file to begin with?
> > > > >
> > > > > https://src.fedoraproject.org/rpms/curl/blob/f30/f/curl.spec
> > > >
> > > > *    Do we have similar spec file for Centos Linux   for version
> 7.64*
> > >
> > > Not that I know of.  But you can try to update the current CentOS 7
> spec
> > > file:
> > >
> > > https://git.centos.org/rpms/curl/blob/f0f8d7eb/f/SPECS/curl.spec
> >
> >  I created a sample spec file and generated the rpms. Even though i have
> > mentioned
> > %build
> > export PREFIX=%{_prefix}
> > ./configure \
> >     --prefix="$PREFIX" \
> >    * --with-ssl*
>
> Why do not you use the %configure macro as in the mentioned spec file?
> It should take care of setting all the prefixes.
>
> > When i install rpm, version is *upgraded to 7.64.0,* but it says
> *Gnutls*,
> > instead of* Open ssl*
>
> You should have `BuildRequires: openssl-devel` in the spec file to make
> sure
> that the build environment of OpenSSL is available while running the build.
>

I added BuildRequires: openssl-devel` this but then also after installing
rpm its using gnutls.
According to
https://curl.haxx.se/docs/install.html
It should auto take openssl if nothing is specified. "If you have OpenSSL
installed in the default search path for your compiler/linker, you don't
need to do anything special".
I have installed openssl and openssl-devel via yum install, so it should be
in default paths.

Note: Am generating rpm in one host and installing rpm in another host. Is
there any thing else that i need to make sure so that its takes openssl
instead of gnutls.




>
> Kamil
>
> > [toa@localhost libcurl]$ curl --version
> > curl 7.64.0 (x86_64-pc-linux-gnu) libcurl/7.64.0 *GnuTLS/3.3.26
> zlib/1.2.7*
> > Release-Date: 2019-02-06
> >
> > When i *compiled from source* using same option , it shows open ssl .
> >
> > > -sh-4.2$ curl --version
> > >
> > > curl 7.43.0 (x86_64-redhat-linux-gnu) libcurl/7.64.0* OpenSS*L/1.0.2k
> > >
> > >> zlib/1.2.7
> > >>
> > >  Please review spec file.
> > >
> > > Surya
>
>
>
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html

Reply via email to