-
%define _state stable
%define orgname perlqt
-%define qtver 4.7.4
+%define qtver 4.8.0
# Conditional build:
%bcond_with tests # do not perform "make test"
-#
-%include /usr/lib/rpm/macros.perl
+
%define pdir PerlQt
+%include /usr/lib/rpm/macros.perl
Summary: Qt4 - A Perl module interface to Qt4
Summary(pl.UTF-8): Qt4 - interfejs Perla do Qt4
Name: perl-Qt4
-Version: 4.7.3
-Release: 1
+Version: 4.14.3
+Release: 8
License: GPL
Group: Development/Languages/Perl
-Source0: ftp://ftp.kde.org/pub/kde/%{_state}/%{version}/src/%{orgname}-%{version}.tar.bz2
-# Source0-md5: cd13db20c7d3c93d837430a0370b30f1
+Source0: http://download.kde.org/%{_state}/%{version}/src/%{orgname}-%{version}.tar.xz
+# Source0-md5: d410c5b95680d1c56d037d22ef984479
+Patch0: invalid-type.patch
URL: http://www.kde.org/
-BuildRequires: smokeqt-devel >= %{version}
+BuildRequires: QtXmlPatterns-devel
+BuildRequires: kde4-smokeqt-devel >= %{version}
+BuildRequires: tar >= 1:1.22
+BuildRequires: xz
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _noautoreq_perl Qt::_internal
+
%description
This module provides bindings to the Qt 4 libraries for Perl.
%description -l pl.UTF-8
Moduł dostarcza dowiązania do Qt 4 dla Perla.
-# which package provides this?
+%package devel
+Summary: Header file for perl Qt 4
+Summary(pl.UTF-8): Plik nagłówkowe perl Qt 4
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for perl Qt 4.
+
+%description devel -l pl.UTF-8
+Plik nagłówkoww perl Qt 4.
+
%define _noautoreq 'perl(Qt::_internal)'
+# which package provides this?
%prep
%setup -q -n %{orgname}-%{version}
+%patch0 -p1
%build
install -d build
%install
rm -rf $RPM_BUILD_ROOT
-
-%{__make} -C build/ install \
- DESTDIR=$RPM_BUILD_ROOT \
- kde_htmldir=%{_kdedocdir}
+%{__make} -C build install \
+ kde_htmldir=%{_kdedocdir} \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/prcc4_bin
%attr(755,root,root) %{_bindir}/puic4
%attr(755,root,root) %{_bindir}/qdbusxml2perl
-%{_includedir}/perlqt
%{perl_vendorarch}/*.pm
%dir %{perl_vendorarch}/QtCore4
%{perl_vendorarch}/QtCore4/*.pm
%dir %{perl_vendorarch}/auto/*
%attr(755,root,root) %{perl_vendorarch}/auto/*/*.so
%dir %{_datadir}/perlqt
-%{_datadir}/perlqt/cmake
%attr(755,root,root) %{_datadir}/perlqt/doxsubpp.pl
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/perlqt
+%{_datadir}/perlqt/cmake