commit 1d671ab2baec5bd1cdb51ac5dba493dff9afc0cc Author: Iain Arnell <iarnell@xxxxxxxxx> Date: Wed Nov 16 18:16:08 2011 +0100 initial import (rhbz#752858) .gitignore | 1 + perl-Qt.spec | 113 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 115 insertions(+), 0 deletions(-) --- diff --git a/.gitignore b/.gitignore index e69de29..d4cc362 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/Qt-0.96.0.tar.gz diff --git a/perl-Qt.spec b/perl-Qt.spec new file mode 100644 index 0000000..e6156c7 --- /dev/null +++ b/perl-Qt.spec @@ -0,0 +1,113 @@ +Name: perl-Qt +Version: 0.96.0 +Release: 1%{?dist} +Summary: Perl bindings for Qt +# Files under qtcore/tools/ and qtdbus/tools/ are LGPLv2.1+ with Nokia +# exceptions or GPLv3+. The Nokia files only appear in -devel subpackage. +# QtCore4.pm is 'same terms as Perl itself'. The rest is GPLv2+. +License: GPLv2+ and (GPL+ or Artistic) +Group: Development/Libraries +URL: http://search.cpan.org/dist/Qt/ +Source0: http://www.cpan.org/modules/by-module/Qt/Qt-%{version}.tar.gz +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + +BuildRequires: cmake +BuildRequires: db4-devel +BuildRequires: gdbm-devel +BuildRequires: phonon-devel +BuildRequires: qimageblitz-devel +BuildRequires: qscintilla-devel +BuildRequires: qt-devel +BuildRequires: qwt-devel +BuildRequires: smokeqt-devel + +BuildRequires: perl(Carp) +BuildRequires: perl(Devel::Peek) +BuildRequires: perl(Exporter) +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(File::Spec) +BuildRequires: perl(List::MoreUtils) +BuildRequires: perl(Scalar::Util) +BuildRequires: perl(Test::More) +BuildRequires: perl(XSLoader) +BuildRequires: perl(base) +BuildRequires: perl(strict) +BuildRequires: perl(utf8) +BuildRequires: perl(warnings) + +%?perl_default_filter +%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}::_(internal|overload)\\) +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}::_(internal|overload)\\) +%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^QtCore4\\.so + +%description +This module provides Perl bindings for the Qt 4 libraries. + +%package devel +Summary: Development files for perl-Qt +License: GPLv2+ and (GPL+ or Artistic) and (LGPLv2+ with exceptions or GPLv3+) +Requires: %{name} = %{version}-%{release} + +%description devel +Development files for perl-Qt. + +%prep +%setup -q -n Qt-%{version} +mkdir build + +# fix smoke qwt detection +sed -i -e 's/SMOKE_Qwt5_Qt4_FOUND/SMOKE_QWT_FOUND/' CMakeLists.txt + +# these tests require running X server +sed -i -e '/perlqt_qtcore4_qapp/d' \ + -e '/perlqt_qtcore4_sigslot/d' \ + -e '/perlqt_qtcore4_sigslot_inherit/d' \ + -e '/perlqt_qtcore4_handlers/d' qtcore/t/CMakeLists.txt +sed -i -e '/perlqt_qsignalspy/d' qttest/t/CMakeLists.txt +sed -i -e '/perlqt_itemviewspixelator/d' \ + -e '/perlqt_itemviewspuzzle/d' \ + -e '/perlqt_helpcontextsensitivehelp/d' \ + -e '/perlqt_mainwindowsmdi/d' \ + -e '/perlqt_networkbroadcast/d' \ + -e '/perlqt_networkfortune/d' \ + -e '/perlqt_networkgooglesuggest/d' \ + -e '/perlqt_paintingfontsampler/d' \ + -e '/perlqt_richtextcalendar/d' \ + -e '/perlqt_sqlquerymodel/d' \ + -e '/perlqt_widgetscalculator/d' \ + -e '/perlqt_xmlstreambookmarks/d' qtgui/t/CMakeLists.txt + +%build +cd build +%{cmake_kde4} \ + -DCUSTOM_PERL_SITE_ARCH_DIR=%{perl_vendorarch} \ + -DCMAKE_SKIP_RPATH=YES \ + -DENABLE_GUI_TESTS=YES \ + .. +make %{?_smp_mflags} + +%install +cd build +make install DESTDIR=%{buildroot} + +%{_fixperms} %{buildroot}/* + +%check +cd build +export PERL5LIB="$PWD/blib/lib:$PWD/blib/arch" +make test + +%files +%doc LICENSE README +%{perl_vendorarch}/* +%exclude %dir %{perl_vendorarch}/auto/ + +%files devel +%doc qtgui/examples +%{_bindir}/* +%{_includedir}/perlqt +%{_datadir}/perlqt + +%changelog +* Tue Nov 08 2011 Iain Arnell <iarnell@xxxxxxxxx> 0.96.0-1 +- initial packaging attempt diff --git a/sources b/sources index e69de29..79dc168 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +300aa694926f07e53a8ffd99350a247c Qt-0.96.0.tar.gz -- Fedora Extras Perl SIG http://www.fedoraproject.org/wiki/Extras/SIGs/Perl perl-devel mailing list perl-devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/perl-devel