Accepting request 126870 from home:MargueriteSu:branches:M17N
OBS-URL: https://build.opensuse.org/request/show/126870 OBS-URL: https://build.opensuse.org/package/show/M17N/uim?expand=0&rev=36
This commit is contained in:
83
uim.spec
83
uim.spec
@@ -16,41 +16,12 @@
|
||||
#
|
||||
|
||||
|
||||
%define build_gtk3 (%{suse_version} >= 1140)
|
||||
%define is_gnome3 (%{suse_version} > 1140)
|
||||
%define build_gtk3 (0%{?suse_version} >= 1140)
|
||||
%define is_gnome3 (0%{?suse_version} > 1140)
|
||||
|
||||
Name: uim
|
||||
BuildRequires: anthy-devel
|
||||
BuildRequires: canna-devel
|
||||
BuildRequires: emacs-x11
|
||||
BuildRequires: emacs-x11
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: intltool
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: m17n-lib-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: perl-XML-Parser
|
||||
BuildRequires: pkg-config
|
||||
%if %suse_version > 1130
|
||||
BuildRequires: pkgconfig(gtk+-2.0)
|
||||
%else
|
||||
BuildRequires: gtk2-devel
|
||||
%endif
|
||||
%if %build_gtk3
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gnome-panel-devel
|
||||
BuildRequires: kdebase3-devel
|
||||
BuildRequires: qt3-devel
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: xemacs
|
||||
Version: 1.7.3
|
||||
Version: 1.8.1
|
||||
Release: 0
|
||||
# xorg-x11-libXdmcp-devel libgnomeprintui-devel
|
||||
Summary: A multilingual input method library
|
||||
License: GPL-2.0+
|
||||
Group: System/I18n/Japanese
|
||||
@@ -62,9 +33,33 @@ Source3: etc-x11-xim.d-uim
|
||||
Source4: baselibs.conf
|
||||
Patch10: uim-sigscheme-build-fixes.diff
|
||||
Patch12: uim-fix-crash-in-firefox.diff
|
||||
PreReq: %{_bindir}/touch
|
||||
Patch13: fix-for-sles-qhash-incomplete-type.patch
|
||||
BuildRequires: anthy-devel
|
||||
BuildRequires: canna-devel
|
||||
BuildRequires: emacs-x11
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: gnome-panel-devel
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: intltool
|
||||
BuildRequires: kdebase3-devel
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: libqt4-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: m17n-lib-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: perl-XML-Parser
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: qt3-devel
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: xemacs
|
||||
%if %build_gtk3
|
||||
BuildRequires: pkgconfig(gtk+-3.0)
|
||||
%endif
|
||||
Provides: locale(xorg-x11:ja)
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Requires(pre): %{_bindir}/touch
|
||||
|
||||
%description
|
||||
Uim is a multilingual input method library. Uim's project goal is to
|
||||
@@ -81,7 +76,7 @@ Requires: glibc-devel
|
||||
Include Files and Libraries mandatory for Development.
|
||||
|
||||
%package gtk2
|
||||
Summary: GTK+2.0 IM module for uim
|
||||
Summary: GTK+2
|
||||
Group: System/I18n/Japanese
|
||||
Requires: %{name} = %{version}
|
||||
Provides: locale(gtk2:ja)
|
||||
@@ -93,7 +88,7 @@ GTK+2.0 IM module for uim
|
||||
%if %{build_gtk3}
|
||||
|
||||
%package gtk3
|
||||
Summary: GTK+3.0 IM module for uim
|
||||
Summary: GTK+3
|
||||
Group: System/I18n/Japanese
|
||||
Requires: %{name} = %{version}
|
||||
Provides: locale(gtk3:ja)
|
||||
@@ -107,8 +102,8 @@ GTK+3.0 IM module for uim
|
||||
Summary: GNOME applet for uim
|
||||
Group: System/I18n/Japanese
|
||||
Requires: %{name} = %{version}
|
||||
Obsoletes: uim-applet
|
||||
Provides: uim-applet
|
||||
Obsoletes: uim-applet < %{version}
|
||||
Provides: uim-applet = %{version}
|
||||
Provides: locale(gnome-libs:ja)
|
||||
|
||||
%description applet-gnome
|
||||
@@ -138,7 +133,7 @@ Qt4 input module plugin for uim
|
||||
%package kde3
|
||||
Summary: KDE3 Applet for Uim
|
||||
Group: User Interface/Desktops
|
||||
Requires: uim = %{version}-%{release}
|
||||
Requires: uim = %{version}
|
||||
Requires: uim-qt3
|
||||
|
||||
%description kde3
|
||||
@@ -150,13 +145,14 @@ languages.
|
||||
%setup0 -q
|
||||
%patch10 -p1
|
||||
%patch12 -p1
|
||||
%patch13 -p1
|
||||
cp emacs/README README.emacs
|
||||
iconv -f euc-jp -t utf-8 < emacs/README.ja > README.ja.emacs
|
||||
|
||||
%build
|
||||
autoreconf -f -i
|
||||
intltoolize --force
|
||||
cp po/Makefile.in.in qt/chardict/po
|
||||
cp po/Makefile.in.in qt3/chardict/po
|
||||
cp po/Makefile.in.in qt4/chardict/po
|
||||
%configure --disable-static --with-pic \
|
||||
--libexecdir=%{_prefix}/lib/uim \
|
||||
@@ -171,7 +167,7 @@ cp po/Makefile.in.in qt4/chardict/po
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%makeinstall
|
||||
rm -f %{buildroot}%{_includedir}/gcroots.h
|
||||
rm -f %{buildroot}%{_libdir}/pkgconfig/gcroots.pc
|
||||
# this file is generated by "uim-module-manager".
|
||||
@@ -226,9 +222,6 @@ find %{buildroot} -name "*.scm" \
|
||||
find %{buildroot} -type f -name "*.la" -delete -print
|
||||
rm -f doc/Makefile*
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%post
|
||||
/sbin/ldconfig
|
||||
# register uim modules to uim. This will change the files:
|
||||
@@ -257,7 +250,7 @@ uim-module-manager --register \
|
||||
|
||||
%files -f uim.lang
|
||||
%defattr(-, root, root)
|
||||
%doc AUTHORS COPYING ChangeLog INSTALL* NEWS* README*
|
||||
%doc AUTHORS COPYING ChangeLog NEWS* README*
|
||||
%doc doc
|
||||
%dir %{_sysconfdir}/X11/xim.d/
|
||||
%{_sysconfdir}/X11/xim.d/*
|
||||
@@ -338,7 +331,7 @@ uim-module-manager --register \
|
||||
%files kde3
|
||||
%defattr (-, root, root, -)
|
||||
%doc AUTHORS COPYING ChangeLog* NEWS README
|
||||
/opt/kde3/%_lib/kde3/uim_panelapplet.so
|
||||
/opt/kde3/%{_lib}/kde3/uim_panelapplet.so
|
||||
/opt/kde3/share/apps/kicker/applets/uimapplet.desktop
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user