]> git.ipfire.org Git - pakfire.git/blame - macros/perl.macro
jail: Replace communication callbacks by setting callbacks
[pakfire.git] / macros / perl.macro
CommitLineData
88bf3753
MT
1# Perl constants.
2perl = /usr/bin/perl
3
4perl_sitearch = %(eval "$(%{perl} -V:installsitearch)"; echo ${installsitearch})
5perl_sitelib = %(eval "$(%{perl} -V:installsitelib)"; echo ${installsitelib})
6perl_vendorarch = %(eval "$(%{perl} -V:installvendorarch)"; echo ${installvendorarch})
7perl_vendorlib = %(eval "$(%{perl} -V:installvendorlib)"; echo ${installvendorlib})
8perl_archlib = %(eval "$(%{perl} -V:installarchlib)"; echo ${installarchlib})
9perl_privlib = %(eval "$(%{perl} -V:installprivlib)"; echo ${installprivlib})
9c2f7307 10perl_version = %(eval "$(%{perl} -V:version)"; echo ${version})
9cbc043d
MT
11
12perl_all_paths = {%{perl_vendorarch},%{perl_vendorlib},%{perl_archlib},%{perl_privlib}}
13
1f36d17f
MT
14build
15 # perl_cleanup: Removes unwanted perl files
16 perl_cleanup
17 # Remove perllocal.pod
18 rm -f %{BUILDROOT}%{perl_all_paths}/perllocal.pod
9cbc043d 19
1f36d17f
MT
20 # Remove all .packlist files
21 find %{BUILDROOT}%{perl_all_paths} -name ".packlist" 2>/dev/null | \
22 xargs --no-run-if-empty rm -f
9cbc043d 23
1f36d17f
MT
24 # Remove all empty .bs files
25 find %{BUILDROOT}%{perl_all_paths} -name ".bs" -type f -empty 2>/dev/null | \
26 xargs --no-run-if-empty rm -f
9cbc043d 27
1f36d17f
MT
28 # Run user-defined stuff
29 %{perl_cleanup_cmds}
30 end
9cbc043d 31end