From 7f3885d4ef767eef8af131398a1dba9a918cc7ce6cb83e6253d884b7a982fa5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Sat, 3 Aug 2024 18:51:55 +0000 Subject: [PATCH] Normalize CPAN version See https://github.com/openSUSE/cpanspec/issues/47 for details OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Text-vFile-asData?expand=0&rev=8 --- perl-Text-vFile-asData.spec | 33 +++++++++++++++++---------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/perl-Text-vFile-asData.spec b/perl-Text-vFile-asData.spec index 341c263..3a042fa 100644 --- a/perl-Text-vFile-asData.spec +++ b/perl-Text-vFile-asData.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Text-vFile-asData # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,27 +12,29 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -Name: perl-Text-vFile-asData -Version: 0.08 -Release: 0 %define cpan_name Text-vFile-asData -Summary: parse vFile formatted files into data structures -License: Artistic-1.0 or GPL-1.0+ -Group: Development/Libraries/Perl -Url: http://search.cpan.org/dist/Text-vFile-asData/ -Source: http://www.cpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{version}.tar.gz +Name: perl-Text-vFile-asData +Version: 0.80.0 +Release: 0 +# 0.08 -> normalize -> 0.80.0 +%define cpan_version 0.08 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Parse vFile formatted files into data structures +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/%{cpan_name}-%{cpan_version}.tar.gz BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl BuildRequires: perl-macros BuildRequires: perl(Class::Accessor::Chained) BuildRequires: perl(Test::More) >= 0.88 Requires: perl(Class::Accessor::Chained) Requires: perl(Test::More) >= 0.88 +Provides: perl(Text::vFile::asData) = %{version} +%undefine __perllib_provides %{perl_requires} %description @@ -40,14 +42,14 @@ Text::vFile::asData reads vFile format files, such as vCard (RFC 2426) and vCalendar (RFC 2445). %prep -%setup -q -n %{cpan_name}-%{version} +%autosetup -n %{cpan_name}-%{cpan_version} %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 @@ -55,7 +57,6 @@ vCalendar (RFC 2445). %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root,755) %doc Changes examples %changelog