Mailinglist Archive: opensuse-buildservice (63 mails)

< Previous Next >
Re: [opensuse-buildservice] Question about logic in an example spec file?
On Thu, 2015-12-31 at 12:03 -0800, jimssupp@xxxxxxxxxxxx wrote:
As a guess:

A lot of spec files in OBS are updated via automated scripts.  They
aren't always the smartest.

The code probably had:

         %if 0%{?suse_version} >= 1210 ||  0%{?fedora_version}
 (1)      BuildRequires:  systemd
          %define have_systemd 1
 (2)       PreReq:         %fillup_prereq
           PreReq:         %insserv_prereq

Before an automated script came along and fixed the else clause.

One way to tell is to look back at the revision history of the spec
file.  Hopefully the changes file will detail that an automated
made the change.

This example just happens to come from Shorewall.  I wanted an
example that had multiple subpackages & dealt with multiple
distros.  I have this one installed even though it doesn't look like
it's being updated anymore.  (Eventually I guess I'll get around to
build something newer maybe.)

Looking at its history,

I'm not even sure yet what I'm looking for in these to tell if this
was automated. :-/

But your 'guess' sure sounds reasonable.


This error actually happened in this request:, just a bit over three
years ago :)

I doubt there was any automatism involved...


To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages