==8<============================================================================= find %buildroot%_datadir/snmp/mibs/ -name "*.txt" -type f | while read file; do mv "$file" "${file%.txt}"; done #tar MIBS for simle update tar -cjf net-snmp-mibs.tar.bz2 -C %buildroot%_datadir/snmp mibs/ rm -rf %buildroot%_datadir/snmp/mibs ==8<============================================================================= Из-за опечатки с file%.txt (rpm делает попытку раскрыть это как макрос) файлы в итоговом архиве не переименованы в .txt. Ну и "simle".
net-snmp30-5.7.3-alt1.1 -> sisyphus: * Sun Jan 10 2016 Terechkov Evgenii <evg@altlinux> 5.7.3-alt1.1 - fix typo in spec * Sat Jan 09 2016 Terechkov Evgenii <evg@altlinux> 5.7.3-alt1 - 5.7.3 - add patch7 to fix group->gid resolving (ALT#30926) - source /etc/sysconfig/snmptrapd on sysv (just like on systemd) systemd (ALT#30927) - spec cleanup (ALT#29545) - patch6 (systemd) adapted to 5.7.3 - remove bogus noreplace flag on sysv/systemd initscripts - move verndor-specific tmpfiles manifest to %_tmpfilesdir