]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
perl-common-sense: New package.
authorStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Apr 2012 19:25:24 +0000 (21:25 +0200)
committerStefan Schantl <stefan.schantl@ipfire.org>
Sun, 22 Apr 2012 19:25:24 +0000 (21:25 +0200)
perl-common-sense/perl-common-sense.nm [new file with mode: 0644]

diff --git a/perl-common-sense/perl-common-sense.nm b/perl-common-sense/perl-common-sense.nm
new file mode 100644 (file)
index 0000000..f6dfb0e
--- /dev/null
@@ -0,0 +1,53 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-common-sense
+version    = 3.5
+release    = 1
+arch       = noarch
+thisapp    = common-sense-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/common-sense
+license    = GPL+ or Artistic
+summary    = "Common sense" Perl defaults.
+
+description
+       This module implements some sane defaults for Perl programs, as defined
+       by two typical (or not so typical - use your common sense) specimens of
+
+       Perl coders:
+               - use strict qw(vars subs);
+               - use feature qw(say state switch);
+               - no warnings;
+end
+
+source_dl  = http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
+
+build
+       requires
+               perl(ExtUtils::MakeMaker)
+               perl(ExtUtils::ParseXS)
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}"
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               make test
+       end
+
+       make_install_targets = pure_install DESTDIR=%{BUILDROOT}
+end
+
+packages
+       package %{name}
+               requires
+                       perl
+               end
+       end
+end