rpms/perl-TimeDate/devel perl-TimeDate.spec,1.5,1.6

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Mon Apr 25 22:41:57 UTC 2005


Author: wtogami

Update of /cvs/dist/rpms/perl-TimeDate/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv5296

Modified Files:
	perl-TimeDate.spec 
Log Message:
Bring up to date with current Fedora.Extras perl spec template. (#155914)



Index: perl-TimeDate.spec
===================================================================
RCS file: /cvs/dist/rpms/perl-TimeDate/devel/perl-TimeDate.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- perl-TimeDate.spec	31 Mar 2005 09:28:45 -0000	1.5
+++ perl-TimeDate.spec	25 Apr 2005 22:41:55 -0000	1.6
@@ -1,18 +1,18 @@
-%define _use_internal_dependency_generator 0
-
-Summary: A Perl module for time and date manipulation.
-Name: perl-TimeDate
-Version: 1.16
-Epoch: 1
-Release: 3
-License: distributable
-Group: Applications/CPAN
-Source0: TimeDate-%{version}.tar.gz
-Url: http://search.cpan.org/search?query=timedate&mode=all
-BuildRoot: %{_tmppath}/perl-TimeDate-buildroot/
-BuildRequires: perl >= 0:5.00503
-Requires: perl >= 0:5.00503
-BuildArch: noarch
+Name:           perl-TimeDate
+Version:        1.16
+Epoch:          1
+Release:        3
+Summary:        A Perl module for time and date manipulation
+
+Group:          Development/Libraries
+License:        GPL or Artistic
+URL:            http://search.cpan.org/dist/TimeDate/
+Source0:   http://www.cpan.org/authors/id/G/GB/GBARR/TimeDate-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildArch:      noarch
+BuildRequires:  perl >= 1:5.6.1
+Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
 
 %description
 This module includes a number of smaller modules suited for
@@ -21,42 +21,38 @@
 dates in various formats, providing a more reliable interface to
 textual representations of points in time.
 
-# Provide perl-specific find-{provides,requires}.
-%define __find_provides /usr/lib/rpm/find-provides.perl
-%define __find_requires /usr/lib/rpm/find-requires.perl
 
 %prep
 %setup -q -n TimeDate-%{version} 
 
 %build
-CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
-make
-make test
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
 
-%clean 
+%install
 rm -rf $RPM_BUILD_ROOT
+make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
+find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
+find $RPM_BUILD_ROOT -type d -depth -exec rmdir {} 2>/dev/null ';'
+chmod -R u+w $RPM_BUILD_ROOT/*
 
-%install
+%check || :
+make test
+
+%clean
 rm -rf $RPM_BUILD_ROOT
-make install
 
-find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
 
-find $RPM_BUILD_ROOT/usr -type f -print | 
-	sed "s@^$RPM_BUILD_ROOT@@g" | 
-	grep -v perllocal.pod | 
-	grep -v "\.packlist" > TimeDate-%{version}-filelist
-if [ "$(cat TimeDate-%{version}-filelist)X" = "X" ] ; then
-    echo "ERROR: EMPTY FILE LIST"
-    exit -1
-fi
+%files 
+%defattr(-,root,root,-)
+%{perl_vendorlib}/Date/
+%{perl_vendorlib}/Time/
+%{_mandir}/man3/*.3*
 
-%files -f TimeDate-%{version}-filelist
-%defattr(-,root,root)
 
 %changelog
-* Wed Mar 30 2005 Warren Togami <wtogami at redhat.com>
-- remove brp-compress
+* Mon Apr 25 2005 Jose Pedro Oliveira <jpo at di.uminho.pt> - 1:1.16-3
+- Bring up to date with current Fedora.Extras perl spec template. (#155914)
 
 * Wed Sep 22 2004 Chip Turner <cturner at redhat.com> 1:1.16-2
 - rebuild




More information about the fedora-cvs-commits mailing list