[packages/scim-input-pad] - new - data patch to fix *.pad files packaging
qboosh
qboosh at pld-linux.org
Sun Sep 16 14:30:51 CEST 2012
commit e95bb3d212688f44c39417cab6b2c0def527a9dd
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Sep 16 14:31:23 2012 +0200
- new
- data patch to fix *.pad files packaging
scim-input-pad-data.patch | 35 ++++++++++++++++++++++
scim-input-pad.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 109 insertions(+)
---
diff --git a/scim-input-pad.spec b/scim-input-pad.spec
new file mode 100644
index 0000000..59c34d0
--- /dev/null
+++ b/scim-input-pad.spec
@@ -0,0 +1,74 @@
+Summary: SCIM Input Pad
+Summary(pl.UTF-8): SCIM Input Pad - panel do wprowadzania znaków dla SCIM
+Name: scim-input-pad
+Version: 0.1.3.1
+Release: 1
+License: GPL v2+
+Group: Libraries
+Source0: http://downloads.sourceforge.net/scim/%{name}-%{version}.tar.gz
+# Source0-md5: 7ab0a700f5f4bd66f8f8138070d2abd4
+Patch0: %{name}-data.patch
+URL: http://www.scim-im.org/
+BuildRequires: autoconf >= 2.50
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: gtk+2-devel >= 2:2.4.0
+BuildRequires: intltool >= 0.33
+BuildRequires: libstdc++-devel
+BuildRequires: libtool
+BuildRequires: scim-devel >= 1.2.0
+Requires: gtk+2 >= 2:2.4.0
+Requires: scim >= 1.2.0
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SCIM Input Pad is an onscreen input pad used to input some symbols
+very easily.
+
+%description -l pl.UTF-8
+SCIM Input Pad to wyświetlany na ekranie panel służący do łatwego
+wprowadzania różnych symboli.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-static
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# dlopened module
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/scim-1.0/*/*/*.la
+# API not exported
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libscim-input-pad.{so,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 ChangeLog README
+%attr(755,root,root) %{_bindir}/scim-input-pad
+%attr(755,root,root) %{_libdir}/libscim-input-pad.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libscim-input-pad.so.0
+%attr(755,root,root) %{_libdir}/scim-1.0/*/Helper/input-pad.so
+%{_datadir}/scim/icons/input-pad.png
+%{_datadir}/scim/input-pad
diff --git a/scim-input-pad-data.patch b/scim-input-pad-data.patch
new file mode 100644
index 0000000..726342d
--- /dev/null
+++ b/scim-input-pad-data.patch
@@ -0,0 +1,35 @@
+--- scim-input-pad-0.1.3.1/data/Makefile.am.orig 2011-09-15 09:11:41.000000000 +0200
++++ scim-input-pad-0.1.3.1/data/Makefile.am 2012-09-16 12:37:40.893367719 +0200
+@@ -29,7 +29,7 @@
+ INPUT_PAD_SOURCE_FILES = base.pad.in \
+ keyboard.pad.in \
+ japanese.pad.in \
+- chinese.pad,in \
++ chinese.pad.in \
+ korean.pad.in \
+ arabian.pad.in \
+ ethiopic.pad.in \
+@@ -47,7 +47,7 @@
+ india_sinhala.pad.in \
+ india_syloti_nagri.pad.in \
+ india_tamil.pad.in \
+- india_telugu.in \
++ india_telugu.pad.in \
+ armenian.pad.in \
+ balinese.pad.in \
+ buginese.pad.in \
+@@ -70,6 +70,8 @@
+ thai.pad.in \
+ tibet.pad.in
+
++INPUT_PAD_DEST_FILES = $(INPUT_PAD_SOURCE_FILES:.pad.in=.pad)
++
+ scim_input_pad_datadir = @SCIM_INPUT_PAD_DATADIR@
+ scim_input_pad_data_DATA= $(INPUT_PAD_DEST_FILES)
+
+@@ -77,4 +79,4 @@
+
+ CLEANFILES = *.bak scim-input-pad $(INPUT_PAD_DEST_FILES)
+
+-*.pad: *.pad.in $(INTLTOOL_MERGE) $(top_srcdir)/po/*.po ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< ($)@'
++%.pad: %.pad.in $(INTLTOOL_MERGE) $(top_srcdir)/po/*.po ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/scim-input-pad.git/commitdiff/e95bb3d212688f44c39417cab6b2c0def527a9dd
More information about the pld-cvs-commit
mailing list