# # spec file for package perl-Time-Duration # # 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-Time-Duration Url: http://cpan.org/modules/by-module/Time/ BuildRequires: perl-Pod-Coverage BuildRequires: perl-Pod-Escapes BuildRequires: perl-Pod-Simple BuildRequires: perl-Test-Pod BuildRequires: perl-Test-Pod-Coverage BuildRequires: perl-macros Summary: Rounded or exact English expression of durations License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Version: 1.06 Release: 0 Source: Time-Duration-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build %{perl_requires} %description This module provides functions for expressing durations in rounded or exact terms. Authors: -------- Sean M. Burke Avi Finkel %prep %setup -q -n Time-Duration-%{version} # --------------------------------------------------------------------------- %build #disable tests that need special modules mv t/02_pod.t t/02_pod.tt mv t/03_pod_cover.t t/03_pod_cover.tt perl Makefile.PL make %{?_smp_mflags} %check make test # --------------------------------------------------------------------------- %install rm -rf $RPM_BUILD_ROOT make CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist %files %defattr(-,root,root) %{perl_vendorlib}/Time %{perl_vendorarch}/auto/Time #%{perl_vendorarch}/auto/Time/Duration %doc %{_mandir}/man3/*.gz %doc README %changelog