RPMS for Perl Modules

James A. Pattie james at PCXPERIENCE.COM
Tue Feb 19 20:23:05 GMT 2002


In order to make the rpm install cleaner, I have created spec files for
the perl modules that are being manually installed in the current rpm.

The rpms will be named perl-<Module Name> since this is the naming
scheme that RedHat is using.

The module versions I created for were the latest as found on CPAN.

        File-Spec 0.82  (when you install this rpm you will have to use --force
as it will conflict with perl 5.6.0's File-Spec 0.8 install)
        IO-stringy 2.108
        MailTools 1.43
        MIME-tools 5.411a
        MIME-Base64 2.12

If mailscanner needs an older version (that I can get my hands on) then
I can downgrade the spec files for the older versions.

It would be cool if the Source RPM actually built the final rpm based
upon a source tarball and relied on having these rpms installed in the
system.  I am willing to help revamp the RPM build process in this regard.

--
James A. Pattie
james at pcxperience.com

Linux  --  SysAdmin / Programmer
PC & Web Xperience, Inc.
http://www.pcxperience.com/
-------------- next part --------------
Summary: Perl Module that Provides File-Spec.
Name: perl-File-Spec
Version: 0.82
Release: 1
Copyright: distributable
Group: Applications/CPAN
Source: File-Spec-%{version}.tar.gz
URL: http://www.cpan.org/
Vendor: PC & Web Xperience, Inc.
Packager: James A. Pattie <james at pcxperience.com>
BuildRoot: /var/tmp/perl-File-Spec-%{version}-buildroot/
BuildRequires: perl >= 5.6
Requires: perl >= 5.6

%description
This provides perl-File-Spec support.

# Provide perl-specific find-{provides, requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl

%prep
%setup -q -n File-Spec-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%clean
rm -rf $RPM_BUILD_ROOT

%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
make PREFIX=$RPM_BUILD_ROOT/usr install

[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress

find $RPM_BUILD_ROOT/usr -type f -print |
        sed "s@^$RPM_BUILD_ROOT@@g" |
        grep -v perllocal.pod |
        grep -v "\.packlist" > perl-File-Spec-%{version}-filelist
if [ "$(cat perl-File-Spec-%{version}-filelist)X" = "X" ] ; then
    echo "ERROR: EMPTY FILE LIST"
    exit -1
fi

%files -f perl-File-Spec-%{version}-filelist
%defattr(-,root,root)
%doc CHANGES
%doc README
%doc README.demos
%doc t

%changelog
* Tue Feb 19 2002 James A. Pattie <james at pcxperience.com>
- First version of spec file created.
-------------- next part --------------
Summary: Perl Module that Provides MIME-Base64.
Name: perl-MIME-Base64
Version: 2.12
Release: 1
Copyright: distributable
Group: Applications/CPAN
Source: MIME-Base64-%{version}.tar.gz
URL: http://www.cpan.org/
Vendor: PC & Web Xperience, Inc.
Packager: James A. Pattie <james at pcxperience.com>
BuildRoot: /var/tmp/perl-MIME-Base64-%{version}-buildroot/
BuildRequires: perl >= 5.6
Requires: perl >= 5.6

%description
This provides perl-MIME-Base64 support.

# Provide perl-specific find-{provides, requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl

%prep
%setup -q -n MIME-Base64-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%clean
rm -rf $RPM_BUILD_ROOT

%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
make PREFIX=$RPM_BUILD_ROOT/usr install

[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress

find $RPM_BUILD_ROOT/usr -type f -print |
        sed "s@^$RPM_BUILD_ROOT@@g" |
        grep -v perllocal.pod |
        grep -v "\.packlist" > perl-MIME-Base64-%{version}-filelist
if [ "$(cat perl-MIME-Base64-%{version}-filelist)X" = "X" ] ; then
    echo "ERROR: EMPTY FILE LIST"
    exit -1
fi

%files -f perl-MIME-Base64-%{version}-filelist
%defattr(-,root,root)
%doc Changes
%doc README
%doc t

%changelog
* Wed Oct 10 2001 James A. Pattie <james at pcxperience.com>
- First version of spec file created.
-------------- next part --------------
Summary: Perl Module that Provides IO-stringy.
Name: perl-IO-stringy
Version: 2.108
Release: 1
Copyright: distributable
Group: Applications/CPAN
Source: IO-stringy-%{version}.tar.gz
URL: http://www.cpan.org/
Vendor: PC & Web Xperience, Inc.
Packager: James A. Pattie <james at pcxperience.com>
BuildRoot: /var/tmp/perl-IO-stringy-%{version}-buildroot/
BuildRequires: perl >= 5.6
Requires: perl >= 5.6

%description
This provides perl-IO-stringy support.

# Provide perl-specific find-{provides, requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl

%prep
%setup -q -n IO-stringy-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%clean
rm -rf $RPM_BUILD_ROOT

%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
make PREFIX=$RPM_BUILD_ROOT/usr install

[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress

find $RPM_BUILD_ROOT/usr -type f -print |
        sed "s@^$RPM_BUILD_ROOT@@g" |
        grep -v perllocal.pod |
        grep -v "\.packlist" > perl-IO-stringy-%{version}-filelist
if [ "$(cat perl-IO-stringy-%{version}-filelist)X" = "X" ] ; then
    echo "ERROR: EMPTY FILE LIST"
    exit -1
fi

%files -f perl-IO-stringy-%{version}-filelist
%defattr(-,root,root)
%doc README
%doc examples
%doc docs
%doc t
%doc contrib

%changelog
* Tue Feb 19 2002 James A. Pattie <james at pcxperience.com>
- First version of spec file created.
-------------- next part --------------
Summary: Perl Module that Provides MIME-tools.
Name: perl-MIME-tools
Version: 5.411a
Release: 1
Copyright: distributable
Group: Applications/CPAN
Source: MIME-tools-%{version}.tar.gz
URL: http://www.cpan.org/
Vendor: PC & Web Xperience, Inc.
Packager: James A. Pattie <james at pcxperience.com>
BuildRoot: /var/tmp/perl-MIME-tools-%{version}-buildroot/
BuildRequires: perl >= 5.6, perl-MailTools >= 1.43, perl-IO-stringy >= 1.211
Requires: perl >= 5.6, perl-MailTools >= 1.43, perl-MIME-Base64 >= 2.04, perl-IO-stringy >= 1.211

%description
This provides perl-MIME-tools support.

# Provide perl-specific find-{provides, requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl

%prep
#%setup -q -n MIME-tools-%{version}
# This is only needed for the 5.411a version.
%setup -q -n MIME-tools-5.411

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%clean
rm -rf $RPM_BUILD_ROOT

%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
make PREFIX=$RPM_BUILD_ROOT/usr install

[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress

find $RPM_BUILD_ROOT/usr -type f -print |
        sed "s@^$RPM_BUILD_ROOT@@g" |
        grep -v perllocal.pod |
        grep -v "\.packlist" > perl-MIME-tools-%{version}-filelist
if [ "$(cat perl-MIME-tools-%{version}-filelist)X" = "X" ] ; then
    echo "ERROR: EMPTY FILE LIST"
    exit -1
fi

%files -f perl-MIME-tools-%{version}-filelist
%defattr(-,root,root)
%doc README
%doc README-OR-DIE
%doc t
%doc examples
%doc docs
%doc testin
%doc testmsgs


%changelog
* Tue Feb 19 2002 James A. Pattie <james at pcxperience.com>
- First version of spec file created.
-------------- next part --------------
Summary: Perl Module that Provides MailTools.
Name: perl-MailTools
Version: 1.43
Release: 1
Copyright: distributable
Group: Applications/CPAN
Source: MailTools-%{version}.tar.gz
URL: http://www.cpan.org/
Vendor: PC & Web Xperience, Inc.
Packager: James A. Pattie <james at pcxperience.com>
BuildRoot: /var/tmp/perl-MailTools-%{version}-buildroot/
BuildRequires: perl >= 5.6
Requires: perl >= 5.6

%description
This provides perl-MailTools support.

# Provide perl-specific find-{provides, requires}.
%define __find_provides /usr/lib/rpm/find-provides.perl
%define __find_requires /usr/lib/rpm/find-requires.perl

%prep
%setup -q -n MailTools-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make

%clean
rm -rf $RPM_BUILD_ROOT

%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
make PREFIX=$RPM_BUILD_ROOT/usr install

[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress

find $RPM_BUILD_ROOT/usr -type f -print |
        sed "s@^$RPM_BUILD_ROOT@@g" |
        grep -v perllocal.pod |
        grep -v "\.packlist" > perl-MailTools-%{version}-filelist
if [ "$(cat perl-MailTools-%{version}-filelist)X" = "X" ] ; then
    echo "ERROR: EMPTY FILE LIST"
    exit -1
fi

%files -f perl-MailTools-%{version}-filelist
%defattr(-,root,root)
%doc ChangeLog
%doc README
%doc README.demos
%doc examples

%changelog
* Tue Feb 19 2002 James A. Pattie <james at pcxperience.com>
- First version of spec file created.


More information about the MailScanner mailing list