8
0

Accepting request 325506 from devel:languages:perl:autoupdate

automatic update

OBS-URL: https://build.opensuse.org/request/show/325506
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-Diff?expand=0&rev=20
This commit is contained in:
Stephan Kulow
2015-08-23 14:12:33 +00:00
committed by Git OBS Bridge
parent 32a24959a6
commit f28a8e8a7b
5 changed files with 48 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Text-Diff
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 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
@@ -17,21 +17,20 @@
Name: perl-Text-Diff
Version: 1.41
Version: 1.43
Release: 0
%define cpan_name Text-Diff
Summary: Perform diffs on files and record sets
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/Text-Diff/
Source: http://www.cpan.org/authors/id/O/OV/OVID/%{cpan_name}-%{version}.tar.gz
Source0: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Algorithm::Diff) >= 1.19
#BuildRequires: perl(Text::Diff)
#BuildRequires: perl(Text::Diff::Config)
Requires: perl(Algorithm::Diff) >= 1.19
%{perl_requires}
@@ -48,6 +47,18 @@ it will be a valid diff and comprehensible by 'patch'. We haven't seen any
differences between Algorithm::Diff's logic and GNU diff's, but we have not
examined them to make sure they are indeed identical.
*Note*: If you don't want to import the 'diff' function, do one of the
following:
use Text::Diff ();
require Text::Diff;
That's a pretty rare occurence, so 'diff()' is exported by default.
If you pass a filename, but the file can't be read, then 'diff()' will
'croak'.
%prep
%setup -q -n %{cpan_name}-%{version}