]> git.ipfire.org Git - ipfire-3.x.git/blame - perl-YAML/perl-YAML.nm
Change how we make packages "noarch"
[ipfire-3.x.git] / perl-YAML / perl-YAML.nm
CommitLineData
13e34ff3
MT
1###############################################################################
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
4###############################################################################
5
6name = perl-YAML
7version = 0.84
1f575853 8release = 2.1
13e34ff3
MT
9thisapp = YAML-%{version}
10
11groups = Development/Libraries
12url = http://search.cpan.org/dist/YAML/
13license = GPL+ or Artistic
14summary = A perl module for processing YAML.
15
16description
17 The YAML.pm module implements a YAML Loader and Dumper based on the
18 YAML 1.0 specification. http://www.yaml.org/spec/
19 YAML is a generic data serialization language that is optimized for
20 human readability. It can be used to express the data structures of
21 most modern programming languages, including Perl.
22 For information on the YAML syntax, please refer to the YAML
23 specification.
24end
25
26source_dl = http://search.cpan.org/CPAN/authors/id/M/MS/MSTROUT/
27
28build
5cd803df
MT
29 arches = noarch
30
13e34ff3 31 requires
13e34ff3
MT
32 perl(Carp)
33 perl(constant)
34 perl(Cwd)
35 perl(Data::Dumper)
1f575853 36 perl(FindBin)
13e34ff3
MT
37 perl(Exporter)
38 perl(ExtUtils::MakeMaker)
1f575853 39 perl(Module::Package)
13e34ff3
MT
40 perl(File::Path)
41 perl(lib)
3316c758
MT
42
43 # For the testsuite
44 perl(Filter::Util::Call)
13e34ff3
MT
45 end
46
47 build
48 perl Makefile.PL INSTALLDIRS=vendor
49 make %{PARALLELISMFLAGS}
50 end
51
52 test
53 make test
54 end
55
56 make_install_targets = pure_install DESTDIR=%{BUILDROOT}
57
58 install_cmds
59 # Removing Test::YAML (at least temporarily) due
60 # to security concerns and questionable value.
61 # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=197539
62 rm -vf %{BUILDROOT}%{perl_vendorlib}/Test/YAML* \
63 %{BUILDROOT}%{mandir}/man3/Test::YAML*.3*
64 end
65end
66
67packages
68 package %{name}
69 requires
70 perl(Carp)
71 perl(Data::Dumper)
72 end
73
74 filter_provides
75 yaml_
76 end
77 end
78end