Initial importing

This commit is contained in:
Mamoru Tasaka 2007-03-24 17:35:30 +00:00
parent a1559aa71a
commit ff0f81c821
6 changed files with 396 additions and 0 deletions

View File

@ -0,0 +1 @@
mecab-ipadic-2.7.0-20060707.tar.gz

99
LICENSE.Fedora Normal file
View File

@ -0,0 +1,99 @@
===============================================
Mar 9th, 2007
Written by Mamoru Tasaka
<mtasaka@ioa.s.u-tokyo.ac.jp>
Clarification of the license of mecab-ipadic
on Fedora
===============================================
The English version of the license of mecab-ipadic
(which is included as "LICENSE.en" in this rpm )
contains the part which came from ICOT Free software
license, which contains the following paragraph.
-----------------------------------------------
Each User may also freely distribute the Program, whether in its
original form or modified, to any third party or parties, PROVIDED
that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear
on, or be attached to, the Program, which is distributed substantially
in the same form as set out herein and that such intended
distribution, if actually made, will neither violate or otherwise
contravene any of the laws and regulations of the countries having
jurisdiction over the User or the intended distribution itself.
-----------------------------------------------
At the time I was writing this document, debian regarded
mecab-ipadic as NON-free as they judged this paragraph problematic.
So I asked Mr. Tom "spot" Callaway if this software can be
legally accepted, and he asked FSF (The Free Software
Foundation) if they can accept this license as free.
The opinion of FSF on this passage was as below.
-----------------------------------------------
Debian's beef is with the following paragraph of the license:
<This part is the same as the above paragraph>
They have two complaints. I've given my thoughts on both, but I can't
make a final determination on either; that would be for RMS and Eben.
* They believe that when the license talks about something being
"distributed substantially in the same form as set out herein," it's
referring to the program -- implying that you can't radically alter
the software (i.e., take a piece of it and incorporate it in some
totally different software). I understand why they think that. On
the other hand, I'm skeptical that this is the licensor's intent; I
think they just want to keep you from messing up the warranty
disclaimer too much. Unusually for Debian, apparently nobody tried to
clear this up with the original authors. It might be worthwhile to
try that. As it stands, I think we'd want to steer clear as well, as
we did with the original Artistic license.
* They object to the requirement that you follow the law. I'm not sure
if we have a general policy on this, but I know we've accepted similar
restrictions as being free before (the Intel Open Source License has
similar, though narrower, language), so I think we would still
consider the license free as well even with this text.
If you can get some kind of clarification on the first point, I'd be
happy to escalate this for further discussion.
-----------------------------------------------
So Mr Callaway asked me to clarify the intend of the original author
with respect to the word "substantially".
However, according to the original Japanese version of
this license (which is included as "LICENSE.jp.html" in this rpm),
the part of the license which corresponds to the ICOT license
paragraph, which contains the words "substantially", reads
as below (in English):
-----------------------------------------------
Each user of this program may freely use, modify and make a copy of
this program. "To modify this program" used herein includes
* to improve or to extend this program to make it better its
function, performance, and the quality
* to add programs and documents you created by yourself,
however, it ("to modify this program") is not limited to the above.
Each user of this program may distribute to others
this program itself, or the modified version of this program,
provided
* the section three ("no warranty") of this license is
included in it,
freely as long as the distribution won't violate the laws
which may relate to the distribution.
-----------------------------------------------
So as mecab developers mention, who maintain mecab-ipadic
software currently, and also in my opinion, it does not seem
to appear in the Japanese license the part which corresponds to
the words "substantially in the same form". And in the Japanese
license it is mentioned what to call "the modified version", which
declares that the original developer imposes no limitation
for modifying this software.
Mr Callaway finally declared this license OK for Fedora
on Mar 8th, 2007.
-----------------------------------------------
This is good. Add a text file which says exactly what you just said as
LICENSE.Fedora, include it in %doc, and it is ok for Fedora.
~spot
-----------------------------------------------

79
mecab-ipadic.copyright Normal file
View File

@ -0,0 +1,79 @@
This package was debianized by TSUCHIYA Masatoshi <tsuchiya@namazu.org> on
Thu, 14 Aug 2003 02:49:31 +0900.
It was downloaded from <http://mecab.sourceforge.jp/src/>.
Upstream Author: ChaSen development team <chasen@cl.aist-nara.ac.jp>
Copyright:
Copyright 2000 Nara Institute of Science
and Technology. All Rights Reserved.
Use, reproduction, and distribution of this software is permitted.
Any copy of this software, whether in its original form or modified,
must include both the above copyright notice and the following
paragraphs.
Nara Institute of Science and Technology (NAIST),
the copyright holders, disclaims all warranties with regard to this
software, including all implied warranties of merchantability and
fitness, in no event shall NAIST be liable for
any special, indirect or consequential damages or any damages
whatsoever resulting from loss of use, data or profits, whether in an
action of contract, negligence or other tortuous action, arising out
of or in connection with the use or performance of this software.
A large portion of the dictionary entries
originate from ICOT Free Software. The following conditions for ICOT
Free Software applies to the current dictionary as well.
Each User may also freely distribute the Program, whether in its
original form or modified, to any third party or parties, PROVIDED
that the provisions of Section 3 ("NO WARRANTY") will ALWAYS appear
on, or be attached to, the Program, which is distributed substantially
in the same form as set out herein and that such intended
distribution, if actually made, will neither violate or otherwise
contravene any of the laws and regulations of the countries having
jurisdiction over the User or the intended distribution itself.
NO WARRANTY
The program was produced on an experimental basis in the course of the
research and development conducted during the project and is provided
to users as so produced on an experimental basis. Accordingly, the
program is provided without any warranty whatsoever, whether express,
implied, statutory or otherwise. The term "warranty" used herein
includes, but is not limited to, any warranty of the quality,
performance, merchantability and fitness for a particular purpose of
the program and the nonexistence of any infringement or violation of
any right of any third party.
Each user of the program will agree and understand, and be deemed to
have agreed and understood, that there is no warranty whatsoever for
the program and, accordingly, the entire risk arising from or
otherwise connected with the program is assumed by the user.
Therefore, neither ICOT, the copyright holder, or any other
organization that participated in or was otherwise related to the
development of the program and their respective officials, directors,
officers and other employees shall be held liable for any and all
damages, including, without limitation, general, special, incidental
and consequential damages, arising out of or otherwise in connection
with the use or inability to use the program or any product, material
or result produced or otherwise obtained by using the program,
regardless of whether they have been advised of, or otherwise had
knowledge of, the possibility of such damages at any time during the
project or thereafter. Each user will be deemed to have agreed to the
foregoing by his or her commencement of use of the program. The term
"use" as used herein includes, but is not limited to, the use,
modification, copying and distribution of the program and the
production of secondary products from the program.
In the case where the program, whether in its original form or
modified, was distributed or delivered to or received by a user from
any person, organization or entity other than ICOT, unless it makes or
grants independently of ICOT any specific warranty to the user in
writing, such person, organization or entity, will also be exempted
from and not be held liable to the user for any such damages as noted
above as far as the program is concerned.

119
mecab-ipadic.spec Normal file
View File

@ -0,0 +1,119 @@
# This spec file is very similar with mecab-jumandic
%define majorver 2.7.0
%define date 20060707
# The data in MeCab dic are compiled by arch-dependent binaries
# and the created data are arch-dependent.
# However, this package does not contain any executable binaries
# so debuginfo rpm is not created.
%define debug_package %{nil}
Name: mecab-ipadic
Version: %{majorver}.%{date}
Release: 2%{?dist}
Summary: IPA dictionary for MeCab
Group: Applications/Text
License: MIT-ish (See LICENSE.*)
URL: http://mecab.sourceforge.net/
Source0: http://downloads.sourceforge.net/mecab/%{name}-%{majorver}-%{date}.tar.gz
Source1: http://packages.debian.org/changelogs/pool/non-free/m/mecab-ipadic/mecab-ipadic_2.7.0+20060707-1/mecab-ipadic.copyright
Source2: http://www.icot.or.jp/ARCHIVE/terms-and-conditions-for-IFS-J.html
Source3: LICENSE.Fedora
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: mecab-devel
Requires: mecab
%description
MeCab IPA is a dictionary for MeCab using CRF estimation
based on IPA corpus.
This dictionary is for UTF-8 use.
%package EUCJP
Summary: IPA dictionary for Mecab with encoded by EUC-JP
Group: Applications/Text
Requires: mecab
%description EUCJP
MeCab IPA is a dictionary for MeCab using CRF estimation
based on IPA corpus.
This dictionary is for EUC-JP use.
%prep
%setup -q -n %{name}-%{majorver}-%{date}
%build
# First build on UTF-8
%configure \
--with-mecab-config=%{_bindir}/mecab-config \
--with-charset=utf8
%{__make} %{?_smp_mflags}
# Preserve them
%{__mkdir} UTF-8
%{__cp} -p \
*.bin *.dic *.def dicrc \
UTF-8/
# Next build on EUC-JP
# This is the default, however Fedora uses UTF-8 so
# for Fedora this must be the option.
%{__make} clean
%configure \
--with-mecab-config=%{_bindir}/mecab-config
%{__make} %{?_smp_mflags}
%install
# First install EUC-JP
%{__rm} -rf $RPM_BUILD_ROOT
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%{__mv} $RPM_BUILD_ROOT%{_libdir}/mecab/dic/ipadic \
$RPM_BUILD_ROOT%{_libdir}/mecab/dic/ipadic-EUCJP
# Next install UTF-8
%{__mv} -f UTF-8/* .
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%{__cp} -p %{SOURCE1} LICENSE.en
%{__cp} -p %{SOURCE2} LICENSE.jp.html
%{__cp} -p %{SOURCE3} .
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%post
# Note: post should be okay. mecab-dic expects that
# mecab is installed in advance.
if test -f %{_sysconfdir}/mecabrc ; then
%{__sed} -i -e 's|^dicdir.*|dicdir = %{_libdir}/mecab/dic/ipadic|' \
%{_sysconfdir}/mecabrc || :
fi
%post EUCJP
# Note: post should be okay. mecab-dic expects that
# mecab is installed in advance.
if test -f %{_sysconfdir}/mecabrc ; then
%{__sed} -i -e 's|^dicdir.*|dicdir = %{_libdir}/mecab/dic/ipadic-EUCJP|' \
%{_sysconfdir}/mecabrc || :
fi
%files
%defattr(-,root,root,-)
%doc LICENSE.*
%{_libdir}/mecab/dic/ipadic/
%files EUCJP
%defattr(-,root,root,-)
%doc LICENSE.*
%{_libdir}/mecab/dic/ipadic-EUCJP/
%changelog
* Sat Mar 24 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.7.0.20060707-2
- Fix typo
* Thu Mar 8 2007 Mamoru Tasaka <mtasaka@ioa.s.u-tokyo.ac.jp> - 2.7.0.20060707-1
- Initial packaging, based on mecab-jumandic spec file

View File

@ -0,0 +1 @@
45b9f822700ad4eceb6722d6edcc2a46 mecab-ipadic-2.7.0-20060707.tar.gz

View File

@ -0,0 +1,97 @@
<HTML>
<HEAD><TITLE>Terms and conditions for use of IFS</TITLE></HEAD>
<BODY BACKGROUND="PICS/tile-blue.gif">
<CENTER><H1>
ICOT$B%U%j!<%=%U%H%&%'%"$NMxMQ>r7o(B
</H1>
</CENTER>
<HR width=95% align="center" size=7><P>
<DL>
<DD>
<H2>
<B>$B#1!%#I#C#O#TL5=~8x3+%=%U%H%&%'%"$NL\E*(B</B>
</H2><P>
$B:bCDK!?M?7@$Be%3%s%T%e!<%?5;=Q3+H/5!9=(B ($B0J2<!"(BICOT$B$H$$$&(B) $B$O!"F|K\9qDL(B
$B>&;:6H>J$h$j0QBw$5$l!"Bh8^@$Be%3%s%T%e!<%?!&%W%m%8%'%/%H$r?d?J$7$F$-$?!#(B
$B$^$?!"J?@.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