From f3dfbf699d5caf9d65a99f7f288c617d5f1559a7 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 14 Jan 2025 22:46:06 +0800 Subject: [PATCH] cleanup spec --- perl-Unicode-LineBreak.spec | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/perl-Unicode-LineBreak.spec b/perl-Unicode-LineBreak.spec index 965924a..f0ec35c 100644 --- a/perl-Unicode-LineBreak.spec +++ b/perl-Unicode-LineBreak.spec @@ -1,8 +1,8 @@ Name: perl-Unicode-LineBreak Version: 2019.001 -Release: 6 +Release: 7 Summary: An algorithm for unicode line breaking -License: GPL+ or Artistic +License: GPL-1.0-or-later OR Artistic-1.0-Perl URL: https://metacpan.org/release/Unicode-LineBreak Source0: https://cpan.metacpan.org/authors/id/N/NE/NEZUMI/Unicode-LineBreak-%{version}.tar.gz @@ -11,12 +11,8 @@ BuildRequires: perl-generators perl(Config) perl(ExtUtils::MakeMaker) perl(stri BuildRequires: pkgconfig sed sombok-devel perl(Carp) perl(constant) perl(Encode) >= 1.98 BuildRequires: perl(Exporter) perl(overload) perl(strict) perl(vars) perl(warnings) BuildRequires: perl(XSLoader) perl(Test::More) >= 0.45 perl(MIME::Charset) >= 1.006.2 -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) perl(Encode) >= 1.98 +Requires: perl(Encode) >= 1.98 -%{?filter_setup: -%filter_from_requires /perl(Unicode::LineBreak::Constants)/d -%filter_from_provides /^perl(Unicode::LineBreak)$/d -} %{?perl_default_filter} %global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Unicode::LineBreak::Constants\\) %global __requires_exclude %__requires_exclude|^perl\\(constant\\)\s*$ @@ -30,11 +26,7 @@ newline characters. Unicode also gathers several characters under the banner of A Unicode linebreak matches the two-character CRLF grapheme or any of the seven vertical whitespace characters. -%package help -Summary: Help documents for perl-Unicode-LineBreak package - -%description help -Help documents for perl-Unicode-LineBreak package. +%package_help %prep %autosetup -n Unicode-LineBreak-%{version} -p1 @@ -48,10 +40,6 @@ sed -i -e '/^sombok/d' MANIFEST %install make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT -find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; -find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -exec rm -f {} \; -find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; - install -d $RPM_BUILD_ROOT%{_mandir}/ja/man3 for mod in Text::LineFold Unicode::GCString Unicode::LineBreak; do mv $RPM_BUILD_ROOT%{_mandir}/man3/POD2::JA::$mod.3pm \ @@ -70,9 +58,12 @@ make test %files help %doc Changes Changes.REL1 README Todo.REL1 %{_mandir}/man3/* -%{_mandir}/ja/man3/* +%lang(ja) %{_mandir}/ja/man3/* %changelog +* Tue Jan 14 2025 Funda Wang - 2019.001-7 +- cleanup spec + * Wed Jun 02 2021 zhaoyao - 2019.001-6 - fixs faileds: /bin/sh: gcc: command not found. -- Gitee