2 # - DateTime::Format::Strptime -
3 # This spec file was automatically generated by cpan2rpm [ver: 2.027]
4 # The following arguments were used:
5 # --spec-only --version=1.0700 '--author=Rick Measham' DateTime-Format-Strptime-1.0700.tar.gz
6 # For more information on cpan2rpm please visit: http://perl.arix.com/
9 %define pkgname DateTime
-Format
-Strptime
10 %define filelist
%{pkgname}-%{version}-filelist
11 %define NVR
%{pkgname}-%{version}-%{release}
14 name
: perl
-DateTime
-Format
-Strptime
15 summary
: DateTime
-Format
-Strptime
- Parse and format strp and strf
time patterns
19 packager
: Arix International
<cpan2rpm@arix.com
>
21 group
: Applications
/CPAN
22 url
: http
://www.cpan.org
23 buildroot
: %{_tmppath}/%{name}-%{version}-%
(id
-u
-n
)
25 prefix
: %
(echo %{_prefix})
26 source: DateTime
-Format
-Strptime
-1.0700.tar.gz
29 This module implements most of strptime
(3), the POSIX
function that
30 is the reverse of strftime
(3), for "DateTime". While "strftime"
31 takes a "DateTime" and a pattern and returns a string
, "strptime" takes
32 a string and a pattern and returns the "DateTime" object
36 # This package was generated automatically with the cpan2rpm
37 # utility. To get this software or for more information
38 # please visit: http://perl.arix.com/
42 %setup -q
-n
%{pkgname}-%{version}
43 chmod
-R u
+w
%{_builddir}/%{pkgname}-%{version}
46 grep
-rsl '^
#!.*perl' . |
47 grep
-v '.bak$' |xargs
--no
-run
-if-empty \
48 %__perl -MExtUtils
::MakeMaker
-e 'MY
->fixin
(@ARGV
)'
49 CFLAGS
="$RPM_OPT_FLAGS"
50 %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}|
if \$ExtUtils
::MakeMaker
::VERSION
=~
/5\
.9[1-6]|
6\
.0[0-5]/ '`
57 [ "
%{buildroot}" != "/" ] && rm -rf %{buildroot}
59 %{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
61 cmd
=/usr
/share
/spec
-helper
/compress_files
62 [ -x $cmd
] || cmd
=/usr
/lib
/rpm
/brp
-compress
66 if [ -e
/etc
/SuSE
-release
-o
-e
/etc
/UnitedLinux
-release
]
68 %{__mkdir_p} %{buildroot}/var
/adm
/perl
-modules
69 %{__cat} `find %{buildroot} -name "perllocal.pod"` \
70 |
%{__sed} -e s+%{buildroot}++g \
71 > %{buildroot}/var/adm/perl-modules/%{name}
74 # remove special files
75 find
%{buildroot} -name "perllocal.pod" \
76 -o
-name ".packlist" \
80 # no empty directories
81 find
%{buildroot}%{_prefix} \
83 -exec rmdir {} \
; 2>/dev
/null
85 %{__perl} -MFile
::Find
-le '
86 find
({ wanted
=> \
&wanted
, no_chdir
=> 1}, "
%{buildroot}"
);
87 print "
%doc Changes README LICENSE"
;
88 for my $x
(sort @
dirs, @files
) {
89 push @ret
, $x unless indirs
($x
);
91 print join "\n"
, sort @ret
;
96 local $_
= $File
::Find
::name
;
97 my $f
= $_
; s|^\Q
%{buildroot}\E||
;
99 return $files
[@files
] = $_
if -f $f
;
102 /\Q$d\E
/ && return for reverse sort @INC
;
103 $d
=~
/\Q$_\E
/ && return
104 for qw|
/etc
%_prefix/man
%_prefix/bin
%_prefix/share|
;
111 $x
=~
/^\Q$_\E\
// && $x ne $_
&& return 1 for @
dirs;
115 [ -z
%filelist ] && {
116 echo "ERROR
: empty
%files listing"
121 [ "
%{buildroot}" != "/" ] && rm -rf %{buildroot}
124 %defattr(-,root
,root
)
127 * Thu Nov
23 2006 root@dca02