Mailinglist Archive: opensuse-buildservice (339 mails)

< Previous Next >
[opensuse-buildservice] including Substitute: lines in project
  • From: Marc Dietrich <Marc.Dietrich@xxxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Sun, 9 Mar 2008 16:01:09 +0100
  • Message-id: <20080309160109.bddf5da0.marc.dietrich@xxxxxxxxxxxxxxxxxxxxxxxx>
Hi,

I'm having problems to include package substitutions into my project. I
did "osc meta prjconf home:marvin24 -e":

%if %{defined fedora_version}
Substitute: libapr1-devel apr-devel
Substitute: libapr-util1-devel apr-util-devel
Substitute: gstreamer010-plugins-base-devel gstreamer-plugins-base-devel
Substitute: libcares-devel c-ares-devel
%endif

and osc buildconfig Fedora_7 i586 shows:

-------------------
<snip>
#
# experimentel, testing for mc
#
Substitute: sgml-skel sgml-common
Substitute: docbook-xsl-stylesheets docbook-style-xsl

Substitute: libelf elfutils-libelf
Substitute: popt-devel popt


### from home:marvin24
%define _repository Fedora_7
%if %{defined fedora_version}
Substitute: libapr1-devel apr-devel
Substitute: libapr-util1-devel apr-util-devel
Substitute: gstreamer010-plugins-base-devel gstreamer-plugins-base-devel
Substitute: libcares-devel c-ares-devel
%endif

Macros:
%vendor openSUSE Build Service

### from Fedora:7
%_repository standard
%opensuse_bs 1
%fedora_version 7
%_vendor redhat

%ext_info .gz
%ext_man .gz

%info_add(:-:) test -x /sbin/install-info -a -f %{?2}%{?!2:%
{_infodir}}/%{1}%ext_info && /sbin/install-info --info-dir=%{?2}%{?!2:%
{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \ %{nil}

%info_del(:-:) test -x /sbin/install-info -a ! -f %{?2}%{?!2:%
{_infodir}}/%{1}%ext_info && /sbin/install-info --quiet --delete
--info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%
ext_info \ %{nil}

### from home:marvin24
%_repository Fedora_7

%distribution home:marvin24 / Fedora_7

---------------------------

I see that fedora_version is defined later. Is the order important here?
Does this work at all?

Thanks

Marc
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups