From e1b1d244289d1389cb7e5a3178fa698db680ea2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppi...@redhat.com>
Date: Tue, 22 Mar 2016 09:31:34 +0100
Subject: Modernize spec file

---
 perl-Qt.spec | 53 ++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 34 insertions(+), 19 deletions(-)

diff --git a/perl-Qt.spec b/perl-Qt.spec
index c6b4225..acc4e50 100644
--- a/perl-Qt.spec
+++ b/perl-Qt.spec
@@ -1,6 +1,6 @@
 Name:           perl-Qt
 Version:        0.96.0
-Release:        18%{?dist}
+Release:        19%{?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.
@@ -19,40 +19,51 @@ Patch3:         
Qt-0.96.0-Bundle-Devel-Peel-SvREFCNT_inc-removed-from-perl-5.2.p
 Patch4:         
perlqt-4.14.2-Use-a-copy-of-the-Qt-AutoLoad-AUTOLOAD-variable.patch
 # Adjust to GCC 6, bug #1303658, CPAN RT#111630
 Patch5:         Qt-0.96.0-Initialize-smokeperl_object-properly.patch
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-
 BuildRequires:  coreutils
 BuildRequires:  cmake
-BuildRequires:  libdb-devel
-BuildRequires:  make
+# gcc for C standard library headers
 BuildRequires:  gcc
-BuildRequires:  gdbm-devel
+BuildRequires:  gcc-c++
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl-devel
+# Perl module used by qtcore/src/doxsubpp.pl and cmake/FindPerlMore.cmake
+BuildRequires:  perl(Config)
+BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(File::Spec)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
 BuildRequires:  phonon-devel
 BuildRequires:  qimageblitz-devel
 BuildRequires:  qscintilla-devel
 BuildRequires:  qt-devel
 BuildRequires:  qwt-devel
 BuildRequires:  sed
+# smokegen-devel provided cmake modules for Qt components
+BuildRequires:  smokegen-devel
 BuildRequires:  smokeqt-devel
-
+# Run-time:
+# search in lib subdirectories, exclude examples,
+BuildRequires:  perl(base)
 BuildRequires:  perl(Carp)  
-BuildRequires:  perl(Devel::Peek)  
-BuildRequires:  perl(Exporter)  
-BuildRequires:  perl(ExtUtils::MakeMaker)
-BuildRequires:  perl(File::Spec)
-BuildRequires:  perl(List::MoreUtils)  
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(List::MoreUtils)
+BuildRequires:  perl(overload)
 BuildRequires:  perl(Scalar::Util)  
-BuildRequires:  perl(Test::More)
 BuildRequires:  perl(XSLoader)  
-BuildRequires:  perl(base)  
-BuildRequires:  perl(strict)  
+# Tests:
+# search for *.t files, they use modules from examples like Calculator
+BuildRequires:  perl(blib)
+BuildRequires:  perl(Devel::Peek)
+BuildRequires:  perl(lib)
+BuildRequires:  perl(Test::More)
 BuildRequires:  perl(utf8)
-BuildRequires:  perl(warnings)  
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %?perl_default_filter
+# Filter private modules
 %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.
@@ -60,7 +71,7 @@ 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}
+Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
 
 %description devel
 Development files for perl-Qt.
@@ -120,7 +131,8 @@ export PERL5LIB="$PWD/blib/lib:$PWD/blib/arch"
 make test
 
 %files
-%doc LICENSE README
+%license LICENSE
+%doc README
 %{perl_vendorarch}/*
 %exclude %dir %{perl_vendorarch}/auto/
 
@@ -131,6 +143,9 @@ make test
 %{_datadir}/perlqt
 
 %changelog
+* Tue Mar 22 2016 Petr Pisar <ppi...@redhat.com> - 0.96.0-19
+- Modernize spec file
+
 * Thu Feb 04 2016 Fedora Release Engineering <rel...@fedoraproject.org> - 
0.96.0-18
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-Qt.git/commit/?h=epel7&id=e1b1d244289d1389cb7e5a3178fa698db680ea2b
_______________________________________________
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org

Reply via email to