Matthias Weckbecker
and 1 contributors


CPANPLUS::Dist::SUSE - To build RPM files from cpan for SUSE


Version 0.03


CPANPLUS::Dist::SUSE is a distribution class to create SUSE packages from CPAN modules, and all its dependencies. This allows you to have the most recent copies of CPAN modules installed, using your package manager of choice, but without having to wait for central repositories to be updated.

You can either install them using the API provided in this package, or manually via rpm.

This is a simple module which inherits from CPANPLUS::Dist::RPM that allows for creating RPM packages under SUSE. In particular, this RPM spec file has been tested in SLES 11.

It also honors Module::Build if Build.PL is in the distribution.

Simple way of creating and installing a module is:

 cpan2dist --verbose --format CPANPLUS::Dist::SUSE --buildprereq --dist-opts="--replacefiles=" --install Module::Builder

"--replacefiles=" can be used when you want to install with rpm option "--replacefiles"

You can also check for CPANPLUS::Dist::Fedora for information.



Checks if /etc/SuSE-release file exists


Overrides the install method of RPM allowing for extra rpm install arguments in dist-opts, be aware that you need to specify it as

cpan2dist ... --dist-opts="--aid= --allfiles= --relocate=/a=/b"

        --aid --allfiles --badreloc
        --excludedocs --force -h,--hash
        --ignoresize --ignorearch --ignoreos
        --includedocs --justdb --nodeps
        --nodigest --nosignature --nosuggest
        --noorder --noscripts --notriggers
        --oldpackage --percent
        --repackage --replacefiles --replacepkgs


Qindel Formacion y Servicios, SL, <Nito at Qindel.ES>

Matthias Weckbecker, <>


Please report any bugs or feature requests to bug-cpanplus-dist-rpm-suse at, or through the web interface at I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.


You can find documentation for this module with the perldoc command.

    perldoc CPANPLUS::Dist::SUSE

You can also look for information at:


Copyright 2010 Qindel Formacion y Servicios, SL.

Copyright 2011 Matthias Weckbecker, <>

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See for more information.