File perl-qt4.spec of Package perl-qt4
#
# spec file for package perl-qt4
#
# Copyright (c) 2011 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.7.2
Release: 1
License: GPL-2.0+
Summary: PerlQt kdebindings library
Url: https://projects.kde.org/projects/kde/kdebindings/perl/perlqt
Group: Development/Languages/Perl
Source0: perlqt-%{version}.tar.bz2
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
Requires: perl = %{perl_version}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Perl bindings for the Qt4 libraries from the kdebindings project.
%package devel
License: GPL-2.0+
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}
%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_install
%perl_process_packlist
%files
%defattr(-,root,root)
%dir %{_datadir}/perlqt
%{_datadir}/perlqt/doxsubpp.pl
%{_kde4_bindir}/prcc4_bin
%{_kde4_bindir}/puic4
%{_kde4_bindir}/qdbusxml2perl
%{perl_vendorarch}/*.pm
%{perl_vendorarch}/auto/
%{perl_vendorarch}/QtCore4/
%files devel
%defattr(-,root,root)
%{_datadir}/perlqt/cmake/
%{_kde4_includedir}/perlqt/
%changelog