From 3873c330d9c0fa7298b4e544a52db9b27faeeb04 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20=C5=A0abata?= <con...@redhat.com>
Date: Wed, 27 Jan 2016 14:40:21 +0100
Subject: Package cleanup

---
 perl-DateTime-Format-SQLite.spec | 45 ++++++++++++++++++----------------------
 1 file changed, 20 insertions(+), 25 deletions(-)

diff --git a/perl-DateTime-Format-SQLite.spec b/perl-DateTime-Format-SQLite.spec
index 446efea..e8f41ee 100644
--- a/perl-DateTime-Format-SQLite.spec
+++ b/perl-DateTime-Format-SQLite.spec
@@ -1,26 +1,27 @@
 Name:           perl-DateTime-Format-SQLite 
 Summary:        Parse and format SQLite dates and times 
 Version:        0.11
-Release:        16%{?dist}
+Release:        17%{?dist}
 License:        GPL+ or Artistic 
-Group:          Development/Libraries
 Source0:        
http://search.cpan.org/CPAN/authors/id/C/CF/CFAERBER/DateTime-Format-SQLite-%{version}.tar.gz
 
-URL:            http://search.cpan.org/dist/
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+URL:            http://search.cpan.org/dist/DateTime-Format-SQLite/
 BuildArch:      noarch
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo 
$version))
-
-BuildRequires:  perl(Class::ISA)
-BuildRequires:  perl(DateTime) >= 0.1
+# Build
+BuildRequires:  make
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
+# Runtime
 BuildRequires:  perl(DateTime::Format::Builder) >= 0.6
-BuildRequires:  perl(ExtUtils::MakeMaker)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(vars)
+BuildRequires:  perl(warnings)
+# Tests only
+BuildRequires:  perl(DateTime) >= 0.10
 BuildRequires:  perl(Test::More)
-
-Requires:       perl(DateTime) >= 0.1
+Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo 
$version))
 Requires:       perl(DateTime::Format::Builder) >= 0.6
 
-%{?perl_default_filter}
-%{?perl_default_subpackage_tests}
+%global __requires_exclude 
%{?__requires_exclude:%__requires_exclude|}^perl\\(DateTime::Format::Builder\\)$
 
 %description
 This module understands the formats used by SQLite for its 'date',
@@ -33,36 +34,30 @@ understood/returned by SQLite's 'date', 'time', 'datetime', 
'julianday'
 and 'strftime' SQL functions. You will usually want to store your dates
 in one of these formats.
 
-
 %prep
 %setup -q -n DateTime-Format-SQLite-%{version}
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
 make pure_install DESTDIR=%{buildroot}
-find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot} 
-
 %files
-%defattr(-,root,root,-)
-%doc Changes README LICENSE 
+%license LICENSE
+%doc Changes README
 %{perl_vendorlib}/*
 %{_mandir}/man3/*.3*
 
 %changelog
+* Wed Jan 27 2016 Petr Ĺ abata <con...@redhat.com> - 0.11-17
+- Package cleanup
+
 * Thu Jun 18 2015 Fedora Release Engineering <rel-...@lists.fedoraproject.org> 
- 0.11-16
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
 
-- 
cgit v1.1


        
https://src.fedoraproject.org/cgit/perl-DateTime-Format-SQLite.git/commit/?h=epel7&id=3873c330d9c0fa7298b4e544a52db9b27faeeb04
_______________________________________________
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