2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-21 17:11:45 +00:00

Add new rpms for AIX.

Former-commit-id: 56f59875c774217083e838b493ab8ae4f2114c8e
This commit is contained in:
nott 2010-04-01 12:22:40 +00:00
parent 7091365fdf
commit 50e828ebdb
11 changed files with 799 additions and 19 deletions

View File

@ -44,32 +44,35 @@ Available from dep-aix-*.tar.gz.
11. perl-IO-Stty-.02-1
12. perl-Net_SSLeay.pm-1.30-1
13. perl-Digest-MD5-2.36-1
14. perl-Expect-1.21-1
15. fping-2.2b1-1
16. openslp-xcat-1.2.1-1
17. perl-Crypt-SSLeay-0.57-1
18. perl-Net-Telnet-3.03-1.2
19. net-snmp-5.4.2.1-1
20. net-snmp-devel-5.4.2.1-1
21. net-snmp-perl-5.4.2.1-1
22. bash-3.2-1.aix5.2.ppc.rpm
23. rsync-2.6.2-1.aix5.1.ppc.rpm
24. libxml2-2.6.21-4.aix5.2.ppc.rpm
25. wget-1.9.1-1.aix5.1.ppc.rpm
26. curl-7.19.6-1ssl.aix5.3.ppc.rpm
27. unixODBC-2.2.15-32bit.aix5.3.ppc.rpm
28. expat-2.0.1-2.aix5.1.ppc.rpm
29. popt-1.7-2.aix5.1.ppc.rpm
14. perl-Digest-SHA-5.48-1.aix5.3.ppc.rpm
15. perl-Digest-SHA1-2.11-1.aix5.3.ppc.rpm
16. perl-Digest-HMAC-1.01-1.aix5.3.ppc.rpm
17. perl-Expect-1.21-1
18. fping-2.2b1-1
19. openslp-xcat-1.2.1-1
20. perl-Crypt-SSLeay-0.57-1
21. perl-Net-Telnet-3.03-1.2
22. net-snmp-5.4.2.1-1
23. net-snmp-devel-5.4.2.1-1
24. net-snmp-perl-5.4.2.1-1
25. bash-3.2-1.aix5.2.ppc.rpm
26. rsync-2.6.2-1.aix5.1.ppc.rpm
27. libxml2-2.6.21-4.aix5.2.ppc.rpm
28. wget-1.9.1-1.aix5.1.ppc.rpm
29. curl-7.19.6-1ssl.aix5.3.ppc.rpm
30. unixODBC-2.2.15-32bit.aix5.3.ppc.rpm
31. expat-2.0.1-2.aix5.1.ppc.rpm
32. popt-1.7-2.aix5.1.ppc.rpm
Optional
Available from xcat-mysql-*.tar.gz.
30. perl-DBD-mysql-4.007-1
31. xcat-mysql-5.0-1 (mysql-5.1-37)
33. perl-DBD-mysql-4.007-1
34. xcat-mysql-5.0-1 (mysql-5.1-37)
NOTE: This is a newer version of MySQL then was shipped in previous
tarballs. If you have an earlier version installed you must follow
the migration instructions in the xCAT documentation to upgrade
to this newer version!!!
32. xcat-mysql-connector-odbc-3.51-27.aix5.3.ppc.rpm
35. xcat-mysql-connector-odbc-3.51-27.aix5.3.ppc.rpm
When you are ready to install the RPM packages contained in the
dep-aix-2.2-snap*.tar.gz tar file you can run the "instoss" script,

View File

@ -0,0 +1,18 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Download Digest-HMAC-1.01.tar.gz from CPAN.
Unwrap the tar file. (gunzip & tar -xvf )
Go to the subdirectory containing the Makefile and run "cpan2rpm ."
This will eventually fail but it does produce a spec file.
Modify the spec file and put it in /opt/freeware/src/packages/SPECS.
Put the gz file in /opt/freeware/src/packages/SOURCES.
The modified file is in this directory.
Run "rpm -bb Digest-HMAC.spec", which creates:
/opt/freeware/src/packages/RPMS/perl-Digest-HMAC-1.01-1.aix5.3.ppc.rpm

View File

@ -0,0 +1,132 @@
#
# - Digest::HMAC -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# .
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname Digest-HMAC
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Digest-HMAC
summary: Digest-HMAC - Keyed-Hashing for Message Authentication
version: 1.01
release: 1
vendor: Graham Barr <gbarr@ti.com,>
packager: Arix International <cpan2rpm@arix.com>
license: Artistic
group: Applications/CPAN
url: http://www.cpan.org
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: ppc
prefix: %(echo %{_prefix})
source: Digest-HMAC-1.01.tar.gz
%description
HMAC is used for message integrity checks between two parties that
share a secret key, and works in combination with some other Digest
algorithm, usually MD5 or SHA-1. The HMAC mechanism is described in
RFC 2104.
HMAC follow the common "Digest::" interface, but the constructor
takes the secret key and the name of some other simple "Digest::"
as argument.
#
# This package was generated automatically with the cpan2rpm
# utility. To get this software or for more information
# please visit: http://perl.arix.com/
#
%prep
%setup -q -n %{pkgname}-%{version}
chmod -R u+w %{_builddir}/%{pkgname}-%{version}
%build
grep -rsl '^#!.*perl' . |
# grep -v '.bak$' |xargs --no-run-if-empty \
grep -v '.bak$' |xargs \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
%{__make}
%if %maketest
%{__make} test
%endif
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
cmd=/usr/share/spec-helper/compress_files
[ -x $cmd ] || cmd=/usr/lib/rpm/brp-compress
[ -x $cmd ] && $cmd
# SuSE Linux
# if [ -e /etc/SuSE-release -o -e /etc/UnitedLinux-release ]
# then
# %{__mkdir_p} %{buildroot}/var/adm/perl-modules
# %{__cat} `find %{buildroot} -name "perllocal.pod"` \
# | %{__sed} -e s+%{buildroot}++g \
# > %{buildroot}/var/adm/perl-modules/%{name}
# fi
# remove special files
find %{buildroot} -name "perllocal.pod" \
-o -name ".packlist" \
-o -name "*.bs" \
|xargs -i rm -f {}
# no empty directories
# find %{buildroot}%{_prefix} \
# -type d -depth \
# -exec rmdir {} \; 2>/dev/null
%{__perl} -MFile::Find -le '
find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
print "%doc rfc2104.txt Changes README";
for my $x (sort @dirs, @files) {
push @ret, $x unless indirs($x);
}
print join "\n", sort @ret;
sub wanted {
return if /auto$/;
local $_ = $File::Find::name;
my $f = $_; s|^\Q%{buildroot}\E||;
return unless length;
return $files[@files] = $_ if -f $f;
$d = $_;
/\Q$d\E/ && return for reverse sort @INC;
$d =~ /\Q$_\E/ && return
for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|;
$dirs[@dirs] = $_;
}
sub indirs {
my $x = shift;
$x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs;
}
' > %filelist
[ -z %filelist ] && {
echo "ERROR: empty %files listing"
exit -1
}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files -f %filelist
%defattr(-,root,root)
%changelog
* Thu Jun 14 2007 root@c68m3hvp01.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,18 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Download Digest-SHA-5.48.tar.gz from CPAN.
Unwrap the tar file. (gunzip & tar -xvf )
Go to the subdirectory containing the Makefile and run "cpan2rpm ."
This will eventually fail but it does produce a spec file.
Modify the spec file and put it in /opt/freeware/src/packages/SPECS.
Put the gz file in /opt/freeware/src/packages/SOURCES.
Modify the spec file. (The modified file is in this directory.)
Run "rpm -bb Digest-SHA.spec", which creates:
/opt/freeware/src/packages/RPMS/ppc/perl-Digest-SHA-5.48-1.aix5.3.ppc.rpm

View File

@ -0,0 +1,193 @@
#
# - Digest::SHA -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# .
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname Digest-SHA
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Digest-SHA
summary: Digest-SHA - Perl extension for SHA-1/224/256/384/512
version: 5.48
release: 1
vendor: Mark Shelor <mshelor@cpan.org>
packager: Arix International <cpan2rpm@arix.com>
license: Artistic
group: Applications/CPAN
url: http://www.cpan.org
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: ppc
prefix: %(echo %{_prefix})
source: Digest-SHA-5.48.tar.gz
%description
Digest::SHA is written in C for speed. If your platform lacks a
C compiler, you can install the functionally equivalent (but much
slower) Digest::SHA::PurePerl module.
The programming interface is easy to use: it's the same one found
in CPAN's Digest module. So, if your applications currently
use Digest::MD5 and you'd prefer the stronger security of SHA,
it's a simple matter to convert them.
The interface provides two ways to calculate digests: all-at-once,
or in stages. To illustrate, the following short program computes
the SHA-256 digest of "hello world" using each approach:
use Digest::SHA qw(sha256_hex);
$data = "hello world";
@frags = split(//, $data);
# all-at-once (Functional style)
$digest1 = sha256_hex($data);
# in-stages (OOP style)
$state = Digest::SHA->new(256);
for (@frags) { $state->add($_) }
$digest2 = $state->hexdigest;
print $digest1 eq $digest2 ?
"whew!\n" : "oops!\n";
To calculate the digest of an n-bit message where *n* is not a
multiple of 8, use the *add_bits()* method. For example, consider
the 446-bit message consisting of the bit-string "110" repeated
148 times, followed by "11". Here's how to display its SHA-1
digest:
use Digest::SHA;
$bits = "110" x 148 . "11";
$sha = Digest::SHA->new(1)->add_bits($bits);
print $sha->hexdigest, "\n";
Note that for larger bit-strings, it's more efficient to use the
two-argument version *add_bits($data, $nbits)*, where *$data* is
in the customary packed binary format used for Perl strings.
The module also lets you save intermediate SHA states to disk, or
display them on standard output. The *dump()* method generates
portable, human-readable text describing the current state of
computation. You can subsequently retrieve the file with *load()*
to resume where the calculation left off.
To see what a state description looks like, just run the following:
use Digest::SHA;
Digest::SHA->new->add("Shaw" x 1962)->dump;
As an added convenience, the Digest::SHA module offers routines to
calculate keyed hashes using the HMAC-SHA-1/224/256/384/512
algorithms. These services exist in functional form only, and
mimic the style and behavior of the *sha()*, *sha_hex()*, and
*sha_base64()* functions.
# Test vector from draft-ietf-ipsec-ciph-sha-256-01.txt
use Digest::SHA qw(hmac_sha256_hex);
print hmac_sha256_hex("Hi There", chr(0x0b) x 32), "\n";
#
# This package was generated automatically with the cpan2rpm
# utility. To get this software or for more information
# please visit: http://perl.arix.com/
#
%prep
%setup -q -n %{pkgname}-%{version}
chmod -R u+w %{_builddir}/%{pkgname}-%{version}
%build
grep -rsl '^#!.*perl' . |
# modified
#grep -v '.bak$' |xargs --no-run-if-empty \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
%{__make}
%if %maketest
%{__make} test
%endif
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
cmd=/usr/share/spec-helper/compress_files
[ -x $cmd ] || cmd=/usr/lib/rpm/brp-compress
[ -x $cmd ] && $cmd
# modified
# SuSE Linux
#if [ -e /etc/SuSE-release -o -e /etc/UnitedLinux-release ]
#then
# %{__mkdir_p} %{buildroot}/var/adm/perl-modules
# %{__cat} `find %{buildroot} -name "perllocal.pod"` \
# | %{__sed} -e s+%{buildroot}++g \
# > %{buildroot}/var/adm/perl-modules/%{name}
#fi
# remove special files
find %{buildroot} -name "perllocal.pod" \
-o -name ".packlist" \
-o -name "*.bs" \
|xargs -i rm -f {}
#modified
# no empty directories
#find %{buildroot}%{_prefix} \
# -type d -depth \
# -exec rmdir {} \; 2>/dev/null
%{__perl} -MFile::Find -le '
find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
print "%doc src Changes examples README";
for my $x (sort @dirs, @files) {
push @ret, $x unless indirs($x);
}
print join "\n", sort @ret;
sub wanted {
return if /auto$/;
local $_ = $File::Find::name;
my $f = $_; s|^\Q%{buildroot}\E||;
return unless length;
return $files[@files] = $_ if -f $f;
$d = $_;
/\Q$d\E/ && return for reverse sort @INC;
$d =~ /\Q$_\E/ && return
for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|;
$dirs[@dirs] = $_;
}
sub indirs {
my $x = shift;
$x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs;
}
' > %filelist
[ -z %filelist ] && {
echo "ERROR: empty %files listing"
exit -1
}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files -f %filelist
%defattr(-,root,root)
%changelog
* Tue Mar 30 2010 root@c68m3hvp01.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,18 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Download Digest-SHA1-2.11.tar.gz from CPAN.
Unwrap the tar file. (gunzip & tar -xvf )
Go to the subdirectory containing the Makefile and run "cpan2rpm ."
This will eventually fail but it does produce a spec file.
Modify the spec file and put it in /opt/freeware/src/packages/SPECS.
Put the gz file in /opt/freeware/src/packages/SOURCES.
The modified file is in this directory.
Run "rpm -bb Digest-SHA1.spec", which creates:
/opt/freeware/src/packages/RPMS/ppc/perl-Digest-SHA1-2.11-1.aix5.3.ppc.rpm

View File

@ -0,0 +1,132 @@
#
# - Digest::SHA1 -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# .
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname Digest-SHA1
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Digest-SHA1
summary: Digest-SHA1 - Perl interface to the SHA-1 algorithm
version: 2.11
release: 1
vendor: GutmannUwe Hollerbach <uh@alumni.caltech.edu,>
packager: Arix International <cpan2rpm@arix.com>
license: Artistic
group: Applications/CPAN
url: http://www.cpan.org
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: ppc
prefix: %(echo %{_prefix})
source: Digest-SHA1-2.11.tar.gz
%description
The "Digest::SHA1" module allows you to use the NIST SHA-1 message
digest algorithm from within Perl programs. The algorithm takes as
input a message of arbitrary length and produces as output a 160-bit
"fingerprint" or "message digest" of the input.
The "Digest::SHA1" module provide a procedural interface for simple
use, as well as an object oriented interface that can handle messages
of arbitrary length and which can read files directly.
#
# This package was generated automatically with the cpan2rpm
# utility. To get this software or for more information
# please visit: http://perl.arix.com/
#
%prep
%setup -q -n %{pkgname}-%{version}
chmod -R u+w %{_builddir}/%{pkgname}-%{version}
%build
grep -rsl '^#!.*perl' . |
# grep -v '.bak$' |xargs --no-run-if-empty \
grep -v '.bak$' |xargs \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
%{__make}
%if %maketest
%{__make} test
%endif
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
cmd=/usr/share/spec-helper/compress_files
[ -x $cmd ] || cmd=/usr/lib/rpm/brp-compress
[ -x $cmd ] && $cmd
# SuSE Linux
# if [ -e /etc/SuSE-release -o -e /etc/UnitedLinux-release ]
# then
# %{__mkdir_p} %{buildroot}/var/adm/perl-modules
# %{__cat} `find %{buildroot} -name "perllocal.pod"` \
# | %{__sed} -e s+%{buildroot}++g \
# > %{buildroot}/var/adm/perl-modules/%{name}
# fi
# remove special files
find %{buildroot} -name "perllocal.pod" \
-o -name ".packlist" \
-o -name "*.bs" \
|xargs -i rm -f {}
# no empty directories
# find %{buildroot}%{_prefix} \
# -type d -depth \
# -exec rmdir {} \; 2>/dev/null
%{__perl} -MFile::Find -le '
find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
print "%doc fip180-1.html Changes README";
for my $x (sort @dirs, @files) {
push @ret, $x unless indirs($x);
}
print join "\n", sort @ret;
sub wanted {
return if /auto$/;
local $_ = $File::Find::name;
my $f = $_; s|^\Q%{buildroot}\E||;
return unless length;
return $files[@files] = $_ if -f $f;
$d = $_;
/\Q$d\E/ && return for reverse sort @INC;
$d =~ /\Q$_\E/ && return
for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|;
$dirs[@dirs] = $_;
}
sub indirs {
my $x = shift;
$x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs;
}
' > %filelist
[ -z %filelist ] && {
echo "ERROR: empty %files listing"
exit -1
}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files -f %filelist
%defattr(-,root,root)
%changelog
* Thu Jun 14 2007 root@c68m3hvp01.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,18 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Download Net-DNS-0.66.tar.gz from CPAN.
Unwrap the tar file. (gunzip & tar -xvf )
Go to the subdirectory containing the Makefile and run "cpan2rpm ."
This will eventually fail but it does produce a spec file.
Modify the spec file and put it in /opt/freeware/src/packages/SPECS.
Put the gz file in /opt/freeware/src/packages/SOURCES.
The modified file is in this directory.
Run "rpm -bb Net-DNS.spec", which creates:
/opt/freeware/src/packages/RPMS/perl-Net-DNS-0.66-1.aix5.3.ppc.rpm

View File

@ -0,0 +1,120 @@
#
# - Net::DNS -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# .
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname Net-DNS
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Net-DNS
summary: Net-DNS - Perl DNS resolver module
version: 0.66
release: 1
vendor: Olaf Kolkman <olaf@net-dns.org>
packager: Arix International <cpan2rpm@arix.com>
license: Artistic
group: Applications/CPAN
url: http://www.cpan.org
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: ppc
prefix: %(echo %{_prefix})
source: Net-DNS-0.66.tar.gz
%description
Net::DNS is a collection of Perl modules that act as a Domain
Name System (DNS) resolver. It allows the programmer to perform
DNS queries that are beyond the capabilities of "gethostbyname"
and "gethostbyaddr".
The programmer should be somewhat familiar with the format of
a DNS packet and its various sections. See RFC 1035 or
*DNS and BIND* (Albitz & Liu) for details.
#
# This package was generated automatically with the cpan2rpm
# utility. To get this software or for more information
# please visit: http://perl.arix.com/
#
%prep
%setup -q -n %{pkgname}-%{version}
chmod -R u+w %{_builddir}/%{pkgname}-%{version}
%build
grep -rsl '^#!.*perl' . |
#grep -v '.bak$' |xargs --no-run-if-empty \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
%{__make}
%if %maketest
%{__make} test
%endif
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
cmd=/usr/share/spec-helper/compress_files
[ -x $cmd ] || cmd=/usr/lib/rpm/brp-compress
[ -x $cmd ] && $cmd
# remove special files
find %{buildroot} -name "perllocal.pod" \
-o -name ".packlist" \
-o -name "*.bs" \
|xargs -i rm -f {}
%{__perl} -MFile::Find -le '
find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
print "%doc TODO demo contrib Changes README";
for my $x (sort @dirs, @files) {
push @ret, $x unless indirs($x);
}
print join "\n", sort @ret;
sub wanted {
return if /auto$/;
local $_ = $File::Find::name;
my $f = $_; s|^\Q%{buildroot}\E||;
return unless length;
return $files[@files] = $_ if -f $f;
$d = $_;
/\Q$d\E/ && return for reverse sort @INC;
$d =~ /\Q$_\E/ && return
for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|;
$dirs[@dirs] = $_;
}
sub indirs {
my $x = shift;
$x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs;
}
' > %filelist
[ -z %filelist ] && {
echo "ERROR: empty %files listing"
exit -1
}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files -f %filelist
%defattr(-,root,root)
%changelog
* Tue Mar 30 2010 root@c68m3hvp01.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,23 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Download Net-IP-1.25.tar.gz from CPAN.
Unwrap the tar file. (gunzip & tar -xvf )
Go to the subdirectory containing the Makefile and run "cpan2rpm ."
This will eventually fail but it does produce a spec file.
Modify the spec file and put it in /opt/freeware/src/packages/SPECS.
Put the gz file in /opt/freeware/src/packages/SOURCES.
Note: cpan2rpm produced a spec file that was different than all the other
cpan spec files. I could not build the rpm with it. Instead I copied
the standard spec file from the Net-DNS package and modified the names etc.
This spec file worked.
The modified file is in this directory.
Run "rpm -bb Net-IP.spec", which creates:
/opt/freeware/src/packages/RPMS/ppc/perl-Net-IP-1.25-1.aix5.3.ppc.rpm

105
AIX/perl-Net-IP/Net-IP.spec Normal file
View File

@ -0,0 +1,105 @@
#
# - Net::IP -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# .
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname Net-IP
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Net-IP
summary: Net-IP
version: 1.25
release: 1
license: Artistic
group: Development/Languages
url: http://www.cpan.org
buildroot: %{_tmppath}/%{name}-%{version}-%(id -u -n)
buildarch: ppc
prefix: %(echo %{_prefix})
source: Net-IP-1.25.tar.gz
%description
IP - Perl extension for manipulating IPv4/IPv6 addresses
%prep
%setup -q -n %{pkgname}-%{version}
chmod -R u+w %{_builddir}/%{pkgname}-%{version}
%build
grep -rsl '^#!.*perl' . |
#grep -v '.bak$' |xargs --no-run-if-empty \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="$RPM_OPT_FLAGS"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '`
%{__make}
%if %maketest
%{__make} test
%endif
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
cmd=/usr/share/spec-helper/compress_files
[ -x $cmd ] || cmd=/usr/lib/rpm/brp-compress
[ -x $cmd ] && $cmd
# remove special files
find %{buildroot} -name "perllocal.pod" \
-o -name ".packlist" \
-o -name "*.bs" \
|xargs -i rm -f {}
%{__perl} -MFile::Find -le '
find({ wanted => \&wanted, no_chdir => 1}, "%{buildroot}");
print "%doc TODO demo contrib Changes README";
for my $x (sort @dirs, @files) {
push @ret, $x unless indirs($x);
}
print join "\n", sort @ret;
sub wanted {
return if /auto$/;
local $_ = $File::Find::name;
my $f = $_; s|^\Q%{buildroot}\E||;
return unless length;
return $files[@files] = $_ if -f $f;
$d = $_;
/\Q$d\E/ && return for reverse sort @INC;
$d =~ /\Q$_\E/ && return
for qw|/etc %_prefix/man %_prefix/bin %_prefix/share|;
$dirs[@dirs] = $_;
}
sub indirs {
my $x = shift;
$x =~ /^\Q$_\E\// && $x ne $_ && return 1 for @dirs;
}
' > %filelist
[ -z %filelist ] && {
echo "ERROR: empty %files listing"
exit -1
}
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files -f %filelist
%defattr(-,root,root)
%changelog
* Tue Mar 30 2010 root@c68m3hvp01.ppd.pok.ibm.com
- Initial build.