Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Evergreen:11.2
ami
ami.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ami.spec of Package ami
# # spec file for package ami (Version 1.2.3) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: ami BuildRequires: gdk-pixbuf-devel gtk-devel pkg-config update-desktop-files %if %suse_version > 1010 %define __x11prefix /usr %define __gnomeprefix /usr %define sysconfdir /etc %else %define __x11prefix /usr/X11R6 %define __gnomeprefix /opt/gnome %define sysconfdir /etc%{__gnomeprefix} %endif License: GPL v2 or later Group: System/I18n/Korean Provides: korean-xim Provides: locale(xorg-x11:ko) Requires: gdk-pixbuf AutoReqProv: on Summary: Korean IMS (Input Method System) Ami Version: 1.2.3 Release: 314 Url: http://kldp.net/projects/ami Source0: http://kldp.net/download.php/942/ami-1.2.3.tar.bz2 Source1: http://www.kr.freebsd.org/~hwang/ami/hanja.dic Source3: ami.kdelnk Source4: ami.desktop.ko Source5: ami_applet.desktop.ko Source6: ami.gtkrc.ko Source7: ami.desktop.kde3x Source8: keyboard-16x16.png Source9: keyboard-32x32.png Source10: keyboard-16x16.xpm Source11: keyboard-32x32.xpm Source12: http://adam.kaist.ac.kr/~cwryu/archive/misc/hanja-words-19991020.tar.gz Source20: etc-x11-xim.d-ami Patch2: ami-makefiles.patch Patch3: ami-default-fonts.patch Patch4: ami-conf.c.patch Patch7: destroy-hanja-dialog.patch Patch8: destroywin-2.patch Patch10: shift-ctrl-endian-problem.patch Patch11: suse-bugzilla-46985-ami-hangs-in-utf8.patch Patch12: bugzilla-66166-ami-feedback.patch Patch13: ami-1.2.3-as_needed.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Korean IMS (Input Method System) Ami. Ami uses GTK+ and supports the Window Maker dock mode. Authors: -------- Nam SungHyun <namsh@kldp.net> Jungshik Shin <jshin@kldp.net> <cdhwang@sr.hei.co.kr> %package -n amidic License: GPL v2 or later Summary: A Hanja Dictionary for Ami, a Korean IMS Group: System/I18n/Korean PreReq: /bin/rm /bin/ln Requires: ami Provides: ami-dic Provides: locale(ami:ko) %description -n amidic A Hanja dictionary for Ami, a Korean IMS by Changwoo Ryu. Ami uses GTK+ and supports both the GNOME applet mode and the Window Maker dock mode. Authors: -------- Changwoo Ryu <cwryu@debian.org> %prep %setup -q %patch2 -p 1 -b .makefiles %patch3 -p 1 -b .default-fonts %patch4 -p 1 -b .conf %patch7 -p 1 -b .destroy-hanja-dialog %patch8 -p 1 -b .destroywin-2 %patch10 -p1 -b .shift-ctrl-endian-problem %patch11 -p1 -b .suse-bugzilla-46985-ami-hangs-in-utf8 %patch12 -p1 %patch13 tar zxvf $RPM_SOURCE_DIR/hanja-words-19991020.tar.gz %build autoreconf -fi # update config.{guess,sub} #%%{?suse_update_config} # export CFLAGS="$RPM_OPT_FLAGS" # ./configure --prefix=%{__gnomeprefix} \ # --sysconfdir=%sysconfdir \ # --with-hangul-keyboard=2bul \ # --with-gnome=/opt/gnome \ # --enable-gnome-applet \ # %{_target_cpu}-suse-linux-gnu # make # cp src/ami src/ami_applet # make clean export CFLAGS="$RPM_OPT_FLAGS" # export CFLAGS="-g -O0" ./configure --prefix=%{__gnomeprefix} \ --sysconfdir=%sysconfdir \ --with-hangul-keyboard=2bul \ --with-gnome=%{__gnomeprefix} \ %{_target_cpu}-suse-linux-gnu make cd hanja-words-19991020 make cd ../hanjadic make clean make cd .. %install make DESTDIR=$RPM_BUILD_ROOT install # install -s -m 755 src/ami_applet $RPM_BUILD_ROOT/%{__gnomeprefix}/bin mkdir -p %{buildroot}%{sysconfdir}/CORBA/servers install -c -m 644 ami.gnorba %{buildroot}%{sysconfdir}/CORBA/servers ########################################################################## # AMI DIC FILE............................................................ ########################################################################## install -c -m 644 hanja-words-19991020/output/ami.dic \ %{buildroot}%{__gnomeprefix}/share/ami/cwryu.dic install -c -m 644 $RPM_SOURCE_DIR/hanja.dic %{buildroot}%{__gnomeprefix}/share/ami/default.dic ln -s default.dic %{buildroot}%{__gnomeprefix}/share/ami/hanja.dic ########################################################################## # PIXMAPS................................................................. ########################################################################## mkdir -p %{buildroot}%{__x11prefix}/share/icons/png/locolor/16x16/apps mkdir -p %{buildroot}%{__x11prefix}/share/icons/png/hicolor/32x32/apps mkdir -p %{buildroot}/opt/kde3/share/icons/locolor/16x16/apps mkdir -p %{buildroot}/opt/kde3/share/icons/hicolor/32x32/apps mkdir -p %{buildroot}%{__gnomeprefix}/share/pixmaps/ install -c -m 644 $RPM_SOURCE_DIR/keyboard-16x16.png \ %{buildroot}%{__x11prefix}/share/icons/png/locolor/16x16/apps/ami.png install -c -m 644 $RPM_SOURCE_DIR/keyboard-32x32.png \ %{buildroot}%{__x11prefix}/share/icons/png/hicolor/32x32/apps/ami.png ln -s %{__x11prefix}/share/icons/png/locolor/16x16/apps/ami.png \ %{buildroot}/opt/kde3/share/icons/locolor/16x16/apps/ami.png ln -s %{__x11prefix}/share/icons/png/hicolor/32x32/apps/ami.png \ %{buildroot}/opt/kde3/share/icons/hicolor/32x32/apps/ami.png ln -s %{__x11prefix}/share/icons/png/hicolor/32x32/apps/ami.png \ %{buildroot}%{__gnomeprefix}/share/pixmaps/ami.png ########################################################################## # Menu Entry ########################################################################## mkdir -p %{buildroot}/usr/share/applications/ install -c -m 644 $RPM_SOURCE_DIR/ami.desktop.kde3x \ %{buildroot}/usr/share/applications/ami.desktop %suse_update_desktop_file ami Utility DesktopSettings %{find_lang} ami ########################################################################## # GNOME1, we have no use for it .......................................... ########################################################################## rm %{buildroot}%{sysconfdir}/CORBA/servers/ami.gnorba mkdir -p $RPM_BUILD_ROOT/etc/X11/xim.d/ko install -m 644 $RPM_SOURCE_DIR/etc-x11-xim.d-ami \ $RPM_BUILD_ROOT/etc/X11/xim.d/ami pushd $RPM_BUILD_ROOT/etc/X11/xim.d/ ln -s ami Ami popd pushd $RPM_BUILD_ROOT/etc/X11/xim.d/ko ln -s ../ami 90-ami popd %post -n amidic rm -f %{__gnomeprefix}/share/ami/hanja.dic ln -s cwryu.dic %{__gnomeprefix}/share/ami/hanja.dic %postun -n amidic rm -f %{__gnomeprefix}/share/ami/hanja.dic ln -s default.dic %{__gnomeprefix}/share/ami/hanja.dic %clean rm -rf $RPM_BUILD_ROOT; %files -f ami.lang %defattr(-,root,root) %doc README COPYING ChangeLog AUTHORS THANKS %dir /etc/X11/xim.d/ /etc/X11/xim.d/* %{__gnomeprefix}/bin/wmami %{__gnomeprefix}/bin/ami %{__gnomeprefix}/bin/hanja_hwp2ami %dir %{__gnomeprefix}/share/ami/ %{__gnomeprefix}/share/ami/default.dic %{__gnomeprefix}/share/ami/hanja.dic %{__gnomeprefix}/share/ami/pix/ %{__gnomeprefix}/share/hangul_keyboard/ %config %{__gnomeprefix}/share/ami/gtkrc %{__gnomeprefix}/share/pixmaps/ami.png %dir %{__x11prefix}/share/icons/png/ %dir %{__x11prefix}/share/icons/png/locolor/ %dir %{__x11prefix}/share/icons/png/locolor/16x16/ %dir %{__x11prefix}/share/icons/png/locolor/16x16/apps/ %dir %{__x11prefix}/share/icons/png/hicolor/ %dir %{__x11prefix}/share/icons/png/hicolor/32x32/ %dir %{__x11prefix}/share/icons/png/hicolor/32x32/apps/ %{__x11prefix}/share/icons/png/locolor/16x16/apps/ami.png %{__x11prefix}/share/icons/png/hicolor/32x32/apps/ami.png %dir /opt/kde3/ %dir /opt/kde3/share/ %dir /opt/kde3/share/icons/ %dir /opt/kde3/share/icons/locolor/ %dir /opt/kde3/share/icons/locolor/16x16/ %dir /opt/kde3/share/icons/locolor/16x16/apps/ %dir /opt/kde3/share/icons/hicolor/ %dir /opt/kde3/share/icons/hicolor/32x32/ %dir /opt/kde3/share/icons/hicolor/32x32/apps/ /opt/kde3/share/icons/locolor/16x16/apps/ami.png /opt/kde3/share/icons/hicolor/32x32/apps/ami.png /usr/share/applications/ami.desktop %files -n amidic %defattr(-,root,root) %{__gnomeprefix}/share/ami/cwryu.dic %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor