From 21046c038971b1327c7bd6345008679a0153e73eb5ef7eb076f02f54a228f176 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tina=20M=C3=BCller?= Date: Mon, 10 Feb 2025 21:42:03 +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-Iconv?expand=0&rev=21 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + Text-Iconv-1.7.tar.gz | 3 ++ cpanspec.yml | 35 ++++++++++++++++ perl-Text-Iconv.changes | 92 +++++++++++++++++++++++++++++++++++++++++ perl-Text-Iconv.spec | 67 ++++++++++++++++++++++++++++++ 6 files changed, 221 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Text-Iconv-1.7.tar.gz create mode 100644 cpanspec.yml create mode 100644 perl-Text-Iconv.changes create mode 100644 perl-Text-Iconv.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## 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 +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm 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 +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/Text-Iconv-1.7.tar.gz b/Text-Iconv-1.7.tar.gz new file mode 100644 index 0000000..49611e0 --- /dev/null +++ b/Text-Iconv-1.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b80b7d5e709d34393bcba88971864a17b44a5bf0f9e4bcee383d029e7d2d5c3 +size 10454 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..c76cf3a --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,35 @@ +--- +#description_paragraphs: 3 +#description: |- +# override description from CPAN +#summary: override summary from CPAN +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +# baz.patch: PATCH-FIX-OPENSUSE +#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_build: |- +# rm unused.files +#post_install: |- +# sed on %{name}.files +license: perl +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module +#skip_doc: regexp_to_skip_for_doc.* +#add_doc: files to add to docs +#misc: |- +#anything else to be added to spec file +#follows directly after %files section, so it can contain new blocks or also +#changes to %files section diff --git a/perl-Text-Iconv.changes b/perl-Text-Iconv.changes new file mode 100644 index 0000000..5852808 --- /dev/null +++ b/perl-Text-Iconv.changes @@ -0,0 +1,92 @@ +------------------------------------------------------------------- +Mon Feb 10 21:39:41 UTC 2025 - Tina Müller + +- Normalize CPAN version + See https://github.com/openSUSE/cpanspec/issues/47 for details + +------------------------------------------------------------------- +Fri Nov 18 08:38:26 UTC 2011 - coolo@suse.com + +- use original tar + +------------------------------------------------------------------- +Wed Dec 1 13:35:46 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de + +- enable parallel build + +------------------------------------------------------------------- +Tue Jul 28 09:46:52 CEST 2009 - coolo@novell.com + +- merge factory and build service package + +------------------------------------------------------------------- +Wed Jul 15 10:59:36 CEST 2009 - chris@computersalat.de + +- added perl-macros + o autogen filelist with perl_gen_filelist +- spec mods + o added header + +------------------------------------------------------------------- +Tue Jun 2 09:27:15 CEST 2009 - lars@linux-schulserver.de + +- update to version 1.7 + * Output buffer was always initialized to 5 bytes--this was + just for testing, but I'd forgotten to revert back to the + original code (detected via a bug report by Aldo LeTellier). + * Added get_attr() and set_attr() methods. They provide an + interface to the iconvctl() function of GNU libiconv. + * In Iconv.xs, moved the variable declarations in + ti_set_attr() and ti_get_attr() into the PREINIT: section. + +------------------------------------------------------------------- +Wed Jan 25 21:39:59 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Sep 28 22:14:59 CEST 2005 - dmueller@suse.de + + - add norootforbuild + +------------------------------------------------------------------- +Sun Jul 31 17:50:36 CEST 2005 - cthiel@suse.de + +- update to version 1.4 + +------------------------------------------------------------------- +Fri Aug 22 15:50:52 CEST 2003 - mjancar@suse.cz + +- require the perl version we build with + +------------------------------------------------------------------- +Mon Jul 28 08:58:53 CEST 2003 - coolo@suse.de + +- fix build + +------------------------------------------------------------------- +Tue Jul 1 14:00:34 CEST 2003 - ro@suse.de + +- use perl_process_packlist macro +- remove perllocal.pod from filelist + +------------------------------------------------------------------- +Mon Jun 16 08:20:39 CEST 2003 - coolo@suse.de + +- package directories + +------------------------------------------------------------------- +Mon Nov 18 14:22:36 CET 2002 - ro@suse.de + +- fixed typo in specfile + +------------------------------------------------------------------- +Sun Nov 17 12:52:45 CET 2002 - adrian@suse.de + +- initial package of perl-Text-Iconv 1.2 (needed for gift) + diff --git a/perl-Text-Iconv.spec b/perl-Text-Iconv.spec new file mode 100644 index 0000000..82e3eed --- /dev/null +++ b/perl-Text-Iconv.spec @@ -0,0 +1,67 @@ +# +# spec file for package perl-Text-Iconv +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define cpan_name Text-Iconv +Name: perl-Text-Iconv +Version: 1.700.0 +Release: 0 +# 1.7 -> normalize -> 1.700.0 +%define cpan_version 1.7 +License: Artistic-1.0 OR GPL-1.0-or-later +Summary: Perl interface to iconv() codeset conversion function +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/M/MP/MPIOTR/%{cpan_name}-%{cpan_version}.tar.gz +Source1: cpanspec.yml +BuildRequires: perl +BuildRequires: perl-macros +Provides: perl(Text::Iconv) = %{version} +%undefine __perllib_provides +%{perl_requires} + +%description +The *Text::Iconv* module provides a Perl interface to the iconv() function +as defined by the Single UNIX Specification. + +The convert() method converts the encoding of characters in the input +string from the _fromcode_ codeset to the _tocode_ codeset, and returns the +result. + +Settings of _fromcode_ and _tocode_ and their permitted combinations are +implementation-dependent. Valid values are specified in the system +documentation; the iconv(1) utility should also provide a *-l* option that +lists all supported codesets. + +%prep +%autosetup -n %{cpan_name}-%{cpan_version} -p1 + +%build +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build + +%check +make test + +%install +%perl_make_install +%perl_process_packlist +%perl_gen_filelist + +%files -f %{name}.files +%doc Changes README + +%changelog