From 5512128a72f932cf8bbe2d69def15ad17bdf3283 Mon Sep 17 00:00:00 2001 From: eabdullin Date: Mon, 17 Mar 2025 15:00:09 +0000 Subject: [PATCH] import CS mecab-ipadic-2.7.0.20070801-24.module_el9+1192+f597a618 --- SPECS/mecab-ipadic.spec | 83 +++++++++++++++++++++-------------------- 1 file changed, 43 insertions(+), 40 deletions(-) diff --git a/SPECS/mecab-ipadic.spec b/SPECS/mecab-ipadic.spec index dd2354f..4184f19 100644 --- a/SPECS/mecab-ipadic.spec +++ b/SPECS/mecab-ipadic.spec @@ -1,6 +1,3 @@ -%{?scl:%scl_package mecab-ipadic} -%{!?scl:%global pkg_name %{name}} - # This spec file is very similar with mecab-jumandic %define majorver 2.7.0 @@ -14,24 +11,21 @@ # so debuginfo rpm is not created. %define debug_package %{nil} -Name: %{?scl_prefix}mecab-ipadic +Name: mecab-ipadic Version: %{majorver}.%{date} -Release: 17%{?dist} +Release: 24%{?dist} Summary: IPA dictionary for MeCab -Group: Applications/Text License: mecab-ipadic URL: http://mecab.sourceforge.net/ -Source0: http://downloads.sourceforge.net/mecab/%{pkg_name}-%{majorver}-%{date}.tar.gz +Source0: http://downloads.sourceforge.net/mecab/%{name}-%{majorver}-%{date}.tar.gz #Source2: http://www.icot.or.jp/ARCHIVE/terms-and-conditions-for-IFS-J.html Source2: http://www.jipdec.or.jp/icot/ARCHIVE/terms-and-conditions-for-IFS-J.html Source3: LICENSE.Fedora -BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) -BuildRequires: %{?scl_prefix}mecab-devel >= %{mecabver} -%{?scl:BuildRequires:%scl_runtime} -Requires: %{?scl_prefix}mecab >= %{mecabver} -%{?scl:Requires:%scl_runtime} +BuildRequires: make +BuildRequires: mecab-devel >= %{mecabver} +Requires: mecab >= %{mecabver} %description MeCab IPA is a dictionary for MeCab using CRF estimation @@ -40,9 +34,7 @@ This dictionary is for UTF-8 use. %package EUCJP Summary: IPA dictionary for Mecab with encoded by EUC-JP -Group: Applications/Text -Requires: %{?scl_prefix}mecab >= %{mecabver} -%{?scl:Requires:%scl_runtime} +Requires: mecab >= %{mecabver} %description EUCJP @@ -51,12 +43,10 @@ based on IPA corpus. This dictionary is for EUC-JP use. %prep -%setup -q -n %{pkg_name}-%{majorver}-%{date} +%setup -q -n %{name}-%{majorver}-%{date} %build # First build on UTF-8 -%{?scl:scl enable %{scl} - << \EOF} -set -x %configure \ --with-mecab-config=%{_bindir}/mecab-config \ --with-charset=utf8 @@ -74,12 +64,10 @@ set -x %configure \ --with-mecab-config=%{_bindir}/mecab-config %{__make} %{?_smp_mflags} -%{?scl:EOF} + %install # First install EUC-JP -%{?scl:scl enable %{scl} - << \EOF} -set -x %{__rm} -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT %{__mv} $RPM_BUILD_ROOT%{_libdir}/mecab/dic/ipadic \ @@ -90,11 +78,7 @@ set -x %{__make} install DESTDIR=$RPM_BUILD_ROOT %{__cp} -p %{SOURCE2} LICENSE.jp.html -%{__cp} -p %{SOURCE3} LICENSE.rhel -%{?scl:EOF} - -%clean -%{__rm} -rf $RPM_BUILD_ROOT +%{__cp} -p %{SOURCE3} . %post # Note: post should be okay. mecab-dic expects that @@ -113,32 +97,51 @@ if test -f %{_sysconfdir}/mecabrc ; then fi %files -%defattr(-,root,root,-) %doc COPYING LICENSE.* README %{_libdir}/mecab/dic/ipadic/ %files EUCJP -%defattr(-,root,root,-) %doc COPYING LICENSE.* README %{_libdir}/mecab/dic/ipadic-EUCJP/ + %changelog -* Wed Feb 12 2025 Lukas Javorsky - 2.7.0.20070801-17 -- Bump the release -- Resolves: RHEL-24525 +* Mon Aug 09 2021 Mohan Boddu - 2.7.0.20070801-24 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 -* Wed Jul 18 2018 Honza Horak - 2.7.0.20070801-16 -- Rename the LICENSE.fedora to LICENSE.rhel +* Fri Apr 16 2021 Mohan Boddu - 2.7.0.20070801-23 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 -* Thu Dec 14 2017 Honza Horak - 2.7.0.20070801-15 -- Release bump for rebuilding on new arches - Related: #1518842 +* Tue Jan 26 2021 Fedora Release Engineering - 2.7.0.20070801-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild -* Fri Jul 15 2016 Honza Horak - 2.7.0.20070801-14.1 -- Require runtime package from the scl +* Tue Jul 28 2020 Fedora Release Engineering - 2.7.0.20070801-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild -* Fri Jul 15 2016 Honza Horak - 2.7.0.20070801-13.1 -- Convert to SCL package +* Wed Jan 29 2020 Fedora Release Engineering - 2.7.0.20070801-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 2.7.0.20070801-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 01 2019 Fedora Release Engineering - 2.7.0.20070801-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 2.7.0.20070801-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Feb 08 2018 Fedora Release Engineering - 2.7.0.20070801-16.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 2.7.0.20070801-15.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.7.0.20070801-14.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.7.0.20070801-13.1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.7.0.20070801-12.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild