[packages/tomoe-gtk] - pl, cleanup - gucharmap bcond (requires gtk+2-based gucharmap)
qboosh
qboosh at pld-linux.org
Tue Nov 13 18:03:48 CET 2012
commit a10600cc884c5dbb6e57ff8b6ae65d085b9eab1b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Nov 13 18:03:50 2012 +0100
- pl, cleanup
- gucharmap bcond (requires gtk+2-based gucharmap)
tomoe-gtk.spec | 84 ++++++++++++++++++++++++++++++++++++++++------------------
1 file changed, 58 insertions(+), 26 deletions(-)
---
diff --git a/tomoe-gtk.spec b/tomoe-gtk.spec
index e509e1a..2156d0b 100644
--- a/tomoe-gtk.spec
+++ b/tomoe-gtk.spec
@@ -1,65 +1,92 @@
#
# Conditional build:
+%bcond_with gucharmap # gucharmap support [>= 1.4.0 < 3.0]
%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
+Summary: GTK library for tomoe for Japanese and Chinese handwritten input
+Summary(pl.UTF-8): Biblioteka GTK dla tomoe do wprowadzania japońskiego i chińskiego pisma ręcznego
Name: tomoe-gtk
-Version: %{tomoe_ver}
+Version: 0.6.0
Release: 1
-License: LGPL v2+
+License: LGPL v2.1+
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: autoconf >= 2.59
BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: gtk-doc >= 1.4
+BuildRequires: gtk+2-devel >= 2:2.4.0
+%{?with_gucharmap:BuildRequires: gucharmap2-devel >= 1.4.0}
BuildRequires: libtool
+BuildRequires: pkgconfig
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
+BuildRequires: python-pygtk-devel >= 2:2.0
+BuildRequires: python-tomoe-devel
%endif
+Requires: gtk+2 >= 2:2.4.0
+%{?with_gucharmap:Requires: gucharmap2 >= 1.4.0}
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.
+GTK library for tomoe Japanese and Chinese handwritten input. This
+package is used by scim-tomoe or uim-tomoe.
+
+%description -l pl.UTF-8
+Biblioteka GTK do tomoe - systemu wprowadzania ręcznego pisma
+japońskiego i chińskiego. Ten pakiet jest wykorzystywany przez
+scim-tomoe oraz uim-tomoe.
%package devel
-Summary: Gtk library for tomoe Japanese handwritten input
+Summary: Header files for GTK tomoe library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki GTK tomoe
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: gtk+2-devel
-Requires: tomoe-devel
+Requires: gtk+2-devel >= 2:2.4.0
+%{?with_gucharmap:Requires: gucharmap2-devel >= 1.4.0}
+Requires: tomoe-devel >= %{tomoe_ver}
%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.
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe biblioteki libtomoe-gtk. Należy go
+zainstalować, aby tworzyć programy wykorzystujące tę bibliotekę.
+
%package static
Summary: Tomoe-GTK static library
+Summary(pl.UTF-8): Biblioteka statyczna Tomoe-GTK
Group: Development/Libraries
Requires: %{name}-devel = %{version}-%{release}
%description static
Tomoe-GTK static library.
+%description static -l pl.UTF-8
+Biblioteka statyczna Tomoe-GTK.
+
%package -n python-tomoe-gtk
-Summary: Tomoe-GTK bindings for python
-Group: Development/Libraries
+Summary: Tomoe-GTK bindings for Python
+Summary(pl.UTF-8): Wiązania Tomoe-GTK dla Pythona
+Group: Libraries/Python
Requires: %{name} = %{version}-%{release}
%description -n python-tomoe-gtk
-Tomoe-GTK bindings for python.
+Tomoe-GTK bindings for Python.
+
+%description -n python-tomoe-gtk -l pl.UTF-8
+Wiązania Tomoe-GTK dla Pythona.
%prep
%setup -q
@@ -70,41 +97,46 @@ Tomoe-GTK bindings for python.
%{__libtoolize}
%{__aclocal} -I macros
%{__autoconf}
+%{__autoheader}
%{__automake}
%configure \
- --without-gucharmap \
--disable-rpath \
+ %{!?with_gucharmap:--without-gucharmap} \
--with-html-dir=%{_gtkdocdir}
-%{__make} RPM_CFLAGS="$RPM_OPT_FLAGS"
+%{__make} \
+ RPM_CFLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$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}
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+%if %{with python}
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gtk-2.0/tomoegtk.{a,la}
+%endif
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS COPYING NEWS README TODO
+%doc AUTHORS ChangeLog NEWS README TODO
%attr(755,root,root) %{_libdir}/libtomoe-gtk.so.*.*.*
-%attr(755,root,root) %{_libdir}/libtomoe-gtk.so.[0-9]
+%attr(755,root,root) %ghost %{_libdir}/libtomoe-gtk.so.0
%{_datadir}/tomoe-gtk
%files devel
%defattr(644,root,root,755)
-%{_pkgconfigdir}/tomoe-gtk.pc
-%{_libdir}/libtomoe-gtk.so
+%attr(755,root,root) %{_libdir}/libtomoe-gtk.so
%{_includedir}/tomoe/gtk
+%{_pkgconfigdir}/tomoe-gtk.pc
%{_gtkdocdir}/libtomoe-gtk
%if %{with static_libs}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/tomoe-gtk.git/commitdiff/a10600cc884c5dbb6e57ff8b6ae65d085b9eab1b
More information about the pld-cvs-commit
mailing list