On Friday 26 January 2007 09:55, Dr. Peter Poeml wrote:
On Fri, Jan 26, 2007 at 08:58:46AM +0100, Dirk Stoecker wrote:
Hello,
The wiki page http://en.opensuse.org/Build_Service/cross_distribution_package_how_to does not really help to fix the problem I have with my package. I need to select "netcdf3" for Debian and Ubuntu, where Suse needs "netcdf".
Quoting the page:
Handling dependencies
Different distributions often use different names for packages, so the Requires: and BuildRequires: tags may need to vary from repository to repository. The second FOSDEM talk mentions that "[A] project can specify per repository dependency rewrite rules" (... details needed ...)
Where do I find these details?
I think there is no interface for that yet, other than begging on this mailing list :-)
Also it would be a good idea to add a table for all supported distributions on that page. I tried one, but have many gaps and maybe
There is a "tips and tricks" page, ISTR that is has some other useful macros already
errors. Could anyone update and fix this (Is == correct or is it a single =?). I would copy the information to the wiki if complete.
== is correct
openSUSE Factory %if 0%{suse_version} == 1030 (currently) openSUSE 10.2 %if 0%{suse_version} == 1020 SUSE Linux 10.1 %if 0%{suse_version} == 1010 SUSE Linux 10.0 %if 0%{suse_version} == 1000 SUSE Linux 9.3 %if 0%{suse_version} == 930 SLE 10 %if 0%{suse_version} == 1000 ??? SLES 9 %if 0%{suse_version} == 900 ???
this goes: openSUSE Factory %if 0%{suse_version} == 1030 openSUSE 10.2 %if 0%{suse_version} == 1020 SUSE Linux 10.1 %if 0%{suse_version} == 1010 SLE 10 %if 0%{suse_version} == 1010 SUSE Linux 10.0 %if 0%{suse_version} == 1000 SUSE Linux 9.3 %if 0%{suse_version} == 930 SLES 9 %if 0%{suse_version} == 910
I don't know about these:
Debian Etch ??? Fedora 4 with Extras %if 0%{?fedora_version} == 4 Fedora 5 with Extras %if 0%{?fedora_version} == 5 Mandriva 2006 %if 0%{?mandriva_version} == 2006 xUbuntu 6.06 ???
There is a mandriva variable: %if %{?!mandriva_release:1}0 ... so it should contain some version number. AFAIK there is no such variable for redhat/fedora ... so finding out whether we have fedora/redhat looks like this: if %{?!suse_version:1}0 %if %{?!mandriva_release:1}0 BuildRequires: blub %endif %endif
Regards, Peter
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org