File tamil-gtk2im.spec of Package tamil-gtk2im

#
# spec file for package tamil-gtk2im (Version 2.2)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           tamil-gtk2im
BuildRequires:  gtk2-devel update-desktop-files
%define prefix /usr
%define sysconfdir /etc
License:        BSD 3-Clause
Group:          System/GUI/GNOME
AutoReqProv:    on
Provides:       locale(gtk2:ta)
PreReq:         /usr/bin/touch
Requires:       gtk2
Version:        2.2
Release:        274
Url:            http://tamillinux.sourceforge.net/projects/project/gtk2tamilim/
Source0:        http://tamillinux.sourceforge.net/projects/project/gtk2tamilim/files/tamilgtk2im-src-2.2.tar.bz2
Source1:        License
Patch:          tamilgtk2im-rpath.patch
Patch1:         tamilgtk2im-biarch.patch
Patch2:         tamilgtk2im-cflags.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Tamil99 Keyboard Input module for GTK2

%description
Tamil99 Keyboard Input module for GTK2



Authors:
--------
    Dinesh Nadarajah <dinesh_list@sbcglobal.net>

%prep
%setup -q -n tamilgtk2im-src-%{version}
cp $RPM_SOURCE_DIR/License .
%patch
%if %_lib == lib64
%patch1
%endif
%patch2

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
./compile-gtk2im.sh

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{prefix}/%{_lib}/gtk-2.0/immodules
install -m 755 ./.libs/*.{la,so} $RPM_BUILD_ROOT%{prefix}/%{_lib}/gtk-2.0/immodules

%post
# trigger run of SuSEconfig.gtk2 to register/unregister this input module
# by calling gtk-query-immodules-2.0:
touch var/adm/SuSEconfig/run-gtk
%run_ldconfig

%postun
# trigger run of SuSEconfig.gtk2 to register/unregister this input module
# by calling gtk-query-immodules-2.0:
touch var/adm/SuSEconfig/run-gtk
%run_ldconfig

%clean
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
%doc README License
%{prefix}/%{_lib}/gtk-2.0/immodules/*

%changelog
* Tue Nov 25 2008 sbrabec@suse.cz
- Supplement gtk2-32bit/gtk2-64bit in baselibs.conf (bnc#354164).
* Mon Jan 08 2007 ro@suse.de
- GNOME moved to /usr
* Tue Nov 07 2006 meissner@suse.de
- split biarch and cflags patch.
* Sat Oct 28 2006 meissner@suse.de
- use RPM_OPT_FLAGS
* Tue Feb 28 2006 mfabian@suse.de
- add "Provides: locale(gtk2:ta)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Aug 25 2004 mfabian@suse.de
- Bugzilla #44155: add /usr/bin/touch to PreReq:.
* Tue Mar 30 2004 sbrabec@suse.cz
- Fixed libtool rpath (#36361).
* Tue Feb 03 2004 mfabian@suse.de
- update to 2.2.
- use # norootforbuild
* Fri Sep 05 2003 mfabian@suse.de
- Bugzilla #29417: don't try to call in gtk-query-immodules-2.0
  in %%post and %%postun, just trigger a run of SuSEconfig.gtk2
  which will then call gtk-query-immodules-2.0.
* Wed Jul 16 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
- Require gtk2.
* Sun Jun 15 2003 mfabian@suse.de
- fix "directory not owned by any package".
* Mon May 19 2003 mfabian@suse.de
- new package, version 0.20030519
openSUSE Build Service is sponsored by