Mailinglist Archive: opensuse-buildservice (366 mails)

< Previous Next >
[opensuse-buildservice] Problem with patching spec file: gconf2-rpm-macros and %gconf_schemas_prereq
  • From: "Michel Salim" <michel.sylvan@xxxxxxxxx>
  • Date: Thu, 9 Aug 2007 00:45:54 +0700
  • Message-id: <f224c6140708081045m676f56d1k4e84f2746344aa17@xxxxxxxxxxxxxx>
Hello,

I'm trying to rebuild pidgin for openSUSE 10.2, and noted that it uses
%gconf_schemas_prereq, which is not available in stock 10.2 (it is in
GNOME:unstable and openSUSE 10.3/Factory).

I imported gconf2-rpm-macros from GNOME:Community, and then uploaded
the following patch file for pidgin, marking it as a patch to the
spec. However, building still fails when parsing the spec file, when
%gconf_schemas_prereq is encountered. Moreover, gconf2-rpm-macros is
never installed by the build server!

Which was the problem: the version detection, or the way I created the
patch? Also, what does the following do:

|| 0%{?opensuse_bs}

Presumably %suse_version does not work on build service, and the
opensuse_bs is a work-around? Won't it cause problem (for pidgin
anyway) if I were to build it for, say, 10.3, if it tries to BuildReq:
on gconf2-rpm-macros just because the package is built on the build
server?

--- pidgin.spec.old     2007-08-06 10:08:01.000000000 +0700
+++ pidgin.spec 2007-08-09 00:09:23.000000000 +0700
@@ -52,6 +52,9 @@
 %if %suse_version >= 1021 || 0%{?opensuse_bs}
 BuildRequires:  avahi-compat-howl-devel silc-toolkit-devel
 %endif
+%if %suse_version <= 1020
+BuildRequires: gconf2-rpm-macros
+%endif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build

 %gconf_schemas_prereq


Thanks,

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

< Previous Next >