packages: tomoe-gtk/tomoe-gtk-cflags.patch (NEW), tomoe-gtk/tomoe-gtk-rpath...
baggins
baggins at pld-linux.org
Thu Jul 21 18:23:31 CEST 2011
Author: baggins Date: Thu Jul 21 16:23:31 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- initial revision
---- Files affected:
packages/tomoe-gtk:
tomoe-gtk-cflags.patch (NONE -> 1.1) (NEW), tomoe-gtk-rpath.patch (NONE -> 1.1) (NEW), tomoe-gtk.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/tomoe-gtk/tomoe-gtk-cflags.patch
diff -u /dev/null packages/tomoe-gtk/tomoe-gtk-cflags.patch:1.1
--- /dev/null Thu Jul 21 18:23:31 2011
+++ packages/tomoe-gtk/tomoe-gtk-cflags.patch Thu Jul 21 18:23:26 2011
@@ -0,0 +1,24 @@
+diff -up ./bindings/python/Makefile.am.cflags ./bindings/python/Makefile.am
+--- ./bindings/python/Makefile.am.cflags 2009-07-29 15:20:50.000000000 +1000
++++ ./bindings/python/Makefile.am 2009-07-29 15:21:05.000000000 +1000
+@@ -8,6 +8,7 @@ INCLUDES = \
+ $(PYGTK_CFLAGS) \
+ $(GTK2_CFLAGS) \
+ $(TOMOE_CFLAGS) \
++ $(RPM_CFLAGS) \
+ -I$(top_srcdir)/src \
+ -I$(top_builddir)/src
+
+diff -up ./src/Makefile.am.cflags ./src/Makefile.am
+--- ./src/Makefile.am.cflags 2007-06-11 13:56:00.000000000 +1000
++++ ./src/Makefile.am 2009-07-29 15:22:22.000000000 +1000
+@@ -1,7 +1,8 @@
+ AM_CPPFLAGS = \
+ -DSYSCONFDIR=\""$(sysconfdir)"\" \
+ -DDATADIR=\""$(datadir)"\" \
+- -DTOMOEGTKDATADIR=\""$(datadir)"/$(PACKAGE)\"
++ -DTOMOEGTKDATADIR=\""$(datadir)"/$(PACKAGE)\" \
++ $(RPM_CFLAGS)
+
+ INCLUDES = $(GTK2_CFLAGS) $(TOMOE_CFLAGS) $(GUCHARMAP_CFLAGS)
+ LIBS = $(GTK2_LIBS) $(TOMOE_LIBS) $(GUCHARMAP_LIBS)
================================================================
Index: packages/tomoe-gtk/tomoe-gtk-rpath.patch
diff -u /dev/null packages/tomoe-gtk/tomoe-gtk-rpath.patch:1.1
--- /dev/null Thu Jul 21 18:23:31 2011
+++ packages/tomoe-gtk/tomoe-gtk-rpath.patch Thu Jul 21 18:23:26 2011
@@ -0,0 +1,26 @@
+diff -up ./configure.ac.rpath ./configure.ac
+--- ./configure.ac.rpath 2007-06-12 18:17:23.000000000 +1000
++++ ./configure.ac 2009-05-13 15:43:45.000000000 +1000
+@@ -76,6 +76,14 @@ if test "x$GCC" = "xyes"; then
+ fi
+ fi
+
++# Add rpath check
++AC_MSG_CHECKING(whether to use rpath)
++AC_ARG_ENABLE(rpath,
++ [AC_HELP_STRING([--disable-rpath],
++ [Patches libtool to not use rpath in the libraries produced.])],
++ [xerces_cv_rpath="$enable_rpath"], [xerces_cv_rpath="yes"])
++AC_MSG_RESULT($xerces_cv_rpath)
++
+ # for dump stroke data
+ AC_ARG_ENABLE(dumpstroke, [ --enable-dumpstroke Enable dump of stroke data])
+ if test x"$enable_dumpstroke" = "xyes"; then
+diff -up ./Makefile.am.rpath ./Makefile.am
+--- ./Makefile.am.rpath 2007-06-07 15:36:06.000000000 +1000
++++ ./Makefile.am 2009-05-13 15:44:38.000000000 +1000
+@@ -1,3 +1,4 @@
++ACLOCAL_AMFLAGS=-I macros
+ SUBDIRS=src data po test doc bindings
+
+ EXTRA_DIST = autogen.sh tomoe-gtk.pc
================================================================
Index: packages/tomoe-gtk/tomoe-gtk.spec
diff -u /dev/null packages/tomoe-gtk/tomoe-gtk.spec:1.1
--- /dev/null Thu Jul 21 18:23:31 2011
+++ packages/tomoe-gtk/tomoe-gtk.spec Thu Jul 21 18:23:26 2011
@@ -0,0 +1,131 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without python # build without python bindings
+%bcond_without static_libs # don't build static libraries
+#
+%define tomoe_ver 0.6.0
+Summary: Gtk library for tomoe for Japanese and Chinese handwritten input
+Name: tomoe-gtk
+Version: %{tomoe_ver}
+Release: 1
+License: LGPL v2+
+Group: Libraries
+Source0: http://downloads.sourceforge.net/tomoe/%{name}-%{version}.tar.gz
+# Source0-md5: bd49ac64549d8a7ab092bea1c1dc04fc
+Patch0: %{name}-rpath.patch
+Patch1: %{name}-cflags.patch
+URL: http://scim-imengine.sourceforge.jp/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: tomoe-devel >= %{tomoe_ver}
+BuildRequires: gtk+2-devel
+%if %{with python}
+BuildRequires: python-devel
+BuildRequires: python-tomoe
+BuildRequires: python-pygobject-devel
+BuildRequires: python-pygtk-devel
+%endif
+Requires: tomoe >= %{tomoe_ver}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Gtk library for tomoe Japanese handwritten input. This package is used
+by scim-tomoe or uim-tomoe.
+
+%package devel
+Summary: Gtk library for tomoe Japanese handwritten input
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: gtk+2-devel
+Requires: tomoe-devel
+
+%description devel
+The libtomoe-devel package includes the header files for libtomoe-gtk.
+Install this if you want to develop programs which will use
+libtomoe-gtk.
+
+%package static
+Summary: Tomoe-GTK static library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Tomoe-GTK static library.
+
+%package -n python-tomoe-gtk
+Summary: Tomoe-GTK bindings for python
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description -n python-tomoe-gtk
+Tomoe-GTK bindings for python.
+
+%prep
+%setup -q
+%patch0 -p0
+%patch1 -p0
+
+%build
+%{__libtoolize}
+%{__aclocal} -I macros
+%{__autoconf}
+%{__automake}
+%configure \
+ --without-gucharmap \
+ --disable-rpath \
+ --with-html-dir=%{_gtkdocdir}
+
+%{__make} RPM_CFLAGS="$RPM_OPT_FLAGS"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+
+rm $RPM_BUILD_ROOT%{_libdir}/*.la
+rm $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/tomoegtk.{a,la}
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING NEWS README TODO
+%attr(755,root,root) %{_libdir}/libtomoe-gtk.so.*.*.*
+%attr(755,root,root) %{_libdir}/libtomoe-gtk.so.[0-9]
+%{_datadir}/tomoe-gtk
+
+%files devel
+%defattr(644,root,root,755)
+%{_pkgconfigdir}/tomoe-gtk.pc
+%{_libdir}/libtomoe-gtk.so
+%{_includedir}/tomoe/gtk
+%{_gtkdocdir}/libtomoe-gtk
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libtomoe-gtk.a
+%endif
+
+%if %{with python}
+%files -n python-tomoe-gtk
+%defattr(644,root,root,755)
+%attr(755,root,root) %{py_sitedir}/gtk-2.0/tomoegtk.so
+%endif
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2011/07/21 16:23:26 baggins
+- initial revision
+
================================================================
More information about the pld-cvs-commit
mailing list