split out libperl from main perl package.
This commit is contained in:
parent
7706e269dd
commit
ad8e70158e
27
perl.spec
27
perl.spec
|
@ -195,6 +195,15 @@ scripts.
|
||||||
Install this package if you want to program in Perl or enable your
|
Install this package if you want to program in Perl or enable your
|
||||||
system to handle Perl scripts.
|
system to handle Perl scripts.
|
||||||
|
|
||||||
|
%package libs
|
||||||
|
Summary: The libraries for the perl runtime
|
||||||
|
Group: Development/Languages
|
||||||
|
Requires: perl = %{perl_epoch}:%{perl_version}-%{release}
|
||||||
|
|
||||||
|
%description libs
|
||||||
|
The libraries for the perl runtime
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Header files for use in perl development
|
Summary: Header files for use in perl development
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
|
@ -500,6 +509,14 @@ pushd $RPM_BUILD_ROOT%{_mandir}/man1/
|
||||||
done
|
done
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
echo "%{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/libperl.so" > libs_filelist
|
||||||
|
|
||||||
|
for i in %{perlmodcompat} ; do
|
||||||
|
if -d $RPM_BUILD_ROOT%{_libdir}/perl5/$i/%{perl_archname}/CORE ; then
|
||||||
|
echo "%{_libdir}/perl5/$i/%{perl_archname}/CORE" >> libs_filelist
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
chmod -R u+w $RPM_BUILD_ROOT/*
|
chmod -R u+w $RPM_BUILD_ROOT/*
|
||||||
%if %{perl_debugging}
|
%if %{perl_debugging}
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -512,6 +529,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun libs -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc Copying README
|
%doc Copying README
|
||||||
|
@ -523,6 +544,9 @@ make test
|
||||||
%{_prefix}/lib/perl5/
|
%{_prefix}/lib/perl5/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# libs
|
||||||
|
%exclude %{_libdir}/perl5/%{perl_version}/%{perl_archname}/CORE/libperl.so
|
||||||
|
|
||||||
# devel
|
# devel
|
||||||
%exclude %{_bindir}/enc2xs
|
%exclude %{_bindir}/enc2xs
|
||||||
%exclude %{_mandir}/man1/enc2xs*
|
%exclude %{_mandir}/man1/enc2xs*
|
||||||
|
@ -600,6 +624,9 @@ make test
|
||||||
%exclude %{_mandir}/man3/Test::Simple*
|
%exclude %{_mandir}/man3/Test::Simple*
|
||||||
%exclude %{_mandir}/man3/Test::Tutorial*
|
%exclude %{_mandir}/man3/Test::Tutorial*
|
||||||
|
|
||||||
|
%files libs -f libs_filelist
|
||||||
|
%defattr(-,root,root)
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/enc2xs
|
%{_bindir}/enc2xs
|
||||||
|
|
Loading…
Reference in New Issue