[packages/scim-wnn] - initial, needs update for gtk3 used by scim now
qboosh
qboosh at pld-linux.org
Wed Apr 13 21:25:04 CEST 2016
commit 934dabd20f5de3f296b36d2d9ddc893b8498794a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Apr 13 21:25:03 2016 +0200
- initial, needs update for gtk3 used by scim now
scim-wnn-include.patch | 10 +++++++
scim-wnn-no-rpath.patch | 29 ++++++++++++++++++++
scim-wnn.spec | 72 +++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 111 insertions(+)
---
diff --git a/scim-wnn.spec b/scim-wnn.spec
new file mode 100644
index 0000000..0fe812f
--- /dev/null
+++ b/scim-wnn.spec
@@ -0,0 +1,72 @@
+# TODO: gtk3 patch
+Summary: SCIM IMEngine module for Wnn Japanese input
+Summary(pl.UTF-8): Silnik IM SCIM dla metody wprowadzania znaków japońskich Wnn
+Name: scim-wnn
+Version: 1.0.0
+Release: 0.1
+License: GPL v2+
+Group: Libraries
+#Source0Download: https://osdn.jp/projects/scim-imengine/releases/p3292
+Source0: http://dl.osdn.jp/scim-imengine/19759/%{name}-%{version}.tar.gz
+# Source0-md5: 0f1c69149a13663e6bcd3ea037a41cf5
+Patch0: %{name}-no-rpath.patch
+#Patch1: %{name}-gtk3.patch
+Patch2: %{name}-include.patch
+URL: https://osdn.jp/projects/scim-imengine/
+BuildRequires: Wnn7-SDK-devel
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: libstdc++-devel
+BuildRequires: libtool >= 2:1.5
+BuildRequires: pkgconfig
+BuildRequires: scim-devel >= 1.4
+Requires: Wnn7-SDK
+Requires: scim >= 1.4
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SCIM IMEngine module for Wnn Japanese input.
+
+%description -l pl.UTF-8
+Silnik IM SCIM dla metody wprowadzania znaków japońskich Wnn.
+
+%prep
+%setup -q
+%patch0 -p1
+#patch1 -p1
+%patch2 -p1
+
+%build
+%{__gettextize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-static
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/scim-1.0/*/*/*.la
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README TODO
+%lang(ja) %doc README.ja
+%attr(755,root,root) %{_libdir}/scim-1.0/*/IMEngine/wnn.so
+%attr(755,root,root) %{_libdir}/scim-1.0/*/SetupUI/wnn-imengine-setup.so
+%{_datadir}/scim/icons/scim-wnn.png
+%{_datadir}/scim/scim-wnn
diff --git a/scim-wnn-include.patch b/scim-wnn-include.patch
new file mode 100644
index 0000000..d917dbf
--- /dev/null
+++ b/scim-wnn-include.patch
@@ -0,0 +1,10 @@
+--- scim-wnn-1.0.0/src/wnnconversion.cpp.orig 2006-03-28 04:34:46.000000000 +0200
++++ scim-wnn-1.0.0/src/wnnconversion.cpp 2016-04-12 20:21:28.946671790 +0200
+@@ -19,6 +19,7 @@
+ ***************************************************************************/
+ #include "wnnconversion.h"
+ #include <scim_wnn_def.h>
++#include <string.h>
+
+ #ifdef HAVE_CONFIG_H
+ #include <config.h>
diff --git a/scim-wnn-no-rpath.patch b/scim-wnn-no-rpath.patch
new file mode 100644
index 0000000..6d6c0b5
--- /dev/null
+++ b/scim-wnn-no-rpath.patch
@@ -0,0 +1,29 @@
+--- scim-wnn-1.0.0/src/Makefile.am.orig 2006-02-04 04:40:33.000000000 +0100
++++ scim-wnn-1.0.0/src/Makefile.am 2016-04-12 20:22:23.730002824 +0200
+@@ -37,7 +37,7 @@
+ wnn_la_CFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
+ wnn_la_CXXFLAGS = @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
+
+-wnn_la_LDFLAGS = -avoid-version -module -rpath $(moduledir) \
++wnn_la_LDFLAGS = -avoid-version -module \
+ @LIBTOOL_EXPORT_OPTIONS@ @INTLLIBS@ @SCIM_LIBS@
+
+ if SCIM_BUILD_SETUP
+@@ -54,7 +54,6 @@
+ wnn_imengine_setup_la_CXXFLAGS= @SCIM_GTKUTILS_CFLAGS@ @SCIM_CFLAGS@ @SCIM_DEBUG_FLAGS@
+
+ wnn_imengine_setup_la_LDFLAGS = -avoid-version \
+- -rpath $(setupmoduledir) \
+ -module \
+ @LIBTOOL_EXPORT_OPTIONS@ \
+ @SCIM_GTKUTILS_LIBS@ \
+--- scim-wnn-1.0.0/configure.ac.orig 2006-03-29 02:50:45.000000000 +0200
++++ scim-wnn-1.0.0/configure.ac 2016-04-12 20:23:10.473334196 +0200
+@@ -98,6 +98,7 @@
+ # libtool option to control which symbols are exported
+ # right now, symbols starting with _ are not exported
+ LIBTOOL_EXPORT_OPTIONS='-export-symbols-regex "^[[^_]].*"'
++AC_SUBST([LIBTOOL_EXPORT_OPTIONS])
+
+ # Extra args.
+ AC_ARG_ENABLE(debug,
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/scim-wnn.git/commitdiff/934dabd20f5de3f296b36d2d9ddc893b8498794a
More information about the pld-cvs-commit
mailing list