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-Unicode-UTF8simple?expand=0&rev=11
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package perl-Unicode-UTF8simple
|
# spec file for package perl-Unicode-UTF8simple
|
||||||
#
|
#
|
||||||
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -12,54 +12,53 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# 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/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define modname Unicode-UTF8simple
|
%define cpan_name Unicode-UTF8simple
|
||||||
|
Name: perl-Unicode-UTF8simple
|
||||||
Name: perl-%{modname}
|
Version: 1.50.0
|
||||||
Version: 1.06
|
Release: 0
|
||||||
Release: 1
|
# 1.05 -> normalize -> 1.50.0
|
||||||
|
%define cpan_version 1.05
|
||||||
|
License: CHECK(Artistic-1.0 or GPL-1.0-or-later)
|
||||||
Summary: Conversions to/from UTF8 from/to charactersets
|
Summary: Conversions to/from UTF8 from/to charactersets
|
||||||
|
URL: https://metacpan.org/release/%{cpan_name}
|
||||||
|
Source0: https://cpan.metacpan.org/authors/id/G/GU/GUS/%{cpan_name}-1.06.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
BuildRequires: perl
|
BuildRequires: perl
|
||||||
BuildRequires: perl-macros
|
BuildRequires: perl-macros
|
||||||
License: GPL/Artistic
|
Provides: perl(Unicode::UTF8simple) = 1.60.0
|
||||||
Group: Development/Libraries/Perl
|
%undefine __perllib_provides
|
||||||
Source: %{modname}-%{version}.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
%{perl_requires}
|
%{perl_requires}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This utf-8 converter is written in plain perl and works with hopefully any perl
|
Provides UTF-8 conversion for perl versions from 5.00 and up. It was mainly
|
||||||
5 version. It was mainly written because more recent modules such as Encode do
|
written for use with perl 5.00 to 5.6.0 because those perl versions do not
|
||||||
not work under older Perl 5.0 installations.
|
support Unicode::MapUTF8 or Encode.
|
||||||
|
|
||||||
Authors:
|
Unicode::UTF8simple is written in plain perl (no C code) and will work with
|
||||||
--------
|
any Perl 5 version. It is just slightly slower than Encode.
|
||||||
Guido Socher <guido at linuxfocus dot org>
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%autosetup -n %{cpan_name}-1.06
|
||||||
|
|
||||||
|
find . -type f ! -path "*/t/*" ! -name "*.pl" ! -path "*/bin/*" ! -path "*/script/*" ! -path "*/scripts/*" ! -name "configure" -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall"
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
make
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf %{buildroot}
|
%perl_make_install
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install_vendor
|
|
||||||
%perl_process_packlist
|
%perl_process_packlist
|
||||||
|
%perl_gen_filelist
|
||||||
|
|
||||||
%clean
|
%files -f %{name}.files
|
||||||
rm -rf %{buildroot}
|
%doc gb2312.txt README
|
||||||
|
|
||||||
%files
|
|
||||||
%defattr(-, root, root)
|
|
||||||
%doc README test.pl
|
|
||||||
%doc %{_mandir}/man?/*
|
|
||||||
%{perl_vendorlib}/Unicode
|
|
||||||
%{perl_vendorarch}/auto/Unicode
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user