/[smeserver]/rpms/perl-Time-TAI64/sme7/Time-TAI64.spec
ViewVC logotype

Contents of /rpms/perl-Time-TAI64/sme7/Time-TAI64.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sun Mar 30 20:55:57 2008 UTC (16 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Packages maintained upstream

1 #
2 # - Time::TAI64 -
3 # This spec file was automatically generated by cpan2rpm [ver: 2.026]
4 # The following arguments were used:
5 # Time::TAI64
6 # For more information on cpan2rpm please visit: http://perl.arix.com/
7 #
8
9 %define pkgname Time-TAI64
10 %define filelist %{pkgname}-%{version}-filelist
11 %define NVR %{pkgname}-%{version}-%{release}
12 %define maketest 1
13
14 name: perl-Time-TAI64
15 summary: Time-TAI64 - Perl extension for converting TAI64 strings into standard unix timestamps.
16 version: 2.11
17 release: 1%{?dist}
18 license: Artistic
19 group: Applications/CPAN
20 url: http://www.cpan.org
21 buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
22 buildarch: noarch
23 prefix: %(echo %{_prefix})
24 source: http://search.cpan.org/dist/J/JO/JOVAL/Time-TAI64-%{version}.tar.gz
25 buildrequires: perl(Time::HiRes)
26
27 %description
28 This is a package provides routines to convert TAI64 strings, like timestamps produced
29 by B<multilog>, into values that can be processed by other perl functions to
30 display the timestamp in human-readable form and/or use in mathematical
31 computations.
32
33 #
34 # This package was generated automatically with the cpan2rpm
35 # utility. To get this software or for more information
36 # please visit: http://perl.arix.com/
37 #
38
39 %prep
40 %setup -q -n %{pkgname}-%{version}
41 chmod -R u+w %{_builddir}/%{pkgname}-%{version}
42
43 %build
44 grep -rsl '^#!.*perl' . |
45 grep -v '.bak$' |xargs --no-run-if-empty \
46 %__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
47 CFLAGS="$RPM_OPT_FLAGS"
48 %{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
49 %{__make}
50 %if %maketest
51 %{__make} test
52 %endif
53
54 %install
55 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
56
57 %{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
58
59 [ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
60
61 # SuSE Linux
62 if [ -e /etc/SuSE-release -o -e /etc/UnitedLinux-release ]
63 then
64 %{__mkdir_p} %{buildroot}/var/adm/perl-modules
65 %{__cat} `find %{buildroot} -name "perllocal.pod"` \
66 | %{__sed} -e s+%{buildroot}++g \
67 > %{buildroot}/var/adm/perl-modules/%{name}
68 fi
69
70 # remove special files
71 find %{buildroot} -name "perllocal.pod" \
72 -o -name ".packlist" \
73 -o -name "*.bs" \
74 |xargs -i rm -f {}
75
76 # no empty directories
77 find %{buildroot}%{_prefix} \
78 -type d -depth \
79 -exec rmdir {} \; 2>/dev/null
80
81 %{__perl} -MFile::Find -le '
82 find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
83 print "%doc Changes README";
84 for my $x (sort @dirs, @files) {
85 push @ret, $x unless indirs($x);
86 }
87 print join "\n", sort @ret;
88
89 sub wanted {
90 return if /auto$/;
91
92 local $_ = $File::Find::name;
93 my $f = $_; s|^\Q%{buildroot}\E||;
94 return unless length;
95 return $files[@files] = $_ if -f $f;
96
97 $d = $_;
98 /\Q$d\E/ && return for reverse sort @INC;
99 $d =~ /\Q$_\E/ && return
100 for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|;
101
102 $dirs[@dirs] = $_;
103 }
104
105 sub indirs {
106 my $x = shift;
107 $x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs;
108 }
109 ' > %filelist
110
111 [ -z %filelist ] && {
112 echo "ERROR: empty %files listing"
113 exit -1
114 }
115
116 %clean
117 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
118
119 %files -f %filelist
120 %defattr(-,root,root)
121
122 %changelog
123 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
124 - Clean up spec so package can be built by koji/plague
125
126 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
127 - Update to new release naming. No functional changes.
128 - Make Packager generic
129
130 * Mon May 01 2006 Charlie Brady <charlie_brady@mitel.com>
131 - Update to version 2.11 upstream - bugfix and efficiency improvements.
132
133 * Thu May 26 2005 charlieb@localhost.localdomain
134 - Initial build.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed