File qt-at-spi.spec of Package qt-at-spi

#
# spec file for package qt-at-spi
#
# Copyright (c) 2012 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:           qt-at-spi
BuildRequires:  at-spi2-core-devel
License:        LGPL-2.1+
Group:          Development/Tools/IDE
Summary:        Qt AT-SPI Bridge Plugin
Url:            http://gitorious.org/qt-at-spi/qt-at-spi
Version:        0.3.1
Release:        1
Source:         %name-%version.tar.bz2

#########################################################################################
# SuSE, openSUSE
#########################################################################################
%if 0%{?suse_version}
BuildRequires:  libqt4-devel >= 4.7.80
BuildRequires:  fdupes
%endif
%if 0%{?suse_version} > 1120
BuildRequires:  libbotan-devel >= 1.8.0
%endif

#########################################################################################
# Fedora, RHEL or CentOS
#########################################################################################
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires:  qt4-devel >= 4.7
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
    Accessibility integration for the Qt framework.

%prep
%setup -q -n %name-%version

%build
%if "%{_lib}"=="lib64"
qmake
%else
qmake
%endif
make %{?jobs:-j%jobs}

%install
export QTDIR=/usr/share/qt4
# its qmake. of course it is broken
make INSTALL_ROOT=$RPM_BUILD_ROOT install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc README LICENSE
%_libdir/qt4/plugins/accessiblebridge

%changelog
openSUSE Build Service is sponsored by