Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > d9fc91d88e2518f5e169801fe227159d > files > 3

matchbox-keyboard-0.1-2.6mdv2010.1.src.rpm

#specfile originally created for Fedora, modified for Moblin Linux

%define libfakekey_version 0.1

Name:           matchbox-keyboard
Version:        0.1
Release:        %mkrel 2.6
Summary:        On screen virtual keyboard

Group:          Accessibility
License:        GPLv2+
URL:            http://matchbox-project.org/
Source0:        %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

Patch0:         matchbox-keyboard-0.1-fix-desktop.patch

BuildRequires:  %{mklibname -d fakekey} >= %{libfakekey_version}
BuildRequires:  libpng-devel
BuildRequires:  libxft-devel
BuildRequires:  libxtst-devel
BuildRequires:  expat-devel
BuildRequires:  desktop-file-utils
BuildRequires:  libxi-devel
BuildRequires:  libgtk+2-devel

%description
Matchbox-keyboard is an on screen 'virtual' or 'software'
keyboard. It will hopefully work well on various touchscreen
devices from mobile phones to tablet PCs running X Windows.

It aims to 'just work' supporting localised, easy to write
XML layout configuration files.


%prep
%setup -q
%patch0 -p1 -b .fix-category
# for newer libtool
autoreconf

%build
%configure --enable-gtk-im
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

desktop-file-install --vendor="" --delete-original \
  --dir=$RPM_BUILD_ROOT%{_datadir}/applications \
  $RPM_BUILD_ROOT%{_datadir}/applications/inputmethods/*.desktop
rmdir $RPM_BUILD_ROOT%{_datadir}/applications/inputmethods


%post
update-desktop-database &> /dev/null ||:


%postun
update-desktop-database &> /dev/null ||:


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_bindir}/matchbox-keyboard
%{_datadir}/matchbox-keyboard/
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_libdir}/gtk-2.0/2.10.0/immodules/libmb-im-invoker.la
%{_libdir}/gtk-2.0/2.10.0/immodules/libmb-im-invoker.so



%changelog
* Mon Mar 22 2010 Olivier Blin <oblin@mandriva.com> 0.1-2.6mdv2010.1
+ Revision: 526417
- buildrequire gtk+2-devel for IM
- remove empty dir
- enable gtk input method
- autoreconf for newer libtool
- do not build applet yet (it requires a new matchbox-panel)
- fix buildroot

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild

* Thu Oct 16 2008 Thierry Vignaud <tv@mandriva.org> 0.1-2.5mdv2009.1
+ Revision: 294295
- import matchbox-keyboard


* Thu Oct 16 2008 Thierry Vignaud <tvignaud@mandriva.com> 0.1-2.5mdv2009.1
- adapt to Mandriva

* Tue Sep 23 2008 Vivian zhang <vivian.zhang@intel.com> 0.1
- Add BuildRequires: libXi-devel
* Thu Sep 18 2008 Vivian zhang <vivian.zhang@intel.com> 0.1
- Add comments "specfile originally created for Fedora..." to the spec file
* Tue May 20 2008 Jon McCann <jmccann@redhat.com> 0.1-0.2008.05.19.1
- Initial package