]>
Commit | Line | Data |
---|---|---|
88bf3753 MT |
1 | # Perl constants. |
2 | perl = /usr/bin/perl | |
3 | ||
4 | perl_sitearch = %(eval "$(%{perl} -V:installsitearch)"; echo ${installsitearch}) | |
5 | perl_sitelib = %(eval "$(%{perl} -V:installsitelib)"; echo ${installsitelib}) | |
6 | perl_vendorarch = %(eval "$(%{perl} -V:installvendorarch)"; echo ${installvendorarch}) | |
7 | perl_vendorlib = %(eval "$(%{perl} -V:installvendorlib)"; echo ${installvendorlib}) | |
8 | perl_archlib = %(eval "$(%{perl} -V:installarchlib)"; echo ${installarchlib}) | |
9 | perl_privlib = %(eval "$(%{perl} -V:installprivlib)"; echo ${installprivlib}) | |
9c2f7307 | 10 | perl_version = %(eval "$(%{perl} -V:version)"; echo ${version}) |
9cbc043d MT |
11 | |
12 | perl_all_paths = {%{perl_vendorarch},%{perl_vendorlib},%{perl_archlib},%{perl_privlib}} | |
13 | ||
1f36d17f MT |
14 | build |
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 | 31 | end |