-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Hi, using spec-cleaner 1.2.2. from PyPI I have found this weird behaviour. After I run
~/.local/bin/spec-cleaner --no-copyright libreport.spec -o libreport.spec2
It cleaned the spec file but build failed on rpmbuild:
[ 4s] + exec rpmbuild --with bugzilla -ba --define '_srcdefattr (-,root,root)' --nosignature --undefine _enable_debug_packages /home/abuild/rpmbuild/SOURCES/libreport.spec
[ 4s] error: line 417: Second %post
After investigation I had found the cause. Curly brackets were put right after "scriplets".
-%ldconfig_scriptlets
-%ldconfig_scriptlets web_2
-%ldconfig_scriptlets gtk_1
-%ldconfig_scriptlets -n libreport_2
+%{ldconfig_scriptlets}
+%{ldconfig_scriptlets} web_2
+%{ldconfig_scriptlets} gtk_1
+%{ldconfig_scriptlets} -n libreport_2
When moved after the arguments it passed build.
+%{ldconfig_scriptlets}
+%{ldconfig_scriptlets web_2}
+%{ldconfig_scriptlets gtk_1}
+%{ldconfig_scriptlets -n libreport_2}
Metadata
Metadata
Assignees
Labels
No labels