[Fedora-packaging] SCL in Fedora

Remi Collet Fedora at FamilleCollet.com
Sat Nov 2 09:06:26 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Le 01/11/2013 17:33, Toshio Kuratomi a écrit :
> Something like: In general, Name is constructed by prepending
> scl_prefix to the existing package name like this [example].
> However, to avoid redundancy, addon packages should remove the
> information that is already present in the scl_prefix like this:

I agree, this will make package name really simpler

> # If scl_prefix is scl-python2.6 then %if %{scl_prefix} Name:
> %{scl_prefix}foo %else Name: python-foo %endif

This should probably be done more generally to be usable everywhere
the prefix is used (I mostly think of dependencies).

%global pkg_prefix  %{?scl_prefix}%{!?scl_prefix:python-}

Name : %{pkg_prefix}foo
BuildRequires: %{pkg_prefix}devel
BuildRequires: %{pkg_prefix}bar

Still the "main" package problem (python26-python), which is not a big
issue, as scl-python26 will requires scl-python26-python and
scl-python26-devel will be what it is expected to be.

Remi.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlJ0wJIACgkQYUppBSnxahgLVwCfSxqlGUp614ExuYos9gd2Rogi
LqQAoJAUVugsRyD2sm45dnjhV3AoXhmG
=/s/R
-----END PGP SIGNATURE-----


More information about the packaging mailing list