From f7064c2bf773c753b58d8106b1cce8e02245ceefe814033d68f6aa644ae8db27 Mon Sep 17 00:00:00 2001 From: Alexei Sorokin Date: Sat, 27 May 2017 09:27:29 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/shells/cowsay?expand=0&rev=5 --- cowsay.changes | 7 ++++++- cowsay.spec | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/cowsay.changes b/cowsay.changes index cb605b6..df31ecc 100644 --- a/cowsay.changes +++ b/cowsay.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 27 09:21:12 UTC 2017 - sor.alexei@meowr.ru + +- Add perl to BuildRequires in order to make the package rebuild + when perl was updated. + ------------------------------------------------------------------- Sat Apr 26 15:31:31 UTC 2014 - andreas.stieger@gmx.de @@ -8,7 +14,6 @@ Sat Apr 26 15:31:31 UTC 2014 - andreas.stieger@gmx.de - specify perl requirements as per packaging recommendations ------------------------------------------------------------------- - Sat Apr 6 16:05:55 UTC 2014 - sor.alexei@meowr.ru - Initial package. diff --git a/cowsay.spec b/cowsay.spec index b176f00..922da34 100644 --- a/cowsay.spec +++ b/cowsay.spec @@ -1,7 +1,7 @@ # # spec file for package cowsay # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,6 +16,9 @@ # +%if 0%{?suse_version} >= 1140 +%{?!perl_requires:%define perl_requires() Requires: perl = %{perl_version}} +%endif Name: cowsay Version: 3.03 Release: 0 @@ -27,12 +30,9 @@ Source: http://nog.net/~tony/warez/%{name}-%{version}.tar.gz Source1: http://nog.net/~tony/warez/%{name}-%{version}.tar.gz.sig Source2: http://nog.net/~tony/tony-monroe-gpgkey.txt#/cowsay.keyring BuildRequires: bash +BuildRequires: perl BuildArch: noarch -%if 0%{?suse_version} < 1140 -Requires: perl = %{perl_version} -%else -%{perl_requires} -%endif +%perl_requires %description cowsay is a configurable talking cow, written in Perl. It operates