|
|
033198 |
%define mainver 0.996
|
|
|
033198 |
#%%define betaver pre3
|
|
|
033198 |
%define fedorarel 3
|
|
|
033198 |
|
|
|
033198 |
# Note:
|
|
|
033198 |
# mecab dictionary requires mecab-devel to rebuild it,
|
|
|
033198 |
# and mecab requires mecab dictionary
|
|
|
033198 |
|
|
|
033198 |
Name: mecab
|
|
|
033198 |
Version: %{mainver}
|
|
|
033198 |
%if %{?betaver:0}%{!?betaver:1}
|
|
|
033198 |
Release: %{fedorarel}%{?dist}.3
|
|
|
033198 |
%else
|
|
|
033198 |
Release: 0.%{fedorarel}.%{betaver}%{?dist}.3
|
|
|
033198 |
%endif
|
|
|
033198 |
Summary: Yet Another Part-of-Speech and Morphological Analyzer
|
|
|
033198 |
|
|
|
033198 |
License: BSD or LGPLv2+ or GPL+
|
|
|
033198 |
URL: http://mecab.sourceforge.net/
|
|
|
033198 |
Source0: http://mecab.googlecode.com/files/%{name}-%{version}.tar.gz
|
|
|
033198 |
|
|
|
033198 |
BuildRequires: make
|
|
|
033198 |
BuildRequires: gcc-c++
|
|
|
033198 |
|
|
|
033198 |
%description
|
|
|
033198 |
MeCab is a open source morphological analyzer which uses
|
|
|
033198 |
CRF (Conditional Random Fields) as the estimation of parameters.
|
|
|
033198 |
|
|
|
033198 |
NOTE:
|
|
|
033198 |
You have to install MeCab dictionary rpm to make use
|
|
|
033198 |
of MeCab.
|
|
|
033198 |
|
|
|
033198 |
%package devel
|
|
|
033198 |
Summary: Libraries and Header files for Mecab
|
|
|
033198 |
Requires: %{name}%{?isa} = %{version}-%{release}
|
|
|
033198 |
|
|
|
033198 |
%description devel
|
|
|
033198 |
This is the development package that provides header files and libraries
|
|
|
033198 |
for MeCab.
|
|
|
033198 |
|
|
|
033198 |
%prep
|
|
|
033198 |
%setup -q -n %{name}-%{mainver}%{?betaver}
|
|
|
033198 |
|
|
|
033198 |
|
|
|
033198 |
mv doc/doxygen .
|
|
|
033198 |
find . -name \*.cpp -print0 | xargs -0 %{__chmod} 0644
|
|
|
033198 |
|
|
|
033198 |
# compiler flags fix
|
|
|
033198 |
%{__sed} -i.flags \
|
|
|
033198 |
-e '/-O3/s|CFLAGS=\"\(.*\)\"|CFLAGS=\${CFLAGS:-\1}|' \
|
|
|
033198 |
-e '/-O3/s|CXXFLAGS=\"\(.*\)\"|CXXFLAGS=\${CFLAGS:-\1}|' \
|
|
|
033198 |
-e '/MECAB_LIBS/s|-lstdc++||' \
|
|
|
033198 |
configure
|
|
|
033198 |
|
|
|
033198 |
# multilib change
|
|
|
033198 |
%{__sed} -i.multilib \
|
|
|
033198 |
-e 's|@prefix@/lib/mecab|%{_libdir}/mecab|' \
|
|
|
033198 |
mecab-config.in mecabrc.in
|
|
|
033198 |
|
|
|
033198 |
%build
|
|
|
033198 |
%configure
|
|
|
033198 |
# remove rpath from libtool
|
|
|
033198 |
%{__sed} -i.rpath \
|
|
|
033198 |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
033198 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
033198 |
libtool
|
|
|
033198 |
|
|
|
033198 |
%make_build
|
|
|
033198 |
|
|
|
033198 |
%install
|
|
|
033198 |
%make_install
|
|
|
033198 |
|
|
|
033198 |
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
|
|
|
033198 |
%{__rm} -f doc/Makefile*
|
|
|
033198 |
|
|
|
033198 |
# create directory
|
|
|
033198 |
%{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}/mecab/dic/
|
|
|
033198 |
|
|
|
033198 |
%check
|
|
|
033198 |
# here enable rpath
|
|
|
033198 |
export LD_LIBRARY_PATH=$(pwd)/src/.libs
|
|
|
033198 |
cd tests
|
|
|
033198 |
%{__make} check || :
|
|
|
033198 |
cd ..
|
|
|
033198 |
|
|
|
033198 |
%ldconfig_scriptlets
|
|
|
033198 |
|
|
|
033198 |
%files
|
|
|
033198 |
%doc AUTHORS BSD COPYING GPL LGPL
|
|
|
033198 |
%doc doc/ example/
|
|
|
033198 |
%{_mandir}/man1/%{name}.1*
|
|
|
033198 |
|
|
|
033198 |
%config(noreplace) %{_sysconfdir}/mecabrc
|
|
|
033198 |
%{_bindir}/%{name}
|
|
|
033198 |
%{_libexecdir}/%{name}/
|
|
|
033198 |
%{_libdir}/lib%{name}.so.2*
|
|
|
033198 |
# several dictionaries can install data files
|
|
|
033198 |
# into the following directory.
|
|
|
033198 |
%dir %{_libdir}/%{name}/
|
|
|
033198 |
%dir %{_libdir}/%{name}/dic/
|
|
|
033198 |
|
|
|
033198 |
%files devel
|
|
|
033198 |
%doc doxygen/
|
|
|
033198 |
%{_bindir}/%{name}-config
|
|
|
033198 |
%{_libdir}/lib%{name}.so
|
|
|
033198 |
%{_includedir}/%{name}.h
|
|
|
033198 |
|
|
|
033198 |
%changelog
|
|
|
033198 |
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.996-3.3
|
|
|
033198 |
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
033198 |
Related: rhbz#1991688
|
|
|
033198 |
|
|
|
033198 |
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.996-3.2
|
|
|
033198 |
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
033198 |
|
|
|
033198 |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-3.1
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Thu Aug 20 2020 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.996-3
|
|
|
033198 |
- Use recent rpm macros
|
|
|
033198 |
|
|
|
033198 |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-2.5
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-2.4
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-2.3
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-2.2
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-2.1
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Thu Feb 15 2018 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.996-2
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-1.9
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-1.8
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-1.7
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1.6
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-1.5
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-1.4
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1.3
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.996-1.2
|
|
|
033198 |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
033198 |
|
|
|
033198 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1.1
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1.1
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Fri Feb 22 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.996-1
|
|
|
033198 |
- 0.996
|
|
|
033198 |
|
|
|
033198 |
* Sun Feb 10 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.995-1
|
|
|
033198 |
- 0.995
|
|
|
033198 |
|
|
|
033198 |
* Mon Aug 6 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.994-2
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Mon Jul 2 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.994-1
|
|
|
033198 |
- 0.994
|
|
|
033198 |
|
|
|
033198 |
* Thu Mar 29 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.993-1
|
|
|
033198 |
- 0.993
|
|
|
033198 |
|
|
|
033198 |
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.991-1
|
|
|
033198 |
- Rebuilt for c++ ABI breakage
|
|
|
033198 |
|
|
|
033198 |
* Sun Jan 15 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.991-1
|
|
|
033198 |
- 0.991
|
|
|
033198 |
|
|
|
033198 |
* Mon Jan 9 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.99-1
|
|
|
033198 |
- 0.99
|
|
|
033198 |
|
|
|
033198 |
* Thu Jan 5 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.98-2
|
|
|
033198 |
- F-17: rebuild against gcc47
|
|
|
033198 |
|
|
|
033198 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-1
|
|
|
033198 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
033198 |
|
|
|
033198 |
* Tue Sep 29 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-1
|
|
|
033198 |
- 0.98
|
|
|
033198 |
|
|
|
033198 |
* Wed Jul 29 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.5.pre3
|
|
|
033198 |
- Enable tests on ppc{,64} again
|
|
|
033198 |
|
|
|
033198 |
* Sat Jul 25 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.4.pre3
|
|
|
033198 |
- Kill tests on ppc, ppc64 for now as tests hang
|
|
|
033198 |
|
|
|
033198 |
* Thu Jun 4 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.3.pre3
|
|
|
033198 |
- 0.98 pre3
|
|
|
033198 |
|
|
|
033198 |
* Thu Apr 23 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.2.pre2
|
|
|
033198 |
- 0.98 pre2
|
|
|
033198 |
|
|
|
033198 |
* Mon Mar 9 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.1.pre1
|
|
|
033198 |
- Update to 0.98pre1
|
|
|
033198 |
|
|
|
033198 |
* Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-4
|
|
|
033198 |
- F-11: Mass rebuild
|
|
|
033198 |
|
|
|
033198 |
* Sun Jun 1 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-3
|
|
|
033198 |
- Remove ancient || : after %%check
|
|
|
033198 |
|
|
|
033198 |
* Sun Feb 3 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-1
|
|
|
033198 |
- 0.97
|
|
|
033198 |
|
|
|
033198 |
* Thu Oct 25 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-2
|
|
|
033198 |
- License fix
|
|
|
033198 |
|
|
|
033198 |
* Wed Aug 22 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1.dist.2
|
|
|
033198 |
- Mass rebuild (buildID or binutils issue)
|
|
|
033198 |
|
|
|
033198 |
* Fri Aug 3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1.dist.1
|
|
|
033198 |
- License update
|
|
|
033198 |
|
|
|
033198 |
* Mon Jun 11 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1
|
|
|
033198 |
- 0.96 release
|
|
|
033198 |
|
|
|
033198 |
* Fri May 4 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-2.dist.2
|
|
|
033198 |
- rebuild
|
|
|
033198 |
|
|
|
033198 |
* Sun Apr 1 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-2
|
|
|
033198 |
- remove -lstdc++ from mecab-config (#233424)
|
|
|
033198 |
|
|
|
033198 |
* Sun Mar 11 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-1
|
|
|
033198 |
- 0.95
|
|
|
033198 |
|
|
|
033198 |
* Thu Mar 8 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-0.1.pre1.1
|
|
|
033198 |
- 0.95 pre1
|
|
|
033198 |
|
|
|
033198 |
* Tue Feb 27 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.4.pre2
|
|
|
033198 |
- Fix libexec dir for 64bit.
|
|
|
033198 |
|
|
|
033198 |
* Tue Feb 27 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.3.pre2
|
|
|
033198 |
- Package requirement deps reconstruct
|
|
|
033198 |
|
|
|
033198 |
* Mon Feb 26 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.2.pre2
|
|
|
033198 |
- Remove rpath on 64bit.
|
|
|
033198 |
|
|
|
033198 |
* Fri Feb 23 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.1.pre2
|
|
|
033198 |
- Initial packaging for Fedora.
|
|
|
033198 |
|
|
|
033198 |
* Fri Feb 23 2007 Minokichi Sato <m-sato@rc.kyushu-u.ac.jp>
|
|
|
033198 |
- Initial build.
|