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