attempt to make perl-macros package
This commit is contained in:
parent
878143eeae
commit
ff517f9cd6
15
perl.spec
15
perl.spec
@ -1,4 +1,3 @@
|
||||
%global perl_libdir %{_libdir}/perl5
|
||||
%global perl_datadir %{_datadir}/perl5
|
||||
%global perl_vendor_libdir %{perl_libdir}/vendor_perl
|
||||
%global perl_vendor_datadir %{perl_datadir}/vendor_perl
|
||||
@ -30,6 +29,9 @@ Release: 10
|
||||
Summary: A highly capable, feature-rich programming language
|
||||
Url: https://www.perl.org/
|
||||
Source0: https://www.cpan.org/src/5.0/%{name}-%{version}.tar.xz
|
||||
# adding files for perl-macros virtual package
|
||||
Source1: macros.perl
|
||||
Source2: README.macros
|
||||
|
||||
Patch1: perl-5.22.1-Provide-ExtUtils-MM-methods-as-standalone-ExtUtils-M.patch
|
||||
Patch2: perl-5.16.3-create_libperl_soname.patch
|
||||
@ -76,11 +78,12 @@ Provides: perl-Attribute-Handlers perl-interpreter perl(bytes_heavy.pl) pe
|
||||
Provides: perl-ExtUtils-Embed perl-ExtUtils-Miniperl perl-IO perl-IO-Zlib perl-Locale-Maketext-Simple perl-Math-Complex
|
||||
Provides: perl-Module-Loaded perl-Net-Ping perl-Pod-Html perl-SelfLoader perl-Test perl-Time-Piece perl-libnetcfg perl-open perl-utils
|
||||
Provides: perl-Errno perl-Memoize perl-File-Compare perl-File-Find
|
||||
Provides perl-macros = 2.0
|
||||
|
||||
Obsoletes: perl-Attribute-Handlers perl-interpreter perl-Errno perl-ExtUtils-Embed perl-Net-Ping
|
||||
Obsoletes: perl-ExtUtils-Miniperl perl-IO perl-IO-Zlib perl-Locale-Maketext-Simple perl-Math-Complex perl-Memoize perl-Module-Loaded
|
||||
Obsoletes: perl-Pod-Html perl-SelfLoader perl-Test perl-Time-Piece perl-libnetcfg perl-open perl-utils perl-File-Compare perl-File-Find
|
||||
|
||||
Obsoletes: perl-macros < 2.0
|
||||
|
||||
%description
|
||||
Perl 5 is a highly capable, feature-rich programming language with over 30 years of development.
|
||||
@ -213,6 +216,9 @@ done
|
||||
%{perl_new} -MConfig -i -pn \
|
||||
-e 's"\A#!(?:perl|\./perl|/perl|/usr/bin/perl|/usr/bin/env perl)\b"$Config{startperl}"' \
|
||||
$(find %{buildroot}%{_libexecdir}/perl5-tests/perl-tests -type f)
|
||||
# install macros.perl file
|
||||
install -D -m 644 %{SOURCE2} %{build}%{_rpmconfigdir}/macros.d/macros.perl
|
||||
# not sure how to install README.macros
|
||||
|
||||
%check
|
||||
%{perl_new} -I/lib regen/lib_cleanup.pl
|
||||
@ -435,6 +441,9 @@ make test_harness
|
||||
%dir %{perl_datadir}
|
||||
%{perl_datadir}/*
|
||||
|
||||
# macros
|
||||
%{_rpmconfigdir}/macros.d/macros.perl
|
||||
|
||||
%files libs
|
||||
%license Artistic Copying
|
||||
%doc AUTHORS README Changes
|
||||
@ -499,7 +508,7 @@ make test_harness
|
||||
%exclude %{_mandir}/man3/{Time::HiRes.*,Time::Local.*,Socket.3*,threads.3*,threads::shared*,Unicode::Collate.*}
|
||||
%exclude %{_mandir}/man3/{Unicode::Collate::*,Unicode::Normalize.*,version.3*,version::Internals.3*,Devel::PPPort*}
|
||||
|
||||
%doc README Changes
|
||||
%doc README Changes
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user