|
|
@ -1,6 +1,3 @@
|
|
|
|
%{?scl:%scl_package mecab-ipadic}
|
|
|
|
|
|
|
|
%{!?scl:%global pkg_name %{name}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# This spec file is very similar with mecab-jumandic
|
|
|
|
# This spec file is very similar with mecab-jumandic
|
|
|
|
|
|
|
|
|
|
|
|
%define majorver 2.7.0
|
|
|
|
%define majorver 2.7.0
|
|
|
@ -14,24 +11,21 @@
|
|
|
|
# so debuginfo rpm is not created.
|
|
|
|
# so debuginfo rpm is not created.
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%define debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
|
|
Name: %{?scl_prefix}mecab-ipadic
|
|
|
|
Name: mecab-ipadic
|
|
|
|
Version: %{majorver}.%{date}
|
|
|
|
Version: %{majorver}.%{date}
|
|
|
|
Release: 16%{?dist}
|
|
|
|
Release: 24%{?dist}
|
|
|
|
Summary: IPA dictionary for MeCab
|
|
|
|
Summary: IPA dictionary for MeCab
|
|
|
|
|
|
|
|
|
|
|
|
Group: Applications/Text
|
|
|
|
|
|
|
|
License: mecab-ipadic
|
|
|
|
License: mecab-ipadic
|
|
|
|
URL: http://mecab.sourceforge.net/
|
|
|
|
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.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
|
|
|
|
Source2: http://www.jipdec.or.jp/icot/ARCHIVE/terms-and-conditions-for-IFS-J.html
|
|
|
|
Source3: LICENSE.Fedora
|
|
|
|
Source3: LICENSE.Fedora
|
|
|
|
BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: %{?scl_prefix}mecab-devel >= %{mecabver}
|
|
|
|
BuildRequires: make
|
|
|
|
%{?scl:BuildRequires:%scl_runtime}
|
|
|
|
BuildRequires: mecab-devel >= %{mecabver}
|
|
|
|
Requires: %{?scl_prefix}mecab >= %{mecabver}
|
|
|
|
Requires: mecab >= %{mecabver}
|
|
|
|
%{?scl:Requires:%scl_runtime}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
MeCab IPA is a dictionary for MeCab using CRF estimation
|
|
|
|
MeCab IPA is a dictionary for MeCab using CRF estimation
|
|
|
@ -40,9 +34,7 @@ This dictionary is for UTF-8 use.
|
|
|
|
|
|
|
|
|
|
|
|
%package EUCJP
|
|
|
|
%package EUCJP
|
|
|
|
Summary: IPA dictionary for Mecab with encoded by EUC-JP
|
|
|
|
Summary: IPA dictionary for Mecab with encoded by EUC-JP
|
|
|
|
Group: Applications/Text
|
|
|
|
Requires: mecab >= %{mecabver}
|
|
|
|
Requires: %{?scl_prefix}mecab >= %{mecabver}
|
|
|
|
|
|
|
|
%{?scl:Requires:%scl_runtime}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description EUCJP
|
|
|
|
%description EUCJP
|
|
|
|
|
|
|
|
|
|
|
@ -51,12 +43,10 @@ based on IPA corpus.
|
|
|
|
This dictionary is for EUC-JP use.
|
|
|
|
This dictionary is for EUC-JP use.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{majorver}-%{date}
|
|
|
|
%setup -q -n %{name}-%{majorver}-%{date}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
# First build on UTF-8
|
|
|
|
# First build on UTF-8
|
|
|
|
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
%configure \
|
|
|
|
--with-mecab-config=%{_bindir}/mecab-config \
|
|
|
|
--with-mecab-config=%{_bindir}/mecab-config \
|
|
|
|
--with-charset=utf8
|
|
|
|
--with-charset=utf8
|
|
|
@ -74,12 +64,10 @@ set -x
|
|
|
|
%configure \
|
|
|
|
%configure \
|
|
|
|
--with-mecab-config=%{_bindir}/mecab-config
|
|
|
|
--with-mecab-config=%{_bindir}/mecab-config
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%{__make} %{?_smp_mflags}
|
|
|
|
%{?scl:EOF}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
# First install EUC-JP
|
|
|
|
# First install EUC-JP
|
|
|
|
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{__mv} $RPM_BUILD_ROOT%{_libdir}/mecab/dic/ipadic \
|
|
|
|
%{__mv} $RPM_BUILD_ROOT%{_libdir}/mecab/dic/ipadic \
|
|
|
@ -90,11 +78,7 @@ set -x
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%{__cp} -p %{SOURCE2} LICENSE.jp.html
|
|
|
|
%{__cp} -p %{SOURCE2} LICENSE.jp.html
|
|
|
|
%{__cp} -p %{SOURCE3} LICENSE.rhel
|
|
|
|
%{__cp} -p %{SOURCE3} .
|
|
|
|
%{?scl:EOF}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
%{__rm} -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
%post
|
|
|
|
# Note: post should be okay. mecab-dic expects that
|
|
|
|
# Note: post should be okay. mecab-dic expects that
|
|
|
@ -113,28 +97,51 @@ if test -f %{_sysconfdir}/mecabrc ; then
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc COPYING LICENSE.* README
|
|
|
|
%doc COPYING LICENSE.* README
|
|
|
|
%{_libdir}/mecab/dic/ipadic/
|
|
|
|
%{_libdir}/mecab/dic/ipadic/
|
|
|
|
|
|
|
|
|
|
|
|
%files EUCJP
|
|
|
|
%files EUCJP
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%doc COPYING LICENSE.* README
|
|
|
|
%doc COPYING LICENSE.* README
|
|
|
|
%{_libdir}/mecab/dic/ipadic-EUCJP/
|
|
|
|
%{_libdir}/mecab/dic/ipadic-EUCJP/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Wed Jul 18 2018 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-16
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.7.0.20070801-24
|
|
|
|
- Rename the LICENSE.fedora to LICENSE.rhel
|
|
|
|
- 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
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Dec 14 2017 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-15
|
|
|
|
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-15.1
|
|
|
|
- Release bump for rebuilding on new arches
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
Related: #1518842
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-14.1
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-14.1
|
|
|
|
- Require runtime package from the scl
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-13.1
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-13.1
|
|
|
|
- Convert to SCL package
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-12.1
|
|
|
|
* 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
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|