[opensuse-buildservice] Other Platforms than (open)SUSE in BS
hi, In home: repos and on some other spaces, it's common to also find Mandriva and Fedora Repositories (badly not for the latest releases, so onlt FC5 and Mandriva 2006). Who is deciding if they also get added to games:*, server:* and so on? Is it just, when I want it, I add it? And I fix whatever spec file of whatever package I would like to build? Then one more question: What construction can I use to work around the different naming conventions for the distros? something like %if %suse BuildRequires: alsa-devel %else if %mandriva buildRequires: libalsa-devel %endif Are there some specific implementations for this? Dominique --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 11/17/06, Dominique Leuenberger
something like
%if %suse BuildRequires: alsa-devel %else if %mandriva buildRequires: libalsa-devel %endif
We are using the following in our repository, you can check those specs out. %if "%_repository" == "SUSE_Linux_10.1" || "%_repository" == "SLE_10" BuildRequires: xorg-x11-compat70-devel %endif %if "%_repository" != "SUSE_Linux_10.0" BuildRequires: libdrm-devel %endif http://build.opensuse.org/project/show?project=X11%3AXGL Cheers -J ps: sorry missed the list. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Fri, Nov 17, 2006 at 08:41:32PM +0530, Jigish Gohil wrote:
We are using the following in our repository, you can check those specs out.
%if "%_repository" == "SUSE_Linux_10.1" || "%_repository" == "SLE_10" BuildRequires: xorg-x11-compat70-devel %endif %if "%_repository" != "SUSE_Linux_10.0" BuildRequires: libdrm-devel %endif
This makes it hard for people that import your package and use different repository names. I think it's better to use %if 0%{?suse_version} >= 1010 BuildRequires: xorg-x11-compat70-devel %endif %if 0%{?suse_version} != 1000 BuildRequires: libdrm-devel %endif Cheers, Michael. -- Michael Schroeder mls@suse.de main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 11/17/06, Michael Schroeder
This makes it hard for people that import your package and use different repository names. I think it's better to use
%if 0%{?suse_version} >= 1010 BuildRequires: xorg-x11-compat70-devel %endif %if 0%{?suse_version} != 1000 BuildRequires: libdrm-devel %endif
Yeah that was a special case, as XOrg7_SUSE_Linux_10.1 doesn't require xorg-x11-compat70-devel too and caused a clash in BS. The above way is proper. -J --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On Nov 17, 06 20:50:02 +0530, Jigish Gohil wrote:
On 11/17/06, Michael Schroeder
wrote: This makes it hard for people that import your package and use different repository names. I think it's better to use
%if 0%{?suse_version} >= 1010 BuildRequires: xorg-x11-compat70-devel %endif %if 0%{?suse_version} != 1000 BuildRequires: libdrm-devel %endif
Yeah that was a special case, as XOrg7_SUSE_Linux_10.1 doesn't require xorg-x11-compat70-devel too and caused a clash in BS.
Also, it would have to be %if 0%{?suse_version} <= 1010 ...
The above way is proper.
Also remember that it's only about SUSE, so supporting other
distributions adds additional work.
Matthias
--
Matthias Hopf
participants (4)
-
Dominique Leuenberger
-
Jigish Gohil
-
Matthias Hopf
-
Michael Schroeder