File perl-qt4.spec of Package perl-qt4

#
# spec file for package perl-qt4
#
# 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:           perl-qt4
Version:        4.14.3
Release:        0
Summary:        PerlQt kdebindings library
License:        GPL-2.0+
Group:          Development/Languages/Perl
Url:            https://projects.kde.org/projects/kde/kdebindings/perl/perlqt
Source0:        perlqt-%{version}.tar.xz
# PATCH-FIX-UPSTREAM gcc6-fix.patch boo#985188, kde#360844 -- fix build with gcc6
Patch:          gcc6-fix.patch
BuildRequires:  cmake
BuildRequires:  kde4-filesystem
BuildRequires:  kdebindings-smokegen
BuildRequires:  libQtWebKit-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libqscintilla-devel
BuildRequires:  libsmokegen-devel
BuildRequires:  libsmokeqt-devel
BuildRequires:  perl
BuildRequires:  phonon-devel
BuildRequires:  qwt-devel
BuildRequires:  sqlite-devel
BuildRequires:  xz
Requires:       perl = %{perl_version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Perl bindings for the Qt4 libraries from the kdebindings project.

%package devel
Summary:        Development libraries for Perl-Qt4
Group:          Development/Languages/Perl
Requires:       %{name} = %{version}

%description devel
This package contains development files for the Perl bindings for the Qt4 libraries.

%prep
%setup -q -n perlqt-%{version}
%patch -p1

%build
  EXTRA_FLAGS="-DCUSTOM_PERL_SITE_ARCH_DIR=`perl -MConfig -e 'print $Config{vendorarch}'`"
  %cmake_kde4 -d build -- $EXTRA_FLAGS
  %make_jobs

%install
  cd build
  make DESTDIR=%{buildroot} install
  %perl_process_packlist

%files
%defattr(-,root,root)
%dir %{_datadir}/perlqt
%{_datadir}/perlqt/doxsubpp.pl
%{_bindir}/prcc4_bin
%{_bindir}/puic4
%{_bindir}/qdbusxml2perl
%{perl_vendorarch}/*.pm
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/QtCore4/

%files devel
%defattr(-,root,root)
%{_datadir}/perlqt/cmake/
%{_includedir}/perlqt/

%changelog
openSUSE Build Service is sponsored by