Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory
rpmdevtools
dont-drop-Groups.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dont-drop-Groups.patch of Package rpmdevtools
Index: rpmdevtools-8.9/rpmdev-newspec.in =================================================================== --- rpmdevtools-8.9.orig/rpmdev-newspec.in +++ rpmdevtools-8.9/rpmdev-newspec.in @@ -240,9 +240,16 @@ fi if [[ $rpmver -ge 40600 ]] ; then # >= 4.6 (Fedora >= 10) # filter BuildRoot and Group tags specfilter+=" - s/^(BuildRoot|Group)[ \\t]*:[^\\n]*\\n//IMg + s/^BuildRoot[ \\t]*:[^\\n]*\\n//IMg " fi +if [ -n "$appname" ] ; then + specfilter+=" + s/\[spectemplate\]/$appname/ +" +fi +# set copyright year +specfilter+="s/__YEAR__/$(date -u +%Y)/" if [[ $rpmver -ge 40800 ]] ; then # >= 4.8 (RHEL >= 6, Fedora >= 13) # filter unnecessary basic %clean section, up to next section specfilter+=" @@ -293,7 +300,6 @@ cat "$tempspec" | sed -rne " $ { g s/^(Name:[ \\t]*)[^\\n]*/\\1$appname/IMg - s|^%changelog\\s*|%changelog\\n* $(LC_ALL=C date --utc +'%a %b %e %Y') $(rpmdev-packager)\\n- |Mg $specfilter p }" > "$specfile"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor