Accepting request 325683 from devel:languages:perl

1

OBS-URL: https://build.opensuse.org/request/show/325683
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/perl-Text-Diff?expand=0&rev=16
This commit is contained in:
Stephan Kulow 2015-08-28 06:24:20 +00:00 committed by Git OBS Bridge
commit b5019f50e1
5 changed files with 48 additions and 8 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a67f50a48e313c1680cc662109ce5f913ea71454db355d0cf4db87ac89d2d2fa
size 27813

3
Text-Diff-1.43.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4c2d837c355c3f212044331f6712b5191a6cebc21c47c1157b4bb13283acb7aa
size 29330

23
cpanspec.yml Normal file
View File

@ -0,0 +1,23 @@
---
#description_paragraphs: 3
#no_testing: broken upstream
#sources:
# - source1
# - source2
#patches:
# foo.patch: -p1
# bar.patch:
#preamble: |-
# BuildRequires: gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sun Aug 23 09:26:53 UTC 2015 - coolo@suse.com
- updated to 1.43
see /usr/share/doc/packages/perl-Text-Diff/Changes
-------------------------------------------------------------------
Tue Jan 10 07:49:42 UTC 2012 - coolo@suse.com

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}