|
|
|
@ -1,3 +1,6 @@
|
|
|
|
|
%{?scl:%scl_package mecab-ipadic}
|
|
|
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
|
|
|
|
|
|
# This spec file is very similar with mecab-jumandic
|
|
|
|
|
|
|
|
|
|
%define majorver 2.7.0
|
|
|
|
@ -11,21 +14,24 @@
|
|
|
|
|
# so debuginfo rpm is not created.
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: mecab-ipadic
|
|
|
|
|
Name: %{?scl_prefix}mecab-ipadic
|
|
|
|
|
Version: %{majorver}.%{date}
|
|
|
|
|
Release: 24%{?dist}
|
|
|
|
|
Release: 16%{?dist}
|
|
|
|
|
Summary: IPA dictionary for MeCab
|
|
|
|
|
|
|
|
|
|
Group: Applications/Text
|
|
|
|
|
License: mecab-ipadic
|
|
|
|
|
URL: http://mecab.sourceforge.net/
|
|
|
|
|
Source0: http://downloads.sourceforge.net/mecab/%{name}-%{majorver}-%{date}.tar.gz
|
|
|
|
|
Source0: http://downloads.sourceforge.net/mecab/%{pkg_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: make
|
|
|
|
|
BuildRequires: mecab-devel >= %{mecabver}
|
|
|
|
|
Requires: mecab >= %{mecabver}
|
|
|
|
|
BuildRequires: %{?scl_prefix}mecab-devel >= %{mecabver}
|
|
|
|
|
%{?scl:BuildRequires:%scl_runtime}
|
|
|
|
|
Requires: %{?scl_prefix}mecab >= %{mecabver}
|
|
|
|
|
%{?scl:Requires:%scl_runtime}
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
MeCab IPA is a dictionary for MeCab using CRF estimation
|
|
|
|
@ -34,7 +40,9 @@ This dictionary is for UTF-8 use.
|
|
|
|
|
|
|
|
|
|
%package EUCJP
|
|
|
|
|
Summary: IPA dictionary for Mecab with encoded by EUC-JP
|
|
|
|
|
Requires: mecab >= %{mecabver}
|
|
|
|
|
Group: Applications/Text
|
|
|
|
|
Requires: %{?scl_prefix}mecab >= %{mecabver}
|
|
|
|
|
%{?scl:Requires:%scl_runtime}
|
|
|
|
|
|
|
|
|
|
%description EUCJP
|
|
|
|
|
|
|
|
|
@ -43,10 +51,12 @@ based on IPA corpus.
|
|
|
|
|
This dictionary is for EUC-JP use.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{name}-%{majorver}-%{date}
|
|
|
|
|
%setup -q -n %{pkg_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
|
|
|
|
@ -64,10 +74,12 @@ This dictionary is for EUC-JP use.
|
|
|
|
|
%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 \
|
|
|
|
@ -78,7 +90,11 @@ This dictionary is for EUC-JP use.
|
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%{__cp} -p %{SOURCE2} LICENSE.jp.html
|
|
|
|
|
%{__cp} -p %{SOURCE3} .
|
|
|
|
|
%{__cp} -p %{SOURCE3} LICENSE.rhel
|
|
|
|
|
%{?scl:EOF}
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
# Note: post should be okay. mecab-dic expects that
|
|
|
|
@ -97,51 +113,28 @@ 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
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.7.0.20070801-24
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 2.7.0.20070801-23
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-22
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-21
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-20
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-19
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-18
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-17
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-16.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
* Wed Jul 18 2018 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-16
|
|
|
|
|
- Rename the LICENSE.fedora to LICENSE.rhel
|
|
|
|
|
|
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-15.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
* Thu Dec 14 2017 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-15
|
|
|
|
|
- Release bump for rebuilding on new arches
|
|
|
|
|
Related: #1518842
|
|
|
|
|
|
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-14.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-14.1
|
|
|
|
|
- Require runtime package from the scl
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-13.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-13.1
|
|
|
|
|
- Convert to SCL package
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-12.1
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|