File ibus-qt.spec of Package ibus-qt
#
# spec file for package ibus-qt
#
# Copyright (c) 2014 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/
#
Name: ibus-qt
Version: 1.3.2
Release: 0
Summary: Qt IBus library and Qt input method plugin
License: GPL-2.0+
Group: System Environment/Libraries
Url: http://code.google.com/p/ibus/
Source0: http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: dbus-1-devel >= 1.2
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: ibus-devel >= 1.2
BuildRequires: libicu-devel >= 4.0
BuildRequires: libqt4-devel
Requires: ibus >= 1.2
Requires: libqt4
Supplements: packageand(ibus:libqt4)
%description
Qt IBus library and Qt input method plugin.
%package devel
Summary: Development tools for ibus qt
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}-%{release}
%description devel
The ibus-qt-devel package contains the header files for ibus qt library.
%prep
%setup -q -n %{name}-%{version}-Source
%build
cmake \
-DCMAKE_INSTALL_PREFIX=%{_usr} \
-DLIBDIR=%{_libdir}
make
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
%fdupes -s $RPM_BUILD_ROOT
# handled by %doc macro
rm -rf $RPM_BUILD_ROOT/usr/share/doc/%{name}-%{version}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libdir}/libibus-qt.so.*
%{_libdir}/qt4/plugins/inputmethods/libqtim-ibus.so
%files devel
%defattr(-,root,root,-)
%doc AUTHORS README
%{_includedir}/*
%{_libdir}/libibus-qt.so
%changelog