Skip to content

Commit

Permalink
First version
Browse files Browse the repository at this point in the history
  • Loading branch information
voegelas committed Aug 16, 2021
0 parents commit 3806d0a
Show file tree
Hide file tree
Showing 33 changed files with 6,752 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/CPANPLUS-Dist-Slackware-*
/.build
/_build
/Build
/Makefile
/Makefile.old
/blib
/pm_to_blib
/cover_db
MYMETA.*
!META.json
*~
*.swp
11 changes: 11 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
image: perl:latest

before_script:
- cpanm --installdeps .

test_job:
script:
- cpanm Devel::Cover
- cover -delete
- env HARNESS_PERL_SWITCHES=-MDevel::Cover prove -Ilib
- cover -select_re ^lib/
9 changes: 9 additions & 0 deletions .perlcriticrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[-CodeLayout::RequireTidyCode]

[-Documentation::PodSpelling]

[-InputOutput::RequireBriefOpen]

[-RegularExpressions::ProhibitComplexRegexes]

[-ValuesAndExpressions::ProhibitMagicNumbers]
15 changes: 15 additions & 0 deletions .perltidyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
-pbp # Start with Perl Best Practices
-w # Show all warnings
-l=80 # 80 characters per line
-i=4 # Indentation is 4 columns
-ci=4 # Continuation indentation is 4 columns
-pt=2 # High parenthesis tightness
-bt=2 # High brace tightness
-sbt=2 # High square bracket tightness
-wn # Weld nested containers
-isbc # Don't indent comments without leading space
-nola # Don't outdent labels
-bom # Preserve breaks before arrows
-nst # Write reformatted code to file
-nse # Write error messages to file
-bext=~ # Set backup file extension
6 changes: 6 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Revision history for CPANPLUS-Dist-Debora

0.001 2021-07-18 23:05:26 CEST

- First version, released on an unsuspecting world.

379 changes: 379 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
cover_db
~$
\.swp$
96 changes: 96 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
{
"abstract" : "Create Debian or RPM packages from Perl modules",
"author" : [
"Andreas V\u00f6gele <[email protected]>"
],
"dynamic_config" : 0,
"generated_by" : "Dist::Zilla version 6.024, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : 2
},
"name" : "CPANPLUS-Dist-Debora",
"prereqs" : {
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"develop" : {
"requires" : {
"Dist::Zilla" : "0",
"Dist::Zilla::Plugin::CopyFilesFromBuild" : "0",
"Dist::Zilla::Plugin::Prereqs::FromCPANfile" : "0",
"Dist::Zilla::Plugin::Test::Kwalitee" : "0",
"Pod::Coverage::TrustPod" : "0",
"Test::Kwalitee" : "1.21",
"Test::Pod" : "1.41",
"Test::Pod::Coverage" : "1.08"
}
},
"runtime" : {
"conflicts" : {
"Module::Build" : "< 0.36"
},
"requires" : {
"Archive::Tar" : "0",
"CPAN::Meta" : "0",
"CPANPLUS" : "0.9166",
"CPANPLUS::Dist::Build" : "0",
"Carp" : "0",
"Config" : "0",
"Cwd" : "0",
"Encode" : "0",
"English" : "0",
"Exporter" : "0",
"File::Basename" : "0",
"File::Path" : "0",
"File::Spec" : "0",
"File::Temp" : "0",
"IPC::Cmd" : "0",
"Module::CoreList" : "2.32",
"Module::Pluggable" : "2.4",
"Net::Domain" : "0",
"POSIX" : "0",
"Pod::Simple" : "0",
"Scalar::Util" : "0",
"Software::License" : "0.103014",
"Text::Template" : "1.22",
"Text::Wrap" : "0",
"parent" : "0",
"perl" : "5.016",
"utf8" : "0",
"version" : "0.77",
"warnings" : "0"
}
},
"test" : {
"requires" : {
"Test::MockObject" : "1.07",
"Test::More" : "0.96",
"lib" : "0",
"open" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://gitlab.com/voegelas/cpanplus-dist-debora/-/issues"
},
"homepage" : "https://gitlab.com/voegelas/cpanplus-dist-debora",
"repository" : {
"type" : "git",
"url" : "https://gitlab.com/voegelas/cpanplus-dist-debora.git",
"web" : "https://gitlab.com/voegelas/cpanplus-dist-debora/-/tree/main"
}
},
"version" : "0.001",
"x_generated_by_perl" : "v5.32.1",
"x_serialization_backend" : "Cpanel::JSON::XS version 4.26",
"x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later"
}

107 changes: 107 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.024.
use strict;
use warnings;

use 5.016;

use ExtUtils::MakeMaker;

my %WriteMakefileArgs = (
"ABSTRACT" => "Create Debian or RPM packages from Perl modules",
"AUTHOR" => "Andreas V\x{f6}gele <voegelas\@cpan.org>",
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => 0
},
"DISTNAME" => "CPANPLUS-Dist-Debora",
"LICENSE" => "perl",
"MIN_PERL_VERSION" => "5.016",
"NAME" => "CPANPLUS::Dist::Debora",
"PREREQ_PM" => {
"Archive::Tar" => 0,
"CPAN::Meta" => 0,
"CPANPLUS" => "0.9166",
"CPANPLUS::Dist::Build" => 0,
"Carp" => 0,
"Config" => 0,
"Cwd" => 0,
"Encode" => 0,
"English" => 0,
"Exporter" => 0,
"File::Basename" => 0,
"File::Path" => 0,
"File::Spec" => 0,
"File::Temp" => 0,
"IPC::Cmd" => 0,
"Module::CoreList" => "2.32",
"Module::Pluggable" => "2.4",
"Net::Domain" => 0,
"POSIX" => 0,
"Pod::Simple" => 0,
"Scalar::Util" => 0,
"Software::License" => "0.103014",
"Text::Template" => "1.22",
"Text::Wrap" => 0,
"parent" => 0,
"utf8" => 0,
"version" => "0.77",
"warnings" => 0
},
"TEST_REQUIRES" => {
"Test::MockObject" => "1.07",
"Test::More" => "0.96",
"lib" => 0,
"open" => 0
},
"VERSION" => "0.001",
"test" => {
"TESTS" => "t/*.t"
}
);


my %FallbackPrereqs = (
"Archive::Tar" => 0,
"CPAN::Meta" => 0,
"CPANPLUS" => "0.9166",
"CPANPLUS::Dist::Build" => 0,
"Carp" => 0,
"Config" => 0,
"Cwd" => 0,
"Encode" => 0,
"English" => 0,
"Exporter" => 0,
"File::Basename" => 0,
"File::Path" => 0,
"File::Spec" => 0,
"File::Temp" => 0,
"IPC::Cmd" => 0,
"Module::CoreList" => "2.32",
"Module::Pluggable" => "2.4",
"Net::Domain" => 0,
"POSIX" => 0,
"Pod::Simple" => 0,
"Scalar::Util" => 0,
"Software::License" => "0.103014",
"Test::MockObject" => "1.07",
"Test::More" => "0.96",
"Text::Template" => "1.22",
"Text::Wrap" => 0,
"lib" => 0,
"open" => 0,
"parent" => 0,
"utf8" => 0,
"version" => "0.77",
"warnings" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}

delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };

WriteMakefile(%WriteMakefileArgs);
61 changes: 61 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# CPANPLUS::Dist::Debora

This CPANPLUS plugin creates Debian or RPM packages from Perl distributions.
The created packages can be installed with CPANPLUS, dpkg or rpm.

```
$ cpanp
CPAN Terminal> i Some-Module --format=CPANPLUS::Dist::Debora
$ cpan2dist --format CPANPLUS::Dist::Debora Some-Module
$ cd ~/rpmbuild/RPMS/noarch
$ sudo rpm -i perl-Some-Module-1.0-1.noarch.rpm
$ cd ~/.cpanplus/5.34.0/build/XXXX
$ sudo dpkg -i libsome-module-perl_1.0-1cpanplus_all.deb
```

## INSTALLATION

The [Open Build Service](https://build.opensuse.org/package/show/home:voegelas/perl-CPANPLUS-Dist-Debora) provides binary and source packages.

Run the following commands to install the software manually:

```
perl Makefile.PL
make
make test
make install
```

## DEPENDENCIES

Requires Perl 5.16 and the modules CPANPLUS, CPANPLUS::Dist::Build,
Module::Pluggable, Software::License and Text::Template from CPAN. IPC::Run
and Term::ReadLine::Gnu are recommended.

On Debian-based systems, install the packages "perl", "build-essential",
"debhelper", "fakeroot" and "sudo". The minimum supported debhelper version is
12.

On RPM-based systems, install the packages "perl", "rpm-build", "gcc", "make",
"sudo" and, if available, "perl-generators".

## SUPPORT AND DOCUMENTATION

Type "perldoc CPANPLUS::Dist::Debora" to see the module usage information.

If you want to hack on the source, install [Dist::Zilla](https://dzil.org/) and
grab the latest version using the command:

```
git clone https://gitlab.com/voegelas/cpanplus-dist-debora.git
```

## LICENSE AND COPYRIGHT

Copyright 2021 Andreas Vögele

This module is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
52 changes: 52 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
requires 'perl', '5.016';

requires 'Archive::Tar';
requires 'Carp';
requires 'Config';
requires 'CPAN::Meta';
requires 'CPANPLUS', '0.9166';
requires 'Cwd';
requires 'Encode';
requires 'English';
requires 'Exporter';
requires 'File::Basename';
requires 'File::Path';
requires 'File::Spec';
requires 'File::Temp';
requires 'IPC::Cmd';
requires 'Module::CoreList', '2.32';
requires 'Module::Pluggable', '2.4';
requires 'Net::Domain';
requires 'Pod::Simple';
requires 'POSIX';
requires 'Scalar::Util';
requires 'Software::License', '0.103014';
requires 'Text::Template', '1.22';
requires 'Text::Wrap';
requires 'parent';
requires 'utf8';
requires 'version', '0.77';
requires 'warnings';

conflicts 'Module::Build', '< 0.36';

on 'runtime' => sub {
requires 'CPANPLUS::Dist::Build';
};

on 'test' => sub {
requires 'Test::More', '0.96';
requires 'Test::MockObject', '1.07';
requires 'lib';
requires 'open';
};

on 'develop' => sub {
requires 'Dist::Zilla';
requires 'Dist::Zilla::Plugin::CopyFilesFromBuild';
requires 'Dist::Zilla::Plugin::Prereqs::FromCPANfile';
requires 'Dist::Zilla::Plugin::Test::Kwalitee';
requires 'Pod::Coverage::TrustPod';
requires 'Test::Kwalitee', '1.21';
requires 'Test::Pod::Coverage';
};
Loading

0 comments on commit 3806d0a

Please sign in to comment.