Skip to content

Commit 9bc8d5b

Browse files
committed
Add file perlcompat.attr (BZ#2158233)
Add file perlcompat.attr which generates replacement for versioned MODULE_COMPAT (BZ#2158233)
1 parent 15ab2d5 commit 9bc8d5b

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

Changes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
Revision history for perl-generators.
22

3+
1.16 Thu Jan 5 2023
4+
- Add file perlcompat.attr which generates replacement for versioned
5+
MODULE_COMPAT (BZ#2158233)
6+
37
1.15 Tue Dec 6 2022
48
- Relative imports (./) are ignored (BZ#2150992)
59

Makefile.PL

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sub wanted {
3838

3939
WriteMakefile(
4040
'NAME' => 'generators',
41-
'VERSION' => '1.15',
41+
'VERSION' => '1.16',
4242
'AUTHOR' => 'Jitka Plesnikova <[email protected]>',
4343
'LICENSE' => 'gpl',
4444
'EXE_FILES' => [ "bin/perl.prov$suffix", "bin/perl.req$suffix" ],

template/fileattrs/perlcompat.attr

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
%__perlcompat_requires() %{lua:
2+
if macros[1]:match('.+%.so$') and macros.perl_version then
3+
print('perl(:MODULE_COMPAT_' .. macros.perl_version .. ')')
4+
else
5+
print('perl-libs')
6+
end
7+
}
8+
%__perlcompat_path ^(%{perl_vendorarch}|%{perl_vendorlib}|%{perl_privlib}|%{perl_archlib})/.+

0 commit comments

Comments
 (0)