|
|
aa55e3 |
%{?scl:%scl_package mecab}
|
|
|
aa55e3 |
%{!?scl:%global pkg_name %{name}}
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%define mainver 0.996
|
|
|
aa55e3 |
#%%define betaver pre3
|
|
|
aa55e3 |
%define fedorarel 2
|
|
|
aa55e3 |
|
|
|
aa55e3 |
# Note:
|
|
|
aa55e3 |
# mecab dictionary requires mecab-devel to rebuild it,
|
|
|
aa55e3 |
# and mecab requires mecab dictionary
|
|
|
aa55e3 |
|
|
|
aa55e3 |
Name: %{?scl_prefix}mecab
|
|
|
aa55e3 |
Version: %{mainver}
|
|
|
aa55e3 |
%if %{?betaver:0}%{!?betaver:1}
|
|
|
aa55e3 |
Release: %{fedorarel}%{?dist}
|
|
|
aa55e3 |
%else
|
|
|
aa55e3 |
Release: 0.%{fedorarel}.%{betaver}%{?dist}.11
|
|
|
aa55e3 |
%endif
|
|
|
aa55e3 |
Summary: Yet Another Part-of-Speech and Morphological Analyzer
|
|
|
aa55e3 |
|
|
|
aa55e3 |
Group: Applications/Text
|
|
|
aa55e3 |
License: BSD or LGPLv2+ or GPL+
|
|
|
aa55e3 |
URL: http://mecab.sourceforge.net/
|
|
|
aa55e3 |
Source0: http://mecab.googlecode.com/files/%{pkg_name}-%{version}.tar.gz
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%{?scl:BuildRequires:%scl_runtime}
|
|
|
aa55e3 |
%{?scl:Requires:%scl_runtime}
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%description
|
|
|
aa55e3 |
MeCab is a open source morphological analyzer which uses
|
|
|
aa55e3 |
CRF (Conditional Random Fields) as the estimation of parameters.
|
|
|
aa55e3 |
|
|
|
aa55e3 |
NOTE:
|
|
|
aa55e3 |
You have to install MeCab dictionary rpm to make use
|
|
|
aa55e3 |
of MeCab.
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%package devel
|
|
|
aa55e3 |
Summary: Libraries and Header files for Mecab
|
|
|
aa55e3 |
Group: Development/Libraries
|
|
|
aa55e3 |
Requires: %{name}%{?isa} = %{version}-%{release}
|
|
|
aa55e3 |
%{?scl:Requires:%scl_runtime}
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%description devel
|
|
|
aa55e3 |
This is the development package that provides header files and libraries
|
|
|
aa55e3 |
for MeCab.
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%prep
|
|
|
aa55e3 |
%setup -q -n %{pkg_name}-%{mainver}%{?betaver}
|
|
|
aa55e3 |
|
|
|
aa55e3 |
|
|
|
aa55e3 |
mv doc/doxygen .
|
|
|
aa55e3 |
find . -name \*.cpp -print0 | xargs -0 %{__chmod} 0644
|
|
|
aa55e3 |
|
|
|
aa55e3 |
# compiler flags fix
|
|
|
aa55e3 |
%{__sed} -i.flags \
|
|
|
aa55e3 |
-e '/-O3/s|CFLAGS=\"\(.*\)\"|CFLAGS=\${CFLAGS:-\1}|' \
|
|
|
aa55e3 |
-e '/-O3/s|CXXFLAGS=\"\(.*\)\"|CXXFLAGS=\${CFLAGS:-\1}|' \
|
|
|
aa55e3 |
-e '/MECAB_LIBS/s|-lstdc++||' \
|
|
|
aa55e3 |
configure
|
|
|
aa55e3 |
|
|
|
aa55e3 |
# multilib change
|
|
|
aa55e3 |
%{__sed} -i.multilib \
|
|
|
aa55e3 |
-e 's|@prefix@/lib/mecab|%{_libdir}/mecab|' \
|
|
|
aa55e3 |
mecab-config.in mecabrc.in
|
|
|
aa55e3 |
|
|
|
aa55e3 |
# allow to use some non-number major number in library soname
|
|
|
aa55e3 |
sed -i -r 's|(major=\.)(\$func_arith_result)|\1$verstring_prefix\2|' ltmain.sh
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%build
|
|
|
aa55e3 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
aa55e3 |
set -x
|
|
|
aa55e3 |
%configure
|
|
|
aa55e3 |
# remove rpath from libtool
|
|
|
aa55e3 |
%{__sed} -i.rpath \
|
|
|
aa55e3 |
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
aa55e3 |
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
aa55e3 |
libtool
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%{?scl_prefix:export verstring_prefix="%{scl_prefix}"}
|
|
|
aa55e3 |
%{__make} %{?_smp_mflags}
|
|
|
aa55e3 |
%{?scl:EOF}
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%install
|
|
|
aa55e3 |
%{?scl:scl enable %{scl} - << \EOF}
|
|
|
aa55e3 |
set -x
|
|
|
aa55e3 |
%{__make} install \
|
|
|
aa55e3 |
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
aa55e3 |
INSTALL="%{__install} -c -p"
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
|
|
|
aa55e3 |
%{__rm} -f doc/Makefile*
|
|
|
aa55e3 |
|
|
|
aa55e3 |
# create directory
|
|
|
aa55e3 |
%{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}/mecab/dic/
|
|
|
aa55e3 |
%{?scl:EOF}
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%check
|
|
|
aa55e3 |
# here enable rpath
|
|
|
aa55e3 |
export LD_LIBRARY_PATH=$(pwd)/src/.libs
|
|
|
aa55e3 |
cd tests
|
|
|
aa55e3 |
%{__make} check || :
|
|
|
aa55e3 |
cd ..
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%post -p /sbin/ldconfig
|
|
|
aa55e3 |
%postun -p /sbin/ldconfig
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%files
|
|
|
aa55e3 |
%defattr(-,root,root,-)
|
|
|
aa55e3 |
%doc AUTHORS BSD COPYING GPL LGPL
|
|
|
aa55e3 |
%doc doc/ example/
|
|
|
aa55e3 |
%{_mandir}/man1/%{pkg_name}.1*
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/mecabrc
|
|
|
aa55e3 |
%{_bindir}/%{pkg_name}
|
|
|
aa55e3 |
%{_libexecdir}/%{pkg_name}/
|
|
|
aa55e3 |
%{_libdir}/lib%{pkg_name}.so.*
|
|
|
aa55e3 |
# several dictionaries can install data files
|
|
|
aa55e3 |
# into the following directory.
|
|
|
aa55e3 |
%dir %{_libdir}/%{pkg_name}/
|
|
|
aa55e3 |
%dir %{_libdir}/%{pkg_name}/dic/
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%files devel
|
|
|
aa55e3 |
%doc doxygen/
|
|
|
aa55e3 |
%{_bindir}/%{pkg_name}-config
|
|
|
aa55e3 |
%{_libdir}/lib%{pkg_name}.so
|
|
|
aa55e3 |
%{_includedir}/%{pkg_name}.h
|
|
|
aa55e3 |
|
|
|
aa55e3 |
%changelog
|
|
|
aa55e3 |
* Wed Jan 19 2022 Lukas Javorsky <ljavorsk@redhat.com> - 0.996-2
|
|
|
aa55e3 |
- Rebuild to fix the issue described in #2000986
|
|
|
aa55e3 |
- Resolves: #2000986
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Wed Dec 13 2017 Honza Horak <hhorak@redhat.com> - 0.996-1.9
|
|
|
aa55e3 |
- Release bump for rebuilding on new arches
|
|
|
aa55e3 |
Related: #1518842
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Tue Oct 25 2016 Jakub Dorňák <jdornak@redhat.com> - 0.996-1.8
|
|
|
aa55e3 |
- skip %verify of /etc/opt/rh/rh-mysql57/mecabrc
|
|
|
aa55e3 |
Resolves: #1382315
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Jul 17 2016 Honza Horak <hhorak@redhat.com> - 0.996-1.7
|
|
|
aa55e3 |
- Prefix library major number with SCL name in soname
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 0.996-1.6
|
|
|
aa55e3 |
- Require runtime package from the scl
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Fri Jul 15 2016 Honza Horak <hhorak@redhat.com> - 0.996-1.5
|
|
|
aa55e3 |
- Convert to SCL package
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.996-1.4
|
|
|
aa55e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1.3
|
|
|
aa55e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.996-1.2
|
|
|
aa55e3 |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1.1
|
|
|
aa55e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1.1
|
|
|
aa55e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.996-1
|
|
|
aa55e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Fri Feb 22 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.996-1
|
|
|
aa55e3 |
- 0.996
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Feb 10 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.995-1
|
|
|
aa55e3 |
- 0.995
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Mon Aug 6 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.994-2
|
|
|
aa55e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Mon Jul 2 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.994-1
|
|
|
aa55e3 |
- 0.994
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Thu Mar 29 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.993-1
|
|
|
aa55e3 |
- 0.993
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.991-1
|
|
|
aa55e3 |
- Rebuilt for c++ ABI breakage
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Jan 15 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.991-1
|
|
|
aa55e3 |
- 0.991
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Mon Jan 9 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.99-1
|
|
|
aa55e3 |
- 0.99
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Thu Jan 5 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.98-2
|
|
|
aa55e3 |
- F-17: rebuild against gcc47
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-1
|
|
|
aa55e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Tue Sep 29 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-1
|
|
|
aa55e3 |
- 0.98
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Wed Jul 29 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.5.pre3
|
|
|
aa55e3 |
- Enable tests on ppc{,64} again
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sat Jul 25 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.4.pre3
|
|
|
aa55e3 |
- Kill tests on ppc, ppc64 for now as tests hang
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Thu Jun 4 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.3.pre3
|
|
|
aa55e3 |
- 0.98 pre3
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Thu Apr 23 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.2.pre2
|
|
|
aa55e3 |
- 0.98 pre2
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Mon Mar 9 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.1.pre1
|
|
|
aa55e3 |
- Update to 0.98pre1
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-4
|
|
|
aa55e3 |
- F-11: Mass rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Jun 1 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-3
|
|
|
aa55e3 |
- Remove ancient || : after %%check
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Feb 3 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-1
|
|
|
aa55e3 |
- 0.97
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Thu Oct 25 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-2
|
|
|
aa55e3 |
- License fix
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Wed Aug 22 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1.dist.2
|
|
|
aa55e3 |
- Mass rebuild (buildID or binutils issue)
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Fri Aug 3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1.dist.1
|
|
|
aa55e3 |
- License update
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Mon Jun 11 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1
|
|
|
aa55e3 |
- 0.96 release
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Fri May 4 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-2.dist.2
|
|
|
aa55e3 |
- rebuild
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Apr 1 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-2
|
|
|
aa55e3 |
- remove -lstdc++ from mecab-config (#233424)
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Sun Mar 11 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-1
|
|
|
aa55e3 |
- 0.95
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Thu Mar 8 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-0.1.pre1.1
|
|
|
aa55e3 |
- 0.95 pre1
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Tue Feb 27 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.4.pre2
|
|
|
aa55e3 |
- Fix libexec dir for 64bit.
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Tue Feb 27 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.3.pre2
|
|
|
aa55e3 |
- Package requirement deps reconstruct
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Mon Feb 26 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.2.pre2
|
|
|
aa55e3 |
- Remove rpath on 64bit.
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Fri Feb 23 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.1.pre2
|
|
|
aa55e3 |
- Initial packaging for Fedora.
|
|
|
aa55e3 |
|
|
|
aa55e3 |
* Fri Feb 23 2007 Minokichi Sato <m-sato@rc.kyushu-u.ac.jp>
|
|
|
aa55e3 |
- Initial build.
|