curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: create rpm for libcurl

From: Kamil Dudka via curl-library <curl-library_at_cool.haxx.se>
Date: Wed, 15 May 2019 14:19:45 +0200

On Wednesday, May 15, 2019 1:26:29 PM CEST surya chandrika wrote:
> On Mon, May 13, 2019 at 1:49 PM Kamil Dudka <kdudka_at_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 <kdudka_at_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.

Kamil

> [toa_at_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
Received on 2019-05-15