Remove the custom perl filelist
This commit is contained in:
parent
1106fa8d86
commit
8d8a8d4a72
@ -264,8 +264,6 @@ rm -f README.aix README.hpux11 README.osX README.Panasonic_AM3X.txt README.solar
|
||||
# copy missing mib2c.conf files
|
||||
install -m 644 local/mib2c.*.conf ${RPM_BUILD_ROOT}%{_datadir}/snmp
|
||||
|
||||
# build perl files list
|
||||
pushd perl
|
||||
# remove special perl files
|
||||
find $RPM_BUILD_ROOT -name perllocal.pod \
|
||||
-o -name .packlist \
|
||||
@ -273,15 +271,6 @@ find $RPM_BUILD_ROOT -name perllocal.pod \
|
||||
-o -name Makefile.subs.pl \
|
||||
| xargs -ri rm -f {}
|
||||
|
||||
eval $(perl '-V:installvendorarch')
|
||||
find $RPM_BUILD_ROOT/$installvendorarch -type f -print \
|
||||
-o -type d -a -printf '%%%%dir %%p\n' \
|
||||
| sed "s@$RPM_BUILD_ROOT@@g" \
|
||||
| grep -v "$installvendorarch\$" \
|
||||
| grep -v '/auto$' \
|
||||
> ../perl.lst
|
||||
popd
|
||||
|
||||
# install python module
|
||||
pushd python
|
||||
%{__python} setup.py --basedir=.. install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||
@ -380,7 +369,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%attr(0755,root,root) %{_bindir}/net-snmp-config*
|
||||
%attr(0644,root,root) %{_mandir}/man1/net-snmp-config*.1.*
|
||||
|
||||
%files perl -f perl.lst
|
||||
%files perl
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/mib2c-update
|
||||
%{_bindir}/mib2c
|
||||
@ -391,6 +380,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
||||
%attr(0644,root,root) %{_mandir}/man[15]/mib2c*
|
||||
%attr(0644,root,root) %{_mandir}/man3/*.3pm.*
|
||||
%attr(0644,root,root) %{_mandir}/man1/traptoemail*.1*
|
||||
%{perl_vendorarch}/*
|
||||
|
||||
%files python
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
Reference in New Issue
Block a user