[opensuse] How to build a package with additional options | YAST
Hello list, I'm trying to figure out, how can I build the curl package with the = option "--with-libssh2" using YAST or another command line tool (CLI). I can do this downloading, extracting and using the source code with = well known procedures like configure make make install; but I want to = know if OpenSuse have a CLI tool in similar way like Ubuntu do with = dpkg-buildpackage. I post the reference for Ubuntu: = http://iamnearlythere.com/add-sftp-capabilities-to-curl If someone knows how to do that without download the source, thank you = very much. OpenSuse rules! Luis Gonzalez lgonzalezsa@gmail.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thu, Feb 16, 2012 at 11:20 AM, Luis Gonzalez <lgonzalezsa@gmail.com> wrote:
Hello list,
I'm trying to figure out, how can I build the curl package with the = option "--with-libssh2" using YAST or another command line tool (CLI). I can do this downloading, extracting and using the source code with = well known procedures like configure make make install; but I want to = know if OpenSuse have a CLI tool in similar way like Ubuntu do with = dpkg-buildpackage.
I post the reference for Ubuntu: = http://iamnearlythere.com/add-sftp-capabilities-to-curl
If someone knows how to do that without download the source, thank you = very much.
OpenSuse rules!
Luis Gonzalez
Luis, First, are you sure it's not working now? If not, I suspect its a bug, so you can throw that into bugzilla. Anyway, using standard rpm cli tools, Anders is an expert on that and he gave me the instructions years ago. I'm afraid I've misplaced them by now. These days, I use OBS to do the same thing. OBS is unique to opensuse (with exceptions), so learning it has less use cases than the rpm cli tools, but OBS is so much more functional than the rpm tools that it is the way most opensuse maintainers do things now. I just ran thru your situation as a test:
mkdir ~/obs cd ~/obs osc co openSUSE:12.1:Update curl cd ~/obs/openSUSE:12.1:Update/curl osc build
Will locally build the rpm as it exists in the update repo. It does it inside a chroot jail, so it will download a lot of packages that you already have. The copy it is getting is just for osc build to use, and they are not shared with your main set of rpms that zypper uses. Normally to add a feature you can then edit the specfile and add --with-libssh2 to the ./configure statement as an example. But, looking at the curl specfile I see: == ./configure \ --prefix=%{_prefix} \ --enable-ipv6 \ %if %{with openssl} --with-ssl \ --with-ca-path=/etc/ssl/certs/ \ %else --without-ssl \ %if %{with mozilla_nss} --with-nss \ %endif %endif --with-gssapi=/usr/lib/mit \ --with-libssh2\ --libdir=%{_libdir} \ --enable-hidden-symbols \ --disable-static \ --enable-ares == As you see --with-libssh2 is in the configure statement already, so it should be in the official rpm. I didn't do any testing to verify if it works or not. HTH Greg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Greg Freemyer
-
Luis Gonzalez