diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..332bf13 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,40 @@ +--- +#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: glibc-devel + BuildRequires: kakasi-devel + BuildRequires: kakasi-dict + Requires: kakasi >= 2.3.4 +#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: GPL-2.0+ +#skip_noarch: 1 +#custom_build: |- +#./Build build flags=%{?_smp_mflags} --myflag +#custom_test: |- +#startserver && make test +#ignore_requires: Bizarre::Module +#ignore_provides: Module::To::Ignore +#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 +#epoch: number diff --git a/perl-Text-Kakasi.spec b/perl-Text-Kakasi.spec index 3d8c4dd..f6a0a6c 100644 --- a/perl-Text-Kakasi.spec +++ b/perl-Text-Kakasi.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Text-Kakasi # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -12,46 +12,52 @@ # 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/ # +%define cpan_name Text-Kakasi Name: perl-Text-Kakasi -BuildRequires: kakasi-devel -Requires: kakasi >= 2.3.4 Version: 2.04 Release: 0 -Url: http://www.daionet.gr.jp/~knok/kakasi/ -Source0: http://search.cpan.org/CPAN/authors/id/D/DA/DANKOGAI/Text-Kakasi-2.04.tar.gz -Source100: README.md -BuildRoot: %{_tmppath}/%{name}-%{version}-build -Summary: Perl binding for KAKASI, the kanji kana simple inverter -License: GPL-2.0+ -Group: Development/Libraries/Perl -%{perl_requires} +#Upstream: (C) 1998, 1999, 2000 NOKUBI Takatsugu (C) 2003 Dan Kogai There is no warranty for this free software. Anyone can modify and/or redistribute this module under GNU GENERAL PUBLIC LICENSE. See COPYING file that is included in the archive for more details. +License: GPL-2.0-or-later +Summary: Perl frontend to kakasi +URL: https://metacpan.org/release/%{cpan_name} +Source0: https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildRequires: perl BuildRequires: perl-macros -# Summary(ja): KAKASIを perlから利用するためのモジュールです。 -# %description -l ja -# このモジュールは、高橋裕信さんの作成されたソフトウェアKAKASIを -# perlから用いるためのものです。 -# -# このモジュールを使うためには、最新版のKAKASI(2.3.0以降)が必要です。最 -# 新版に関しては、を参照してください。 +%{perl_requires} +# MANUAL BEGIN +BuildRequires: glibc-devel +BuildRequires: kakasi-devel +BuildRequires: kakasi-dict +Requires: kakasi >= 2.3.4 +# MANUAL END %description -This module provides libkakasi interface for perl. libkakasi is a part -of KAKASI. KAKASI is the language processing filter to convert Kanji -characters to Hiragana, Katakana or Romaji and may be helpful to read -Japanese documents. More information about KAKASI is available at -. +This module provides interface to kakasi (kanji kana simple inverter). +kakasi is a set of programs and libraries which does what Japanese input +methods do in reverse order. You feed Japanese and kakasi converts it to +phonetic representation thereof. kakasi can also be used to tokenizing +Japanese text. To find more about kakasi, see http://kakasi.namazu.org/ . + +Text::Kakasi now features both functional and object-oriented APIs. +functional APIs are 100% compatible with ver. 1.05. But to take advantage +of "Perl 5.8 Features", you should use OOP APIs instead. + +See Text::Kakasi::JP for the Japanese version of this document. %prep -%setup -n Text-Kakasi-%{version} +%autosetup -n %{cpan_name}-%{version} -p1 %build -CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL -make %{?_smp_mflags} +perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" +%make_build + +%check +make test %install %perl_make_install @@ -59,7 +65,7 @@ make %{?_smp_mflags} %perl_gen_filelist %files -f %{name}.files -%defattr(-,root,root) -%doc COPYING Changes ChangeLog* MANIFEST README* +%doc ChangeLog.1 Changes README README.jp +%license COPYING %changelog