tagoh / rpms / anthy

Forked from rpms/anthy 4 years ago
Clone
02423a4
%define	version		7802
0cb9b31
%define	gcanna_ver	20051002
f2b2021
%{expand: %%define build_with_xemacs %{?_with_xemacs:1}%{!?_with_xemacs:0}}
693aa3b
693aa3b
Name:		anthy
693aa3b
Version:	%{version}
717ab77
Release:	2.fc6
693aa3b
License:	GPL
693aa3b
URL:		http://sourceforge.jp/projects/anthy/
80d841f
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ff61777
BuildRequires:	emacs
f2b2021
%{?_with_xemacs:BuildRequires:	xemacs}
693aa3b
693aa3b
Source0:	http://prdownloads.sourceforge.jp/anthy/9723/anthy-%{version}.tar.gz
693aa3b
Source1:	anthy-init.el
0cb9b31
Source2:	http://www.geocities.jp/ep3797/snapshot/tmp/anthy_gcanna_ut-%{gcanna_ver}.tar.bz2
0c48627
Patch2:		anthy-gcanna-nakaguro.patch
693aa3b
693aa3b
Summary:	Japanese character set input library
4b8dd63
Group:		System Environment/Libraries
4b8dd63
Obsoletes:	anthy-libs
ad43b6c
Provides:	anthy-libs = %{name}-%{version}
693aa3b
%description
693aa3b
Anthy provides the library to input Japanese on the applications, such as
693aa3b
X applications and emacs. and the user dictionaries and the users information
693aa3b
which is used for the conversion, is stored into their own home directory.
693aa3b
So Anthy is secure than other conversion server.
693aa3b
693aa3b
%package	devel
693aa3b
Summary:	Header files and library for developing programs which uses Anthy
693aa3b
Group:		Development/Libraries
4b8dd63
Requires:	anthy = %{version}-%{release}
693aa3b
%description	devel
693aa3b
The anthy-devel package contains the development files which is needed to build
693aa3b
the programs which uses Anthy.
693aa3b
5efd562
%ifnarch ppc64
693aa3b
%package	el
693aa3b
Summary:	Emacs Lisp files to use Anthy on Emacs
693aa3b
Group:		System Environment/Libraries
693aa3b
Requires:	emacs
693aa3b
Requires:	anthy = %{version}-%{release}
693aa3b
%description	el
693aa3b
The anthy-el package contains the emacs lisp to be able to input Japanese
693aa3b
character set on Emacs.
5efd562
%endif
693aa3b
f2b2021
%if %{build_with_xemacs}
f2b2021
%package	el-xemacs
f2b2021
Summary:	Emacs Lisp files to use Anthy on XEmacs
f2b2021
Group:		System Environment/Libraries
f2b2021
Requires:	xemacs
f2b2021
Requires:	anthy = %{version}-%{release}
f2b2021
%description	el-xemacs
f2b2021
The anthy-el-xemacs package contains the emacs lisp to be able to input Japanese
f2b2021
character set on XEmacs.
f2b2021
%endif
693aa3b
693aa3b
%prep
aeddfea
%setup -q -a 2
0c48627
%patch2 -p1
693aa3b
693aa3b
%build
693aa3b
%configure
0cb9b31
cp anthy_gcanna_ut-%{gcanna_ver}/gcanna.ctd cannadic/
693aa3b
make
693aa3b
693aa3b
%install
693aa3b
rm -rf $RPM_BUILD_ROOT
693aa3b
693aa3b
%makeinstall
693aa3b
5efd562
%ifnarch ppc64
693aa3b
## for anthy-el
693aa3b
%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
693aa3b
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/site-start.d
5efd562
%endif
693aa3b
693aa3b
## for anthy-el-xemacs
f2b2021
%if %{build_with_xemacs}
f2b2021
%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/site-start.d
f2b2021
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp/site-start.d
f2b2021
pushd $RPM_BUILD_DIR/%{name}-%{version}/src-util
f2b2021
make clean
f2b2021
make EMACS=xemacs lispdir="\${datadir}/xemacs/xemacs-packages/lisp/anthy"
f2b2021
make install-lispLISP DESTDIR=$RPM_BUILD_ROOT EMACS=xemacs lispdir="\${datadir}/xemacs/xemacs-packages/lisp/anthy"
f2b2021
popd
f2b2021
%endif
693aa3b
693aa3b
%clean
693aa3b
rm -rf $RPM_BUILD_ROOT
693aa3b
bcdd690
%post -p /sbin/ldconfig
bcdd690
bcdd690
%postun -p /sbin/ldconfig
bcdd690
693aa3b
%files
693aa3b
%defattr (-, root, root)
693aa3b
%doc AUTHORS COPYING ChangeLog DIARY NEWS README doc
693aa3b
%{_bindir}/*
693aa3b
%{_sysconfdir}/*
693aa3b
%{_libdir}/lib*.so.*
4b8dd63
%{_datadir}/anthy/
693aa3b
693aa3b
%files devel
693aa3b
%defattr (-, root, root)
693aa3b
%{_includedir}/*
693aa3b
%{_libdir}/lib*.so
693aa3b
%{_libdir}/lib*.a
693aa3b
%{_libdir}/lib*.la
693aa3b
%{_libdir}/pkgconfig
693aa3b
5efd562
%ifnarch ppc64
693aa3b
%files el
693aa3b
%defattr (-, root, root)
693aa3b
%{_datadir}/emacs/site-lisp/anthy/
693aa3b
%{_datadir}/emacs/site-lisp/site-start.d/anthy-init.el
5efd562
%endif
693aa3b
f2b2021
%if %{build_with_xemacs}
f2b2021
%files el-xemacs
f2b2021
%defattr (-, root, root)
f2b2021
%{_datadir}/xemacs/xemacs-packages/lisp/anthy/
f2b2021
%{_datadir}/xemacs/site-packages/lisp/site-start.d/anthy-init.el
f2b2021
%endif
693aa3b
693aa3b
%changelog
5efd562
* Mon Jun  5 2006 Akira TAGOH <tagoh@redhat.com> - 7802-2
5efd562
- exclude ppc64 to make anthy-el package. right now emacs.ppc64 isn't provided
5efd562
  and buildsys became much stricter.
5efd562
02423a4
* Fri Jun  2 2006 Akira TAGOH <tagoh@redhat.com> - 7802-1
02423a4
- New upstream snapshot release.
02423a4
87ec408
* Wed May 17 2006 Akira TAGOH <tagoh@redhat.com> - 7716-1
87ec408
- New upstream snapshot release.
87ec408
017b75b
* Mon May 15 2006 Akira TAGOH <tagoh@redhat.com> - 7714-1
017b75b
- New upstream snapshot release.
017b75b
80d841f
* Thu May 11 2006 Akira TAGOH <tagoh@redhat.com> - 7710-1
80d841f
- New upstream snapshot release.
80d841f
80d841f
* Mon Apr 24 2006 Akira TAGOH <tagoh@redhat.com> - 7622-1
0d92c50
- New upstream snapshot release.
0d92c50
  - removed unnecessary patches:
0d92c50
    - anthy-2832.patch
0d92c50
    - anthy-2834.patch
0d92c50
80d841f
* Fri Mar 17 2006 Akira TAGOH <tagoh@redhat.com> - 7500-1
0c48627
- New upstream release.
0c48627
  - larning words works now. (#178764)
0c48627
- anthy-2832.patch: patch from upstream that fixes wrong order of candidate list.
0c48627
- anthy-2834.patch: patch from upstream that fixes unexpected word segment.
0c48627
- anthy-gcanna-nakaguro.patch: added a word to dictionary to convert nakaguro to slash.
0c48627
5b4dd8e
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 7100b-2.2.1
5b4dd8e
- bump again for double-long bug on ppc(64)
5b4dd8e
d925d2e
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 7100b-2.2
d925d2e
- rebuilt for new gcc4.1 snapshot and glibc changes
d925d2e
ea6f1ca
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
ea6f1ca
- rebuilt
ea6f1ca
bcdd690
* Thu Nov 10 2005 Akira TAGOH <tagoh@redhat.com> - 7100b-2
bcdd690
- run ldconfig in %%post and %%postun. (#172768)
bcdd690
d6c28ca
* Sat Nov  5 2005 Akira TAGOH <tagoh@redhat.com> - 7100b-1
d6c28ca
- New upstream release.
d6c28ca
7c1da41
* Mon Oct 31 2005 Akira TAGOH <tagoh@redhat.com> - 7029-1
7c1da41
- New upstream snapshot release.
7c1da41
64dee0b
* Fri Oct 14 2005 Akira TAGOH <tagoh@redhat.com> - 7015-1
64dee0b
- New upstream snapshot release.
64dee0b
0cb9b31
* Thu Oct 13 2005 Akira TAGOH <tagoh@redhat.com> - 7013-1
0cb9b31
- New upstream snapshot release.
0cb9b31
- removed the patches:
0cb9b31
  - anthy-add-placename-dict.patch: isn't needed anymore.
0cb9b31
  - anthy_base.t.diff: merged into upstream.
0cb9b31
  - zipcode-20050831.tar.bz2: merged into upstream.
0cb9b31
f2b2021
* Wed Sep 21 2005 Akira TAGOH <tagoh@redhat.com> - 6829-3
f2b2021
- applied some patches from anthy-dev mailing list to improve the dictionaries.
f2b2021
  - anthy_base.t.diff
f2b2021
  - anthy_gcanna.ctd.diff
f2b2021
  - anthy_gcanna.ctd_20050918.diff
f2b2021
  - anthy_gcanna.ctd_20050920.diff
f2b2021
- parameterize anthy-el-xemacs build.
f2b2021
aeddfea
* Thu Sep  1 2005 Akira TAGOH <tagoh@redhat.com> - 6829-2
aeddfea
- Added the place name dictionary.
aeddfea
8b3c80c
* Tue Aug 30 2005 Akira TAGOH <tagoh@redhat.com> - 6829-1
8b3c80c
- New upstream snapshot release.
8b3c80c
35beb88
* Wed Aug 24 2005 Akira TAGOH <tagoh@redhat.com> - 6801-1
35beb88
- updates to the snapshot version.
35beb88
cdd31cd
* Tue Aug  9 2005 Akira TAGOH <tagoh@redhat.com>
cdd31cd
- added dist tag in Release.
cdd31cd
ad43b6c
* Mon Aug  1 2005 Akira TAGOH <tagoh@redhat.com> - 6700b-2
ad43b6c
- added Provides: anthy-libs = %%{name}-%%{version}
ad43b6c
4b8dd63
* Fri Jul 29 2005 Akira TAGOH <tagoh@redhat.com> - 6700b-1
4b8dd63
- New upstream release.
4b8dd63
- Import into Core.
4b8dd63
- includes the libraries into anthy and added Obsoletes: anthy-libs.
4b8dd63
693aa3b
* Wed Jun 29 2005 Akira TAGOH <tagoh@redhat.com> - 6700-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Fri Apr  1 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 6300d-3
693aa3b
- include anthy datadir in main package, and anthy site directory
693aa3b
  in -el and -el-xemacs packages
693aa3b
693aa3b
* Sun Mar 27 2005 Akira TAGOH <tagoh@redhat.com> - 6300d-2
693aa3b
- real updates (#152203)
693aa3b
693aa3b
* Sun Mar 20 2005 Akira TAGOH <tagoh@redhat.com> - 6300d-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Thu Feb 24 2005 Akira TAGOH <tagoh@redhat.com> - 6131-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Wed Jan 12 2005 Akira TAGOH <tagoh@redhat.com> - 6024-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Wed Sep 08 2004 Akira TAGOH <tagoh@redhat.com> 5704-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Mon Jul 05 2004 Akira TAGOH <tagoh@redhat.com> 5500-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Wed Jun 23 2004 Akira TAGOH <tagoh@redhat.com> 5414-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Tue Jun 08 2004 Akira TAGOH <tagoh@redhat.com> 5406-1
693aa3b
- New upstream release.
693aa3b
693aa3b
* Fri Jun 04 2004 Warren Togami <wtogami@redhat.com> 5330-3
693aa3b
- some spec cleanups
693aa3b
693aa3b
* Tue Jun 01 2004 Akira TAGOH <tagoh@redhat.com> 5330-2
693aa3b
- anthy-init.el: add some elisp to configure anthy.
693aa3b
693aa3b
* Tue Jun 01 2004 Akira TAGOH <tagoh@redhat.com> 5330-1
693aa3b
- Initial package.
693aa3b