2013-02-22 07:01:18 +00:00
|
|
|
%define mainver 0.996
|
2009-09-28 17:32:32 +00:00
|
|
|
#%%define betaver pre3
|
2013-02-09 18:08:15 +00:00
|
|
|
%define fedorarel 1
|
2007-02-27 03:06:55 +00:00
|
|
|
|
|
|
|
# Note:
|
|
|
|
# mecab dictionary requires mecab-devel to rebuild it,
|
|
|
|
# and mecab requires mecab dictionary
|
|
|
|
|
|
|
|
Name: mecab
|
|
|
|
Version: %{mainver}
|
|
|
|
%if %{?betaver:0}%{!?betaver:1}
|
2008-02-03 12:45:25 +00:00
|
|
|
Release: %{fedorarel}%{?dist}
|
2007-02-27 03:06:55 +00:00
|
|
|
%else
|
2012-08-06 02:12:14 +00:00
|
|
|
Release: 0.%{fedorarel}.%{betaver}%{?dist}
|
2007-02-27 03:06:55 +00:00
|
|
|
%endif
|
|
|
|
Summary: Yet Another Part-of-Speech and Morphological Analyzer
|
|
|
|
|
|
|
|
Group: Applications/Text
|
2007-10-26 07:21:59 +00:00
|
|
|
License: BSD or LGPLv2+ or GPL+
|
2007-02-27 03:06:55 +00:00
|
|
|
URL: http://mecab.sourceforge.net/
|
2012-01-08 18:36:26 +00:00
|
|
|
Source0: http://mecab.googlecode.com/files/%{name}-%{version}.tar.gz
|
2007-02-27 03:06:55 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
MeCab is a open source morphological analyzer which uses
|
|
|
|
CRF (Conditional Random Fields) as the estimation of parameters.
|
|
|
|
|
|
|
|
NOTE:
|
|
|
|
You have to install MeCab dictionary rpm to make use
|
|
|
|
of MeCab.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Libraries and Header files for Mecab
|
|
|
|
Group: Development/Libraries
|
2013-02-22 07:01:18 +00:00
|
|
|
Requires: %{name}%{?isa} = %{version}-%{release}
|
2007-02-27 03:06:55 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This is the development package that provides header files and libraries
|
|
|
|
for MeCab.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{mainver}%{?betaver}
|
|
|
|
|
2009-03-08 19:00:33 +00:00
|
|
|
|
|
|
|
mv doc/doxygen .
|
|
|
|
find . -name \*.cpp -print0 | xargs -0 %{__chmod} 0644
|
|
|
|
|
2007-02-27 03:06:55 +00:00
|
|
|
# compiler flags fix
|
|
|
|
%{__sed} -i.flags \
|
|
|
|
-e '/-O3/s|CFLAGS=\"\(.*\)\"|CFLAGS=\${CFLAGS:-\1}|' \
|
|
|
|
-e '/-O3/s|CXXFLAGS=\"\(.*\)\"|CXXFLAGS=\${CFLAGS:-\1}|' \
|
2007-04-01 06:08:56 +00:00
|
|
|
-e '/MECAB_LIBS/s|-lstdc++||' \
|
2007-02-27 03:06:55 +00:00
|
|
|
configure
|
|
|
|
|
|
|
|
# multilib change
|
|
|
|
%{__sed} -i.multilib \
|
|
|
|
-e 's|@prefix@/lib/mecab|%{_libdir}/mecab|' \
|
|
|
|
mecab-config.in mecabrc.in
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
# remove rpath from libtool
|
|
|
|
%{__sed} -i.rpath \
|
|
|
|
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
|
|
|
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
|
|
|
|
libtool
|
|
|
|
|
2008-02-03 12:45:25 +00:00
|
|
|
%{__make} %{?_smp_mflags}
|
2007-02-27 03:06:55 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%{__make} install \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
INSTALL="%{__install} -c -p"
|
|
|
|
|
|
|
|
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/lib*.{a,la}
|
|
|
|
%{__rm} -f doc/Makefile*
|
|
|
|
|
|
|
|
# create directory
|
|
|
|
%{__mkdir} -p $RPM_BUILD_ROOT%{_libdir}/mecab/dic/
|
|
|
|
|
2008-05-31 15:19:54 +00:00
|
|
|
%check
|
2007-02-27 03:06:55 +00:00
|
|
|
# here enable rpath
|
|
|
|
export LD_LIBRARY_PATH=$(pwd)/src/.libs
|
|
|
|
cd tests
|
2007-03-08 13:58:35 +00:00
|
|
|
%{__make} check || :
|
2007-02-27 03:06:55 +00:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc AUTHORS BSD COPYING GPL LGPL
|
2009-03-08 19:00:33 +00:00
|
|
|
%doc doc/ example/
|
2007-02-27 03:06:55 +00:00
|
|
|
%{_mandir}/man1/%{name}.1*
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/mecabrc
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/
|
2012-03-29 02:54:00 +00:00
|
|
|
%{_libdir}/lib%{name}.so.2*
|
2007-02-27 03:06:55 +00:00
|
|
|
# several dictionaries can install data files
|
|
|
|
# into the following directory.
|
|
|
|
%dir %{_libdir}/%{name}/
|
|
|
|
%dir %{_libdir}/%{name}/dic/
|
|
|
|
|
|
|
|
%files devel
|
2009-03-08 19:00:33 +00:00
|
|
|
%doc doxygen/
|
2007-02-27 03:06:55 +00:00
|
|
|
%{_bindir}/%{name}-config
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%{_includedir}/%{name}.h
|
|
|
|
|
|
|
|
%changelog
|
2013-02-22 07:01:18 +00:00
|
|
|
* Fri Feb 22 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.996-1
|
|
|
|
- 0.996
|
|
|
|
|
2013-02-09 18:08:15 +00:00
|
|
|
* Sun Feb 10 2013 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.995-1
|
|
|
|
- 0.995
|
|
|
|
|
2012-08-06 02:12:14 +00:00
|
|
|
* Mon Aug 6 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.994-2
|
2012-07-19 23:57:41 +00:00
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-07-02 06:35:56 +00:00
|
|
|
* Mon Jul 2 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.994-1
|
|
|
|
- 0.994
|
|
|
|
|
2012-03-29 02:12:59 +00:00
|
|
|
* Thu Mar 29 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.993-1
|
|
|
|
- 0.993
|
|
|
|
|
2012-02-28 19:12:47 +00:00
|
|
|
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.991-1
|
|
|
|
- Rebuilt for c++ ABI breakage
|
|
|
|
|
2012-01-14 16:23:25 +00:00
|
|
|
* Sun Jan 15 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.991-1
|
|
|
|
- 0.991
|
|
|
|
|
2012-01-08 18:36:26 +00:00
|
|
|
* Mon Jan 9 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.99-1
|
|
|
|
- 0.99
|
|
|
|
|
2012-01-05 06:43:26 +00:00
|
|
|
* Thu Jan 5 2012 Mamoru Tasaka <mtasaka@fedoraproject.org> - 0.98-2
|
|
|
|
- F-17: rebuild against gcc47
|
|
|
|
|
2011-02-08 16:28:15 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.98-1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2009-09-28 17:32:32 +00:00
|
|
|
* Tue Sep 29 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-1
|
|
|
|
- 0.98
|
|
|
|
|
2009-07-28 16:44:43 +00:00
|
|
|
* Wed Jul 29 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.5.pre3
|
|
|
|
- Enable tests on ppc{,64} again
|
|
|
|
|
2009-07-24 18:22:03 +00:00
|
|
|
* Sat Jul 25 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.4.pre3
|
2009-07-25 11:13:02 +00:00
|
|
|
- Kill tests on ppc, ppc64 for now as tests hang
|
2009-07-24 18:22:03 +00:00
|
|
|
|
2009-06-03 19:46:26 +00:00
|
|
|
* Thu Jun 4 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.3.pre3
|
|
|
|
- 0.98 pre3
|
|
|
|
|
|
|
|
* Thu Apr 23 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.2.pre2
|
2009-04-22 17:28:26 +00:00
|
|
|
- 0.98 pre2
|
|
|
|
|
2009-03-08 19:00:33 +00:00
|
|
|
* Mon Mar 9 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.98-0.1.pre1
|
|
|
|
- Update to 0.98pre1
|
|
|
|
|
2009-02-23 22:48:26 +00:00
|
|
|
* Tue Feb 24 2009 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-4
|
|
|
|
- F-11: Mass rebuild
|
|
|
|
|
2008-05-31 15:19:54 +00:00
|
|
|
* Sun Jun 1 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-3
|
|
|
|
- Remove ancient || : after %%check
|
2008-04-08 08:11:39 +00:00
|
|
|
|
2008-02-03 12:45:25 +00:00
|
|
|
* Sun Feb 3 2008 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.97-1
|
|
|
|
- 0.97
|
|
|
|
|
2007-10-25 11:20:41 +00:00
|
|
|
* Thu Oct 25 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-2
|
|
|
|
- License fix
|
|
|
|
|
2007-08-21 17:47:56 +00:00
|
|
|
* Wed Aug 22 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1.dist.2
|
|
|
|
- Mass rebuild (buildID or binutils issue)
|
|
|
|
|
2007-08-03 11:21:10 +00:00
|
|
|
* Fri Aug 3 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1.dist.1
|
|
|
|
- License update
|
|
|
|
|
2007-06-10 17:11:16 +00:00
|
|
|
* Mon Jun 11 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.96-1
|
|
|
|
- 0.96 release
|
|
|
|
|
2007-05-04 07:20:56 +00:00
|
|
|
* Fri May 4 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-2.dist.2
|
|
|
|
- rebuild
|
|
|
|
|
2007-04-01 06:08:56 +00:00
|
|
|
* Sun Apr 1 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-2
|
|
|
|
- remove -lstdc++ from mecab-config (#233424)
|
|
|
|
|
2007-03-11 16:33:07 +00:00
|
|
|
* Sun Mar 11 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-1
|
|
|
|
- 0.95
|
|
|
|
|
2007-03-08 13:58:35 +00:00
|
|
|
* Thu Mar 8 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.95-0.1.pre1.1
|
2007-03-08 13:36:06 +00:00
|
|
|
- 0.95 pre1
|
|
|
|
|
2007-02-27 03:06:55 +00:00
|
|
|
* Tue Feb 27 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.4.pre2
|
|
|
|
- Fix libexec dir for 64bit.
|
|
|
|
|
|
|
|
* Tue Feb 27 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.3.pre2
|
|
|
|
- Package requirement deps reconstruct
|
|
|
|
|
|
|
|
* Mon Feb 26 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.2.pre2
|
|
|
|
- Remove rpath on 64bit.
|
|
|
|
|
|
|
|
* Fri Feb 23 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 0.94-0.1.pre2
|
|
|
|
- Initial packaging for Fedora.
|
|
|
|
|
|
|
|
* Fri Feb 23 2007 Minokichi Sato <m-sato@rc.kyushu-u.ac.jp>
|
|
|
|
- Initial build.
|