Compare commits

...

No commits in common. 'c9' and 'c8-stream-8.0' have entirely different histories.

@ -1,3 +1,6 @@
%{?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
@ -11,21 +14,24 @@
# so debuginfo rpm is not created. # so debuginfo rpm is not created.
%define debug_package %{nil} %define debug_package %{nil}
Name: mecab-ipadic Name: %{?scl_prefix}mecab-ipadic
Version: %{majorver}.%{date} Version: %{majorver}.%{date}
Release: 24%{?dist} Release: 16%{?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/%{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.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: make BuildRequires: %{?scl_prefix}mecab-devel >= %{mecabver}
BuildRequires: mecab-devel >= %{mecabver} %{?scl:BuildRequires:%scl_runtime}
Requires: mecab >= %{mecabver} Requires: %{?scl_prefix}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
@ -34,7 +40,9 @@ 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
Requires: mecab >= %{mecabver} Group: Applications/Text
Requires: %{?scl_prefix}mecab >= %{mecabver}
%{?scl:Requires:%scl_runtime}
%description EUCJP %description EUCJP
@ -43,10 +51,12 @@ based on IPA corpus.
This dictionary is for EUC-JP use. This dictionary is for EUC-JP use.
%prep %prep
%setup -q -n %{name}-%{majorver}-%{date} %setup -q -n %{pkg_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
@ -64,10 +74,12 @@ This dictionary is for EUC-JP use.
%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 \
@ -78,7 +90,11 @@ This dictionary is for EUC-JP use.
%{__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} . %{__cp} -p %{SOURCE3} LICENSE.rhel
%{?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
@ -97,51 +113,28 @@ 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
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 2.7.0.20070801-24 * Wed Jul 18 2018 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-16
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags - Rename the LICENSE.fedora to LICENSE.rhel
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 Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-15.1 * Thu Dec 14 2017 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild - 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 * Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-14.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Require runtime package from the scl
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.0.20070801-13.1 * Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 2.7.0.20070801-13.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - Convert to SCL package
* 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

Loading…
Cancel
Save