rpms/mecab-jumandic/devel mecab-jumandic.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Mamoru Tasaka (mtasaka) fedora-extras-commits at redhat.com
Mon Mar 5 00:25:40 UTC 2007


Author: mtasaka

Update of /cvs/extras/rpms/mecab-jumandic/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv4006/devel

Modified Files:
	.cvsignore sources 
Added Files:
	mecab-jumandic.spec 
Log Message:
Initial importing of mecab-jumandic


--- NEW FILE mecab-jumandic.spec ---
%define		majorver	5.1
%define		date		20051121

# 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-jumandic
Version:	%{majorver}.%{date}
Release:	4%{?dist}
Summary:	JUMAN dictorionary for MeCab

Group:		Applications/Text
License:	BSD
URL:		http://mecab.sourceforge.net/
Source0:	http://downloads.sourceforge.net/mecab/%{name}-%{majorver}-%{date}.tar.gz
Source1:	http://packages.debian.org/changelogs/pool/main/m/%{name}/%{name}_%{majorver}+%{date}-1/%{name}.copyright
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	mecab-devel
Requires:	mecab

%description
MeCab JUMAN is a dictionary for MeCab using CRF estimation
based on Kyoto corpus.
This dictionary is for UTF-8 use.

%package 	EUCJP
Summary:	JUMAN dictionary for Mecab with encoded by EUC-JP
Group:		Applications/Text
Requires:	mecab

%description EUCJP

MeCab JUMAN is a dictionary for MeCab using CRF estimation
based on Kyoto 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/jumandic \
	$RPM_BUILD_ROOT%{_libdir}/mecab/dic/jumandic-EUCJP

# Next install UTF-8
%{__mv} -f UTF-8/* .
%{__make} install DESTDIR=$RPM_BUILD_ROOT

%{__cp} -p %SOURCE1 LICENSE

%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/jumandic|' \
		%{_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/jumandic-EUCJP|' \
		%{_sysconfdir}/mecabrc || :
fi

%files
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/mecab/dic/jumandic/

%files EUCJP
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/mecab/dic/jumandic-EUCJP/


%changelog
* Sun Mar  4 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 5.1.20051121-4
- Add missing defattr and make sed script safer.

* Sat Mar  3 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 5.1.20051121-3
- Change default to UTF-8 and make EUC-JP charset package.

* Tue Feb 27 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 5.1.20051121-2
- Package requirement deps reconstruct

* Fri Feb 23 2007 Mamoru Tasaka <mtasaka at ioa.s.u-tokyo.ac.jp> - 5.1.20051121-1
- Initial packaging for Fedora.


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/mecab-jumandic/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	4 Mar 2007 23:54:23 -0000	1.1
+++ .cvsignore	5 Mar 2007 00:25:07 -0000	1.2
@@ -0,0 +1 @@
+mecab-jumandic-5.1-20051121.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/mecab-jumandic/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	4 Mar 2007 23:54:23 -0000	1.1
+++ sources	5 Mar 2007 00:25:07 -0000	1.2
@@ -0,0 +1 @@
+2f72e6f3b928df1b1d53ee5c888457b4  mecab-jumandic-5.1-20051121.tar.gz




More information about the fedora-extras-commits mailing list