7
0

2 Commits

4 changed files with 48 additions and 24 deletions

3
.gitattributes vendored
View File

@@ -1,4 +1,4 @@
*.changes merge=merge-changes
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
@@ -12,7 +12,6 @@
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text

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,8 +1,8 @@
-------------------------------------------------------------------
Fri Aug 4 10:05:18 UTC 2023 - Victor Zhestkov <vzhestkov@suse.com>
Sat May 10 23:22:51 UTC 2025 - Tina Müller <tina.mueller@suse.com>
- Remove unused file:
* cpanspec.yml
- Normalize CPAN version
See https://github.com/openSUSE/cpanspec/issues/47 for details
-------------------------------------------------------------------
Sat Aug 19 06:21:46 UTC 2017 - coolo@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-Text-Diff
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,27 @@
#
Name: perl-Text-Diff
Version: 1.45
Release: 0
%define cpan_name Text-Diff
Summary: Perform diffs on files and record sets
Name: perl-Text-Diff
Version: 1.450.0
Release: 0
# 1.45 -> normalize -> 1.450.0
%define cpan_version 1.45
License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
URL: http://search.cpan.org/dist/Text-Diff/
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz
%if "%_vendor" != "debbuild"
ExclusiveArch: do_not_build
%endif
Summary: Perform diffs on files and record sets
URL: https://metacpan.org/release/%{cpan_name}
Source0: https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{cpan_version}.tar.gz
Source1: cpanspec.yml
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(Algorithm::Diff) >= 1.19
Requires: perl(Algorithm::Diff) >= 1.19
BuildRequires: perl(Algorithm::Diff) >= 1.190
Requires: perl(Algorithm::Diff) >= 1.190
Provides: perl(Text::Diff) = %{version}
Provides: perl(Text::Diff::Base)
Provides: perl(Text::Diff::Config) = 1.440.0
Provides: perl(Text::Diff::Table) = 1.440.0
%undefine __perllib_provides
%{perl_requires}
%description
@@ -62,14 +65,14 @@ If you pass a filename, but the file can't be read, then 'diff()' will
'croak'.
%prep
%setup -q -n %{cpan_name}-%{version}
%autosetup -n %{cpan_name}-%{cpan_version} -p1
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%check
%{__make} test
make test
%install
%perl_make_install
@@ -77,7 +80,6 @@ If you pass a filename, but the file can't be read, then 'diff()' will
%perl_gen_filelist
%files -f %{name}.files
%defattr(-,root,root,755)
%doc Changes README
%license LICENSE