2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-24 18:40:05 +00:00

Merge pull request #4 from neo954/aix720

Rebuild 15 RPM Packages on AIX 72 and AIX 61e
This commit is contained in:
Xiaopeng Wang 2016-01-27 14:32:03 +08:00
commit dbc1286643
34 changed files with 2783 additions and 0 deletions

View File

@ -0,0 +1,11 @@
Build Notes
1. Download curl-7.19.6.tar.bz2 from http://curl.haxx.se/download.html
2. Copy curl-7.19.6.tar.bz2 into /opt/freeware/src/packages/SOURCES/ directory
3. Copy curl.7.19.6.spec to /opt/freeware/src/packages/SPECS/
4. cd to /opt/freeware/src/packages/SPECS
5. Run "rpm -bb curl.7.19.6.spec", which creates:
/opt/freeware/src/packages/RPMS/ppc/curl-7.19.6-1ssl.aix5.3.ppc.rpm and /opt/freeware/src/packages/RPMS/ppc/curl-devel-7.19.6-1ssl.aix5.3.ppc.rpm

View File

@ -0,0 +1,131 @@
# Use --define 'nossl 1' on the command line to disable SSL detection
%{!?nossl:%define SSL 1}
%{?nossl:%define SSL 0}
%define name curl
%define version 7.46.0
%define release 2%{!?nossl:ssl}
%define curlroot %{_builddir}/%{name}-%{version}
Summary: get a file from a FTP or HTTP server.
Name: %{name}
Version: %{version}
Release: %{release}
License: MIT/X derivate
Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
Group: Applications/Internet
Source: %{name}-%{version}.tar.gz
URL: http://curl.haxx.se/
Provides: curl
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prefix: %{_prefix}
%description
curl is a client to get documents/files from servers, using any of the
supported protocols. The command is designed to work without user
interaction or any kind of interactivity.
curl offers many useful tricks like proxy support, user authentication,
ftp upload, HTTP post, file transfer resume and more.
%if %{SSL} == 1
Note: this version is compiled with SSL support.
%else
Note: this version is compiled without SSL support.
%endif
%package devel
Summary: Development files for the curl libary
Group: Development/Libraries
%if %{SSL} == 1
Requires: openssl >= 1.0.1
%endif
Requires: curl = %{version}
Provides: curl-devel
%description devel
libcurl is the core engine of curl; this packages contains all the
libs, headers, and manual pages to develop applications using libcurl.
%define DEFCC xlc
%prep
#rm -rf %{curlroot}
%setup -q
%build
# Use the default compiler for this platform - gcc otherwise
if [[ -z "$CC" ]]
then
if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then
export CC=%{DEFCC}
else
export CC=gcc
fi
fi
cd %{curlroot}
./configure --prefix=%{prefix} \
%if %{SSL} == 1
--with-ssl
%else
--without-ssl
%endif
env -i PATH=$PATH gmake all
%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
env -i PATH=$PATH gmake DESTDIR=%{buildroot} install-strip
( cd $RPM_BUILD_ROOT # same as %{buildroot}
for dir in bin include
do
mkdir -p usr/$dir
cd usr/$dir
ln -sf ../..%{prefix}/$dir/* .
cd -
done
mkdir -p usr/lib
cd usr/lib
ln -sf ../..%{prefix}/lib/* .
cd -
)
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/curl
%attr(0644,root,root) %{_datadir}/man/man1/curl.1*
%{_libdir}/libcurl.a
#%if %{SSL} == 1
#%{_datadir}/curl/curl-ca-bundle.crt
#%endif
%doc CHANGES COPYING README RELEASE-NOTES
%doc docs/BUGS docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/HISTORY
%doc docs/INSTALL docs/KNOWN_BUGS
%doc docs/MANUAL docs/RESOURCES docs/THANKS docs/VERSIONS docs/TODO
%doc docs/TheArtOfHttpScripting
%if %{SSL} == 1
%doc docs/SSLCERTS
%endif
/usr/bin/curl
/usr/lib/libcurl.a
%files devel
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/curl-config
%attr(0644,root,root) %{_datadir}/man/man1/curl-config.1*
%attr(0644,root,root) %{_datadir}/man/man3/*
%attr(0644,root,root) %{_includedir}/curl/*
%{_libdir}/libcurl.la
%doc docs/BINDINGS docs/INTERNALS docs/LICENSE-MIXING
/usr/bin/curl-config
/usr/include/curl

View File

@ -0,0 +1,18 @@
Build notes
download net-snmp-5.7.3.tar.gz from http://www.net-snmp.org/download.html
cp net-snmp-5.7.3.tar.gz /opt/freeware/src/packages/SOURCES
cp net-snmp.5.7.3.spec /opt/freeware/src/packages/SPECS
cp net-snmp-configure.patch /opt/freeware/src/packages/SPECS
cp net-snmp-configure1.patch /opt/freeware/src/packages/SPECS
cp net-snmp-configure2.patch /opt/freeware/src/packages/SPECS
cp net-snmp-ltmain.patch /opt/freeware/src/packages/SPECS
cp net-snmp-libtool.patch /opt/freeware/src/packages/SPECS
run rpm -bb net-snmp.5.7.3.spec
* patch was created using "diff -c net-snmp-5.7.3.orig/net-snmp-5.7.3/dist/find-requires net-snmp-5.7.3/dist/find-requires" command
Will build the following rpms:
net-snmp-5.7.3-1.aix7.2.ppc.rpm
net-snmp-devel-5.7.3-1.aix7.2.ppc.rpm
net-snmp-perl-5.7.3-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,125 @@
*** net-snmp-5.7.2/configure.orig Wed Apr 10 09:43:23 2013
--- net-snmp-5.7.2/configure Wed Apr 10 09:51:13 2013
***************
*** 8845,8853 ****
# whether `pass_all' will *always* work, you probably want this one.
case $host_os in
! aix[4-9]*)
! lt_cv_deplibs_check_method=pass_all
! ;;
beos*)
lt_cv_deplibs_check_method=pass_all
--- 8845,8853 ----
# whether `pass_all' will *always* work, you probably want this one.
case $host_os in
! aix*)
! lt_cv_deplibs_check_method=pass_all
! ;;
beos*)
lt_cv_deplibs_check_method=pass_all
***************
*** 12420,12426 ****
# See if GNU ld supports shared libraries.
case $host_os in
! aix[3-9]*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
--- 12420,12426 ----
# See if GNU ld supports shared libraries.
case $host_os in
! aix*)
# On AIX/PPC, the GNU linker is very broken
if test "$host_cpu" != ia64; then
ld_shlibs=no
***************
*** 12687,12693 ****
fi
;;
! aix[4-9]*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
--- 12687,12693 ----
fi
;;
! aix*)
if test "$host_cpu" = ia64; then
# On IA64, the linker does run time linking by default, so we don't
# have to do anything special.
***************
*** 12709,12715 ****
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
! case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
--- 12709,12715 ----
# Test if we are trying to use run time linking or normal
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
# need to do runtime linking.
! case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]* | aix*)
for ld_flag in $LDFLAGS; do
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
aix_use_runtimelinking=yes
***************
*** 13803,13809 ****
soname_spec='${libname}${release}${shared_ext}$major'
;;
! aix[4-9]*)
version_type=linux
need_lib_prefix=no
need_version=no
--- 13803,13809 ----
soname_spec='${libname}${release}${shared_ext}$major'
;;
! aix*)
version_type=linux
need_lib_prefix=no
need_version=no
***************
*** 15174,15180 ****
fi
;;
! aix[4-9]*)
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
test "$enable_shared" = yes && enable_static=no
fi
--- 15174,15180 ----
fi
;;
! aix*)
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
test "$enable_shared" = yes && enable_static=no
fi
***************
*** 15630,15636 ****
#
case $target_os in
! aix4.2*|aix4.3*|aix5*|aix6*|aix7*)
# Runtime linking flags (AIX)
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker flags to add to enable runtime linking on AIX" >&5
--- 15630,15636 ----
#
case $target_os in
! aix4.2*|aix4.3*|aix5*|aix6*|aix7*|aix*)
# Runtime linking flags (AIX)
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking what linker flags to add to enable runtime linking on AIX" >&5

View File

@ -0,0 +1,19 @@
*** net-snmp-5.7.2/configure.orig Fri Apr 19 16:58:08 2013
--- net-snmp-5.7.2/configure Fri Apr 19 16:59:02 2013
***************
*** 13836,13842 ****
else
# We preserve .a as extension for shared libraries through AIX4.2
# and later when we are not doing run time linking.
! library_names_spec='${libname}${release}.a $libname.a'
soname_spec='${libname}${release}${shared_ext}$major'
fi
shlibpath_var=LIBPATH
--- 13836,13842 ----
else
# We preserve .a as extension for shared libraries through AIX4.2
# and later when we are not doing run time linking.
! library_names_spec='${libname}${release}.a $libname.so $libname.a'
soname_spec='${libname}${release}${shared_ext}$major'
fi
shlibpath_var=LIBPATH

View File

@ -0,0 +1,19 @@
*** net-snmp-5.7.2/m4/libtool.m4.orig Fri Apr 19 16:20:43 2013
--- net-snmp-5.7.2/m4/libtool.m4 Fri Apr 19 16:26:16 2013
***************
*** 2230,2236 ****
else
# We preserve .a as extension for shared libraries through AIX4.2
# and later when we are not doing run time linking.
! library_names_spec='${libname}${release}.a $libname.a'
soname_spec='${libname}${release}${shared_ext}$major'
fi
shlibpath_var=LIBPATH
--- 2230,2236 ----
else
# We preserve .a as extension for shared libraries through AIX4.2
# and later when we are not doing run time linking.
! library_names_spec='${libname}${release}.a $libname.so $libname.so.${release} $libname.so.$major $libname.a'
soname_spec='${libname}${release}${shared_ext}$major'
fi
shlibpath_var=LIBPATH

View File

@ -0,0 +1,104 @@
*** net-snmp-5.7.2/ltmain.sh.orig Thu Apr 11 11:20:03 2013
--- net-snmp-5.7.2/ltmain.sh Thu Apr 11 11:19:46 2013
***************
*** 3011,3017 ****
for linkname
do
test "$linkname" != "$realname" \
! && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
done
fi
--- 3011,3017 ----
for linkname
do
test "$linkname" != "$realname" \
! && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM -f $linkname && $LN_S $realname $linkname; }; })"
done
fi
***************
*** 8262,8268 ****
# Make a backup of the uninstalled library when relinking
if test "$opt_mode" = relink; then
! $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
fi
# Do each of the archive commands.
--- 8262,8268 ----
# Make a backup of the uninstalled library when relinking
if test "$opt_mode" = relink; then
! $opt_dry_run || eval '(cd $output_objdir && $RM -f ${realname}U && $MV $realname ${realname}U)' || exit $?
fi
# Do each of the archive commands.
***************
*** 8528,8534 ****
# Restore the uninstalled library and exit
if test "$opt_mode" = relink; then
( cd "$output_objdir" && \
! $RM "${realname}T" && \
$MV "${realname}U" "$realname" )
fi
--- 8528,8534 ----
# Restore the uninstalled library and exit
if test "$opt_mode" = relink; then
( cd "$output_objdir" && \
! $RM -f "${realname}T" && \
$MV "${realname}U" "$realname" )
fi
***************
*** 8539,8545 ****
# Restore the uninstalled library and exit
if test "$opt_mode" = relink; then
! $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
if test -n "$convenience"; then
if test -z "$whole_archive_flag_spec"; then
--- 8539,8545 ----
# Restore the uninstalled library and exit
if test "$opt_mode" = relink; then
! $opt_dry_run || eval '(cd $output_objdir && $RM -f ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
if test -n "$convenience"; then
if test -z "$whole_archive_flag_spec"; then
***************
*** 8553,8559 ****
# Create links to the real library.
for linkname in $linknames; do
if test "$realname" != "$linkname"; then
! func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
fi
done
--- 8553,8559 ----
# Create links to the real library.
for linkname in $linknames; do
if test "$realname" != "$linkname"; then
! func_show_eval '(cd "$output_objdir" && $RM -f "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
fi
done
***************
*** 9410,9416 ****
# Do a symbolic link so that the libtool archive can be found in
# LD_LIBRARY_PATH before the program is installed.
! func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
;;
esac
exit $EXIT_SUCCESS
--- 9410,9416 ----
# Do a symbolic link so that the libtool archive can be found in
# LD_LIBRARY_PATH before the program is installed.
! func_show_eval '( cd "$output_objdir" && $RM -f "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
;;
esac
exit $EXIT_SUCCESS

View File

@ -0,0 +1,266 @@
#
# 5.4+ enables Perl by default
#
# because perl(Tk) is optional, automatic dependencies will never succeed:
%define _use_internal_dependency_generator 1
%define __find_requires %{_builddir}/net-snmp-%{version}/dist/find-requires
%define __find_provides /usr/lib/rpm/find-provides
%define _perl_dir /usr/opt/perl5
Summary: Tools and servers for the SNMP protocol
Name: net-snmp
Version: 5.7.3
# update release for vendor release. (eg 1.fc6, 1.rh72, 1.ydl3, 1.ydl23)
Release: 3
URL: http://www.net-snmp.org/
License: BSDish
Group: System Environment/Daemons
Vendor: Net-SNMP project
Source: http://prdownloads.sourceforge.net/net-snmp/net-snmp-%{version}.tar.gz
#Prereq: openssl
Obsoletes: cmu-snmp ucd-snmp ucd-snmp-utils
BuildRoot: /tmp/%{name}-root
Packager: The Net-SNMP Coders <http://sourceforge.net/projects/net-snmp/>
#Requires:
BuildRequires: coreutils
Patch0: net-snmp-ltmain.patch
Patch1: net-snmp-configure.patch
#Patch2: net-snmp-configure1.patch
Patch3: net-snmp-configure2.patch
Patch4: net-snmp-libtool.patch
%description
Net-SNMP provides tools and libraries relating to the Simple Network
Management Protocol including: An extensible agent, An SNMP library,
tools to request or set information from SNMP agents, tools to
generate and handle SNMP traps, etc. Using SNMP you can check the
status of a network of computers, routers, switches, servers, ... to
evaluate the state of your network.
%package devel
Group: Development/Libraries
Summary: The includes and static libraries from the Net-SNMP package.
AutoReqProv: no
Requires: net-snmp = %{version}
Obsoletes: cmu-snmp-devel ucd-snmp-devel
%description devel
The net-snmp-devel package contains headers and libraries which are
useful for building SNMP applications, agents, and sub-agents.
%package perl
Group: Development/Libraries
Summary: The perl NET-SNMP module and the mib2c tool
AutoReqProv: no
Requires: %{name} = %{version}
%description perl
The net-snmp-perl package contains the perl files to use SNMP from within
Perl.
Install the net-snmp-perl package, if you want to use mib2c or SNMP with perl.
%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
#%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
export CC=cc_r
export PATH=/usr/vac/bin:$PATH
./configure \
--prefix="/opt/freeware" \
--enable-static=snmptrapd \
--enable-shared \
--with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/opt/freeware/etc/" \
--with-openssl \
--disable-ipv6 \
--enable-local-smux \
--with-sys-location="Unknown" \
--with-sys-contact="root@localhost" \
--with-default-snmp-version="3" \
--with-cflags="-Daix6=aix6 -D_ALL_SOURCE -D_ANSI_C_SOURCE -D_POSIX_SOURCE -qmaxmem=16384 -qnoansialias -DUSE_NATIVE_DLOPEN -DNEED_PTHREAD_INIT -D_LARGE_FILES -qlonglong -q32 -I/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE -I/opt/freeware/lib" \
--libdir="/usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE" \
--libdir="/opt/freeware/lib" \
--mandir="/opt/freeware/man"
#cp libtool libtool.orig
#sed -e "s/hardcode_direct=yes/hardcode_direct=no/" libtool.orig > libtool
chmod +x %{__find_requires}
make -j8 %{?smp_mflags}
%install
#export CC=cc_r
# ----------------------------------------------------------------------
# 'install' sets the current directory to _topdir/BUILD/{name}-{version}
# ----------------------------------------------------------------------
rm -rf $RPM_BUILD_ROOT
make -j8 DESTDIR=%{buildroot} install
# Remove 'snmpinform' from the temporary directory because it is a
# symbolic link, which cannot be handled by the rpm installation process.
%__rm -f $RPM_BUILD_ROOT%{_prefix}/bin/snmpinform
# install the init script
mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
perl -i -p -e 's@/usr/local/share/snmp/@/etc/snmp/@g;s@usr/local@%{_prefix}@g' dist/snmpd-init.d
/opt/freeware/bin/install -m 755 dist/snmpd-init.d $RPM_BUILD_ROOT/etc/rc.d/init.d/snmpd
cp local/mib2c.*.conf ${RPM_BUILD_ROOT}%{_datadir}/snmp
cd perl
make -j8 DESTDIR=%{_perl_dir} install
# remove special files
find $RPM_BUILD_ROOT -name perllocal.pod \
-o -name .packlist \
-o -name "*.bs" \
-o -name Makefile.subs.pl \
| xargs -i rm -f {}
cd ..
# store a copy of installed Perl stuff. It's too complex to predict
find %{_perl_dir} -type f -name "*.a" \
-o -name "*.so" \
-o -name "*.la" | sed 's/^/\//' > net-snmp-perl-files
%post
# ----------------------------------------------------------------------
# The 'post' script is executed just after the package is installed.
# ----------------------------------------------------------------------
# Create the symbolic link 'snmpinform' after all other files have
# been installed.
%__rm -f $RPM_INSTALL_PREFIX/bin/snmpinform
%__ln_s $RPM_INSTALL_PREFIX/bin/snmptrap $RPM_INSTALL_PREFIX/bin/snmpinform
if [ ! -f "$RPM_INSTALL_PREFIX/lib/libperl.a" ]
then
%__ln_s /usr/opt/perl5/lib/5.20.1/aix-thread-multi/CORE/libperl.a $RPM_INSTALL_PREFIX/lib/libperl.a
fi
# run ldconfig
#PATH="$PATH:/sbin" ldconfig -n $RPM_INSTALL_PREFIX/lib
%preun
# ----------------------------------------------------------------------
# The 'preun' script is executed just before the package is erased.
# ----------------------------------------------------------------------
# Remove the symbolic link 'snmpinform' before anything else, in case
# it is in a directory that rpm wants to remove (at present, it isn't).
%__rm -f $RPM_INSTALL_PREFIX/bin/snmpinform
%postun
# ----------------------------------------------------------------------
# The 'postun' script is executed just after the package is erased.
# ----------------------------------------------------------------------
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
# Install the following documentation in _defaultdocdir/{name}-{version}/
%doc AGENT.txt ChangeLog CodingStyle COPYING
%doc EXAMPLE.conf.def FAQ INSTALL NEWS PORTING TODO
%doc README README.agentx README.hpux11 README.krb5
%doc README.snmpv3 README.solaris README.thread README.win32
%doc README.aix README.osX README.tru64 README.irix README.agent-mibs
%doc README.Panasonic_AM3X.txt
%{_datadir}/snmp
%{_bindir}
%{_sbindir}
%{_mandir}/man1/*
# don't include Perl man pages, which start with caps
%{_mandir}/man3/[^A-Z]*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so*
/etc/rc.d/init.d/snmpd
%{_includedir}
#%files -f net-snmp-perl-files devel
%files devel
%defattr(-,root,root)
%files perl
%defattr(-,root,root)
%{_bindir}/mib2c
%{_bindir}/tkmib
%{_perl_dir}/lib/site_perl/5.20.1/aix-thread-multi/*
%attr(0644,root,root) %{_mandir}/man1/mib2c.1
%attr(0644,root,root) %{_mandir}/man1/tkmib.1
%attr(0644,root,root) %{_perl_dir}/man/man3/*SNMP*.3
%verifyscript
echo "No additional verification is done for net-snmp"
%changelog
* Wed Jan 6 2016 Jan GONG Jie <gongjie@linux.vnet.ibm.com>
- Upgrade to net-snmp 5.7.3
- Rebuild on AIX 7.2
* Tue May 6 2008 Jan Safranek <jsafranek@users.sf.net>
- remove %{libcurrent}
- don't use Provides: unless necessary, let rpmbuild compute the provided
libraries
* Tue Jun 30 2007 Thomas Anders <tanders@users.sf.net>
- add "BuildRequires: perl-ExtUtils-Embed", e.g. for Fedora 7
- add --enable-as-needed if building with embedded Perl support
* Wed Nov 23 2006 Thomas Anders <tanders@users.sf.net>
- fixes for 5.4 and 64-bit platforms
- enable Perl by default, but allow for --without perl_modules|embedded_perl
- add netsnmp_ prefix for local defines
* Fri Sep 1 2006 Thomas Anders <tanders@users.sf.net>
- Update to 5.4.dev
- introduce %{libcurrent}
- use new disman/event name
- add: README.aix README.osX README.tru64 README.irix README.agent-mibs
README.Panasonic_AM3X.txt
- add new NetSNMP::agent::Support
* Fri Jan 13 2006 hardaker <hardaker@users.sf.net>
- Update to 5.3.0.1
* Wed Dec 28 2005 hardaker <hardaker@users.sf.net>
- Update to 5.3
* Tue Oct 28 2003 rs <rstory@users.sourceforge.net>
- fix conditional perl build after reading rpm docs
* Sat Oct 4 2003 rs <rstory@users.sourceforge.net> - 5.0.9-4
- fix to build without requiring arguments
- separate embedded perl and perl modules options
- fix fix for init.d script for non-/usr/local installation
* Fri Sep 26 2003 Wes Hardaker <hardaker@users.sourceforge.net>
- fix perl's UseNumeric
- fix init.d script for non-/usr/local installation
* Fri Sep 12 2003 Wes Hardaker <hardaker@users.sourceforge.net>
- fixes for 5.0.9's perl support
* Mon Sep 01 2003 Wes Hardaker <hardaker@users.sourceforge.net>
- added perl support
* Wed Oct 09 2002 Wes Hardaker <hardaker@users.sourceforge.net>
- Incorperated most of Mark Harig's better version of the rpm spec and Makefile
* Wed Oct 09 2002 Wes Hardaker <hardaker@users.sourceforge.net>
- Made it possibly almost usable.
* Mon Apr 22 2002 Robert Story <rstory@users.sourceforge.net>
- created

View File

@ -0,0 +1,14 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the DBD-SQLite.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get DBD-SQLite-1.48.tar.gz from CPAN
cp DBD-SQLite-1.48.tar.gz /opt/freeware/src/packages/SOURCES
cp DBD-SQLite.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb DBD-SQLite.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Debug-trace-1.48.aix7.2.ppc.rpm

View File

@ -0,0 +1,162 @@
#
# - DBD::SQLite -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# DBD-SQLite-1.48.tar.gz -U --tempdir=/tmp/test
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname DBD-SQLite
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 0
name: perl-DBD-SQLite
summary: DBD-SQLite - Self Contained RDBMS in a DBI Driver
version: 1.48
release: 1
vendor: Matt Sergeant <matt@sergeant.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: DBD-SQLite-1.48.tar.gz
%description
SQLite is a public domain RDBMS database engine that you can find
at http://www.hwaci.com/sw/sqlite/.
Rather than ask you to install SQLite first, because SQLite is public
domain, DBD::SQLite includes the entire thing in the distribution. So
in order to get a fast transaction capable RDBMS working for your
perl project you simply have to install this module, and nothing
else.
SQLite supports the following features:
=over 4
=item Implements a large subset of SQL92
See http://www.hwaci.com/sw/sqlite/lang.html for details.
=item A complete DB in a single disk file
Everything for your database is stored in a single disk file, making it
easier to move things around than with DBD::CSV.
=item Atomic commit and rollback
Yes, DBD::SQLite is small and light, but it supports full transactions!
=item Extensible
User-defined aggregate or regular functions can be registered with the
SQL parser.
=back
There's lots more to it, so please refer to the docs on the SQLite web
page, listed above, for SQL details. Also refer to DBI for details
on how to use DBI itself.
#
# 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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Fri Jun 18 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,15 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Get DBI-1.634.tar.gz from CPAN
Use the DBI.spec in this directory ( it was created by running a modified
cpan2rpm to support AIX)
cp DBI-1.634.tar.gz /opt/freeware/src/packages/SOURCES
cp DBI.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb DBI.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-DBI-1.634-1.aix7.2.ppc.rpm

136
AIX/perl-DBI/7.2/DBI.spec Normal file
View File

@ -0,0 +1,136 @@
#
# - DBI -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# /opt/freeware/src/packages/SOURCES/DBI-1.611.tar.gz
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname DBI
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-DBI
summary: DBI - Database independent interface for Perl
version: 1.634
release: 1
vendor: Tim Bunce (dbi-users@perl.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: DBI-1.634.tar.gz
%description
The DBI is a database access module for the Perl programming language. It defines
a set of methods, variables, and conventions that provide a consistent
database interface, independent of the actual database being used.
It is important to remember that the DBI is just an interface.
The DBI is a layer
of "glue" between an application and one or more database *driver*
modules. It is the driver modules which do most of the real work. The DBI
provides a standard interface and framework for the drivers to operate
within.
#
# 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 TODO_2005.txt ex Changes TODO_gofer.txt 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
* Mon, Jan 4 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Wed Jun 16 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,14 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Debug-Trace.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get Debug-Trace-0.05.tar.gz from CPAN
cp Debug-Trace-0.05.tar.gz /opt/freeware/src/packages/SOURCES
cp Debug-Trace.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Debug-Trace.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Debug-trace-0.05.aix7.2.ppc.rpm

View File

@ -0,0 +1,142 @@
#
# - Debug::Trace -
# 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 Debug-Trace
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Debug-Trace
summary: Debug-Trace - Perl extension to trace subroutine calls
version: 0.05
release: 1
vendor: JPC, KANE, JV
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: Debug-Trace-0.05.tar.gz
%description
Debug::Trace instruments subroutines to provide tracing information
upon every call and return.
Using Debug::Trace does not require any changes to your sources. Most
often, it will be used from the command line:
perl -MDebug::Trace=foo,bar yourprogram.pl
This will have your subroutines foo() and bar() printing call and
return information.
Subroutine names may be fully qualified to denote subroutines in other
packages than the default main::.
By default, the trace information is output using the standard warn()
function.
#
# 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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Wed Sep 21 2011 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,13 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Digest-HMAC.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get Digest-HMAC-1.03.tar.gz from CPAN
cp Digest-HMAC-1.03.tar.gz /opt/freeware/src/packages/SOURCES
cp Digest-HMAC.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Digest-HMAC.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Digest-HMAC-1.03-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,134 @@
#
# - Digest::HMAC -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# Digest-HMAC-1.03.tar.gz -U --tempdir=/tmp/test
# 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.03
release: 1
vendor: Gisle Aas <gisle@activestate.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.03.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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Fri Jun 18 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,12 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Digest-MD5.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get Digest-MD5-2.54.tar.gz from cpan.
cp Digest-MD5-2.54.tar.gz /opt/freeware/src/packages/SOURCES
cp Digest-MD5.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Digest-MD5.spec ".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Digest-MD5-2.54-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,141 @@
#
# - Digest::MD5 -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# Digest-MD5-2.54.tar.gz -U --tempdir=/tmp/test
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname Digest-MD5
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Digest-MD5
summary: Digest-MD5 - Perl interface to the MD5 Algorithm
version: 2.54
release: 1
vendor: by Neil Winton <CN.Winton@axion.bt.co.uk>
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-MD5-2.54.tar.gz
%description
The "Digest::MD5" module allows you to use the RSA Data Security
Inc. MD5 Message Digest algorithm from within Perl programs. The
algorithm takes as input a message of arbitrary length and produces as
output a 128-bit "fingerprint" or "message digest" of the input.
Note that the MD5 algorithm is not as strong as it used to be. It has
since 2005 been easy to generate different messages that produce the
same MD5 digest. It still seems hard to generate messages that
produce a given digest, but it is probably wise to move to stronger
algorithms for applications that depend on the digest to uniquely identify
a message.
The "Digest::MD5" 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 rfc1321.txt hints 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Mon Jun 21 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,12 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Digest-SHA.spec in this directory.
( it was created by running a modified cpan2rpm to support AIX)
Get Digest-SHA-5.95.tar.gz from CPAN
cp Digest-SHA-5.95.tar.gz /opt/freeware/src/packages/SOURCES
cp Digest-SHA.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Digest-SHA.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Digest-SHA-5.95-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,191 @@
#
# - Digest::SHA -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# Digest-SHA-5.95.tar.gz -U --tempdir=/tmp/test
# 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.95
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.95.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' . |
# 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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Mon Jun 21 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,12 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Digest-SHA1.spec in this directory.
( it was created by running a modified cpan2rpm to support AIX)
Get Digest-SHA1-2.13.tar.gz from CPAN
cp Digest-SHA1-2.13.tar.gz /opt/freeware/src/packages/SOURCES
cp Digest-SHA1.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Digest-SHA1.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Digest-SHA1-2.13-2.aix7.2.ppc.rpm

View File

@ -0,0 +1,139 @@
#
# - Digest::SHA1 -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# Digest-SHA1-2.13.tar.gz -U --tempdir=/tmp/test1
# 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.13
release: 1
vendor: Gisle Aas <gisle@activestate.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-SHA1-2.13.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.
In 2005, security flaws were identified in SHA-1, namely that a possible
mathematical weakness might exist, indicating that a stronger hash function
would be desirable. The Digest::SHA module implements the stronger
algorithms in the SHA family.
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 hints 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Fri Jun 18 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,12 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the IO-Socket-SSL.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get IO-Socket-SSL-1.38.tar.gz from CPAN
cp IO-Socket-SSL-1.38.tar.gz /opt/freeware/src/packages/SOURCES
cp IO-Socket-SSL.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb IO-Socket-SSL.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-IO-Socket-SSL-1.38-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,144 @@
#
# - IO-Socket-SSL -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# IO-Socket-SSL-1.38.tar.gz -U --tempdir=/tmp/test
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname IO-Socket-SSL
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-IO-Socket-SSL
summary: IO-Socket-SSL - Nearly transparent SSL encapsulation for IO::Socket::INET.
version: 1.38
release: 1
vendor: Steffen Ullrich & Peter Behroozi & Marko Asplund
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: IO-Socket-SSL-1.38.tar.gz
%description
This module is a true drop-in replacement for IO::Socket::INET that uses
SSL to encrypt data before it is transferred to a remote server or
client. IO::Socket::SSL supports all the extra features that one needs
to write a full-featured SSL client or server application: multiple SSL contexts,
cipher selection, certificate verification, and SSL version selection. As an
extra bonus, it works perfectly with mod_perl.
If you have never used SSL before, you should read the appendix labelled 'Using SSL'
before attempting to use this module.
If you have used this module before, read on, as versions 0.93 and above
have several changes from the previous IO::Socket::SSL versions (especially
see the note about return values).
If you are using non-blocking sockets read on, as version 0.98 added better
support for non-blocking.
If you are trying to use it with threads see the BUGS section.
#
# 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 README.Win32 example util Changes patches docs README certs";
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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Mon Jun 21 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,15 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Get IO-Tty-1.12.tar.gz from CPAN
se the IO-Tty.spec in this directory ( it was created by running a modified
cpan2rpm to support AIX)
cp IO-Tty-1.12.tar.gz /opt/freeware/src/packages/SOURCES
cp IO-Tty.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb IO-Tty.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/IO-Tty-1.12-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,156 @@
#
# - IO::Tty -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# IO-Tty-1.12.tar.gz --U --tempdir=/tmp/test
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname IO-Tty
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-IO-Tty
summary: IO-Tty - Pseudo ttys and constants
version: 1.12
release: 1
vendor: Roland Giersig <RGiersig@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: IO-Tty-1.12.tar.gz
%description
"IO::Tty" is used internally by "IO::Pty" to create a pseudo-tty.
You wouldn't want to use it directly except to import constants, use
"IO::Pty". For a list of importable constants, see
IO::Tty::Constant.
Windows is now supported, but ONLY under the Cygwin
environment, see <http://sources.redhat.com/cygwin/>.
Please note that pty creation is very system-dependend. From my
experience, any modern POSIX system should be fine. Find below a list
of systems that "IO::Tty" should work on. A more detailed table
(which is slowly getting out-of-date) is available from the project
pages document manager at SourceForge
<http://sourceforge.net/projects/expectperl/>.
If you have problems on your system and your system is listed in the
"verified" list, you probably have some non-standard setup, e.g. you
compiled your Linux-kernel yourself and disabled ptys (bummer!).
Please ask your friendly sysadmin for help.
If your system is not listed, unpack the latest version of "IO::Tty",
do a 'perl Makefile.PL; make; make test; uname -a' and send me
(RGiersig@cpan.org) the results and I'll see what I can deduce from
that. There are chances that it will work right out-of-the-box...
If it's working on your system, please send me a short note with
details (version number, distribution, etc. 'uname -a' and 'perl -V'
is a good start; also, the output from "perl Makefile.PL" contains a
lot of interesting info, so please include that as well) so I can get
an overview. Thanks!
#
# 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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Thu Jun 17 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,12 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Net-DNS.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get Net-DNS-1.04.tar.gz from CPAN
cp Net-DNS-1.04.tar.gz /opt/freeware/src/packages/SOURCES
cp Net-DNS.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Net-DNS.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Net-DNS-1.04-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,134 @@
#
# - Net::DNS -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# Net-DNS-1.04.tar.gz -U --tempdir=/tmp/test
# 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: 1.04
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-1.04.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 \
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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Mon Jun 21 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,12 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Net-IP.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get Net-IP-1.26.tar.gz from CPAN
cp Net-IP-1.26.tar.gz /opt/freeware/src/packages/SOURCES
cp Net-IP.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Net-IP.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Net-IP-1.26-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,131 @@
#
# - Net::IP -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# Net-IP-1.26.tar.gz -U --tempdir=/tmp/test
# 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 - Perl extension for manipulating IPv4/IPv6 addresses
version: 1.26
release: 1
vendor: Manuel Valente <manuel.valente@gmail.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: Net-IP-1.26.tar.gz
%description
This module provides functions to deal with IPv4/IPv6 addresses. The module
can be used as a class, allowing the user to instantiate IP objects, which can
be single IP addresses, prefixes, or ranges of addresses. There is also a
procedural way of accessing most of the functions. Most subroutines can take
either IPv4 or IPv6 addresses transparently.
#
# 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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Mon Jun 21 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,12 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Use the Net-Telnet.spec in this directory
( it was created by running a modified cpan2rpm to support AIX)
Get Net-Telnet-3.04.tar.gz from CPAN
cp Net-Telnet-3.04.tar.gz /opt/freeware/src/packages/SOURCES
cp Net-Telnet.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb Net-Telnet.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/perl-Net-Telnet-3.04-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,176 @@
#
# - Net-Telnet -
# This spec file was automatically generated by cpan2rpm [ver: 2.028]
# The following arguments were used:
# Net-Telnet-3.04.tar.gz -U --tempdir=/tmp/test
# For more information on cpan2rpm please visit: http://perl.arix.com/
#
%define pkgname Net-Telnet
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-Net-Telnet
summary: Net-Telnet - Interact with TELNET port or other TCP ports
version: 3.04
release: 1
vendor: Jay Rogers <jay@rgrs.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: Net-Telnet-3.04.tar.gz
%description
Net::Telnet allows you to make client connections to a TCP port and do
network I/O, especially to a port using the TELNET protocol. Simple
I/O methods such as print, get, and getline are provided. More
sophisticated interactive features are provided because connecting to
a TELNET port ultimately means communicating with a program designed
for human interaction. These interactive features include the ability
to specify a time-out and to wait for patterns to appear in the input
stream, such as the prompt from a shell.
Other reasons to use this module than strictly with a TELNET port are:
=over 2
=item *
You're not familiar with sockets and you want a simple way to make
client connections to TCP services.
=item *
You want to be able to specify your own time-out while connecting,
reading, or writing.
=item *
You're communicating with an interactive program at the other end of
some socket or pipe and you want to wait for certain patterns to
appear.
=back
Here's an example that prints who's logged-on to the remote host
sparky. In addition to a username and password, you must also know
the user's shell prompt, which for this example is "bash$"
use Net::Telnet ();
$t = new Net::Telnet (Timeout => 10,
Prompt => '/bash\$ $/');
$t->open("sparky");
$t->login($username, $passwd);
@lines = $t->cmd("who");
print @lines;
More examples are in the EXAMPLES section below.
Usage questions should be directed to the Usenet newsgroup
comp.lang.perl.modules.
Contact me, Jay Rogers <jay@rgrs.com>, if you find any bugs or have
suggestions for improvement.
#
# 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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Rebuild on AIX 7.2
* Tue Jun 22 2010 root@c114m4h1p04.ppd.pok.ibm.com
- Initial build.

View File

@ -0,0 +1,15 @@
Build Notes
Need cc_r compiler installed on AIX build system.
Get XML-Simple-2.22.tar.gz from CPAN
se the XML-Simple.spec in this directory ( it was created by running a modified
cpan2rpm to support AIX)
cp XML-Simple-2.22.tar.gz /opt/freeware/src/packages/SOURCES
cp XML-Simple.spec /opt/freeware/src/packages/SPECS
Run "rpm -bb XML-Simple.spec".
- which creates: /opt/freeware/src/packages/RPMS/ppc/XML-Simple-2.22-1.aix7.2.ppc.rpm

View File

@ -0,0 +1,134 @@
#
# - XML::Simple -
# 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 XML-Simple
%define filelist %{pkgname}-%{version}-filelist
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
name: perl-XML-Simple
summary: XML-Simple - Easy API to maintain XML (esp config files)
version: 2.22
release: 1
vendor: Grant McLean <grantm@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: XML-Simple-2.22.tar.gz
%description
The XML::Simple module provides a simple API layer on top of an underlying XML
parsing module (either XML::Parser or one of the SAX2 parser modules). Two
functions are exported: "XMLin()" and "XMLout()". Note: you can explicity
request the lower case versions of the function names: "xml_in()" and
"xml_out()".
The simplest approach is to call these two functions directly, but an
optional object oriented interface (see "OPTIONAL OO INTERFACE" below)
allows them to be called as methods of an XML::Simple object. The object
interface can also be used at either end of a SAX pipeline.
#
# 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 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
* Mon, 04 Jan 2016 gongjie@linux.vnet.ibm.com
- Initial build on AIX 7.2