]> git.ipfire.org Git - people/pmueller/ipfire-3.x.git/blob - perl-common-sense/perl-common-sense.nm
Change how we make packages "noarch"
[people/pmueller/ipfire-3.x.git] / perl-common-sense / perl-common-sense.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = perl-common-sense
7 version = 3.75
8 release = 1
9 thisapp = common-sense-%{version}
10
11 groups = Development/Libraries
12 url = http://search.cpan.org/dist/common-sense
13 license = GPL+ or Artistic
14 summary = "Common sense" Perl defaults.
15
16 description
17 This module implements some sane defaults for Perl programs, as defined
18 by two typical (or not so typical - use your common sense) specimens of
19
20 Perl coders:
21 - use strict qw(vars subs);
22 - use feature qw(say state switch);
23 - no warnings;
24 end
25
26 source_dl = https://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/
27
28 build
29 arches = noarch
30
31 requires
32 perl(ExtUtils::MakeMaker)
33 perl(ExtUtils::ParseXS)
34 pakfire >= 0.9.26-3.1
35 end
36
37 build
38 perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{CFLAGS}"
39 make %{PARALLELISMFLAGS}
40 end
41
42 test
43 make test
44 end
45
46 make_install_targets = \
47 pure_install DESTDIR=%{BUILDROOT}
48 end
49
50 packages
51 package %{name}
52 requires = perl(:MODULE_COMPAT_%{perl_version})
53 end
54 end