-
-
Save jhawkwind/6ed32845099a721187fd6065862c85b5 to your computer and use it in GitHub Desktop.
MeCab's spec file for rpmbuild
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %define name mecab | |
| %define version 0.996 | |
| %define github_user taku910 | |
| Summary: Yet Another Part-of-Speech and Morphological | |
| Name: %{name} | |
| Version: %{version} | |
| Release: 5DTI%{?dist} | |
| Source0: https://github.com/%{github_user}/mecab/tarball/master#/mecab-%{version}.tar.gz | |
| License: GPL/LGPL/BSD | |
| Group: Applications/Other | |
| URL: http://mecab.sourceforge.net/ | |
| BuildRoot: %{_tmppath}/%{name}-%{version}-root | |
| BuildRequires: perl, gcc-c++ | |
| %description | |
| MeCab is Yet Another Part-of-Speech and Morphological, developed | |
| as the unit project of Graduate School of Informatics, Kyoto | |
| University and NTT Communication Science Laboratories. It is designed | |
| basically general and independent of language, dictionary, and corpus. | |
| It uses Conditional Random Fields (CRF) for parameter estimation, | |
| which is more efficient than Hidden Markov Model, which is used in | |
| ChaSen. MeCab works normally faster than ChaSen, Juman, and KAKASI. | |
| %package devel | |
| Summary: Header files and libraries for developing apps which use MeCab | |
| Group: Development/Libraries | |
| Requires: %{name} = %{version}-%{release} | |
| %description devel | |
| Header files and libraries for developing apps which use MeCab | |
| %prep | |
| rm -rf $RPM_BUILD_ROOT | |
| %setup -q -c mecab-${version} | |
| cd %{github_user}-mecab-???????/ | |
| mv ./%{name}/* .. | |
| cd .. | |
| rm -Rf ./%{github_user}-mecab-???????/ | |
| %build | |
| sed -i -e "s|@prefix@/lib/|%{_libdir}/|g" ./mecabrc.in | |
| %configure --with-charset=utf8 --libdir=%{_libdir} | |
| %__make | |
| %check | |
| make check | |
| %install | |
| rm -rf $RPM_BUILD_ROOT | |
| make DESTDIR=${RPM_BUILD_ROOT} install | |
| %post -p /sbin/ldconfig | |
| %postun -p /sbin/ldconfig | |
| %clean | |
| rm -rf $RPM_BUILD_ROOT | |
| %files | |
| %defattr(-,root,root) | |
| %doc README AUTHORS COPYING ChangeLog INSTALL NEWS GPL LGPL BSD doc/*.html | |
| %{_libdir}/*.so.* | |
| %{_libexecdir}/mecab | |
| %{_bindir}/* | |
| %{_mandir}/man?/* | |
| %config(noreplace) %{_sysconfdir}/* | |
| %files devel | |
| %defattr(-,root,root) | |
| %{_libdir}/*.so | |
| %{_libdir}/*.a | |
| %{_libdir}/*.la | |
| %{_includedir}/* | |
| %changelog | |
| * Thu Sep 01 2016 jhawkwind <kai@outlawstar.net> 0.996-el7.5DTI | |
| - Changed the source to grab from new GitHub location from author | |
| of project. | |
| * Tue Aug 23 2016 jhawkwind <kai@outlawstar.net> 0.996-el7.4DTI | |
| - In-line rewrite mecabrc.in default directory for changes in OS | |
| architecture results in a different library folder. | |
| lib = 32-bit; lib64 = 64-bit. | |
| - Remove limitation to be bound to a particular release and also | |
| define the architecture. | |
| - Adjusted release information to reflect fork. | |
| * Thu May 9 2013 hylom <hylom@users.sourceforge.jp> 0.996-el6.4 | |
| - rebuild for CentOS 6.4 | |
| * Sun Oct 5 2008 Y.Ohkouchi <cmf@ohtanz.com> 0.95-el5.1 | |
| - rebuild for CentOS5 | |
| * Sat Mar 24 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.95-0vl1 | |
| - upstream release | |
| - drop Patch0 (merged into upstream source) | |
| - add Patch1: mecab-0.95-bufferoverflow.patch | |
| (for details, see [mecab-usres 258]) | |
| * Fri Mar 2 2007 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.94-0vl1 | |
| - upstream release | |
| - change Source0 and URL | |
| - add Patch0: mecab-0.94-cpp-template.patch | |
| * Wed Sep 7 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.93-0vl2 | |
| - upstream release | |
| - changed License from LGPL to GPL/LGPL/BSD (upstream change) | |
| - add LGPL, GPL, BSD to %%doc | |
| * Sat Sep 2 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.91-0vl3 | |
| - changed devel Group to Development/Libraries | |
| - added %post and %postun section | |
| * Mon May 1 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.91-0vl2 | |
| - upstream release | |
| * Sun Apr 9 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.90-0vl3 | |
| - change Group: Applications/Other | |
| * Fri Mar 31 2006 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.90-0vl2 | |
| - upstream release | |
| - divide dictionary into another package (mecab-ipadic) | |
| - change description | |
| - fix Source: URL | |
| - add BuildRequires: perl, gcc-c++ | |
| * Sun Jun 26 2005 KANEKO Seiji <giraffe@m2.pbc.ne.jp> 0.81-0vl2 | |
| - initial build for VineSeedPlus |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment