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.3
Release:        0
Summary:        Qt IBus library and Qt input method plugin
License:        GPL-2.0+
Group:          System/Libraries
Url:            https://github.com/ibus/ibus-qt/
Source:         https://github.com/ibus/ibus-qt/releases/download/%{version}/%{name}-%{version}-Source.tar.gz
Source99:	baselibs.conf
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
Supplements:    packageand(ibus:libqt4)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%ibus_requires

%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=%{_prefix} \
    -DLIBDIR=%{_libdir}
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
%fdupes %{buildroot}
# handled by %doc macro
rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%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