Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP2:Update
avahi-glib2
avahi_spec-prepare.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File avahi_spec-prepare.sh of Package avahi-glib2
#!/bin/bash # Autobuild doesn't support package names with macros. This script will update versions in package names. ORIG_SPEC=${2%-mono} ORIG_SPEC=${ORIG_SPEC%-qt4} # Never update -mono file when it is already opened. It will break advanced build scripts: if test "$2" != "$ORIG_SPEC" ; then exit fi if ! test -f $1/$ORIG_SPEC.spec ; then exit fi # Edit file to fit -mono build needs: sed ' s/spec file for package avahi/spec file for package avahi-mono/; s/build_core\ 1/build_core 0/; s/build_mono\ 0/build_mono 1/; s/^.ame:.*/&-mono/; # No more needed. #s/^..hangelog.*/& mono/; /^# WARNING: After editing/,/^# to update spec files/d /^%define[[:space:]]*_name/i \ # Do not edit this auto generated file! Edit avahi.spec. ' <$1/$ORIG_SPEC.spec >$1/$ORIG_SPEC-mono.spec.new perl $1/update_spec.pl $1/$ORIG_SPEC-mono.spec.new attributes > $1/$ORIG_SPEC-mono.spec rm $1/$ORIG_SPEC-mono.spec.new # Edit file to fit -glib2 build needs: sed ' s/spec file for package avahi/spec file for package avahi-glib2/; s/build_core\ 1/build_core 0/; s/build_glib2\ 0/build_glib2 1/; s/^.ame:.*/&-glib2/; # No more needed. #s/^..hangelog.*/& qt/; /^# WARNING: After editing/,/^# to update spec files/d /^%define[[:space:]]*_name/i \ # Do not edit this auto generated file! Edit avahi.spec. ' <$1/$ORIG_SPEC.spec >$1/$ORIG_SPEC-glib2.spec.new perl $1/update_spec.pl $1/$ORIG_SPEC-glib2.spec.new attributes > $1/$ORIG_SPEC-glib2.spec rm $1/$ORIG_SPEC-glib2.spec.new # Edit file to fit -qt4 build needs: sed ' s/spec file for package avahi/spec file for package avahi-qt4/; s/build_core\ 1/build_core 0/; s/build_qt4\ 0/build_qt4 1/; s/^.ame:.*/&-qt4/; # No more needed. #s/^..hangelog.*/& qt/; /^# WARNING: After editing/,/^# to update spec files/d /^%define[[:space:]]*_name/i \ # Do not edit this auto generated file! Edit avahi.spec. ' <$1/$ORIG_SPEC.spec >$1/$ORIG_SPEC-qt4.spec.new perl $1/update_spec.pl $1/$ORIG_SPEC-qt4.spec.new attributes > $1/$ORIG_SPEC-qt4.spec rm $1/$ORIG_SPEC-qt4.spec.new # Not wanted for avahi: #cp -a $1/$ORIG_SPEC.changes $1/$ORIG_SPEC-glib2.changes #cp -a $1/$ORIG_SPEC.changes $1/$ORIG_SPEC-mono.changes #cp -a $1/$ORIG_SPEC.changes $1/$ORIG_SPEC-qt.changes
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