Changeset 2083


Ignore:
Timestamp:
Nov 26, 2011, 8:11:57 PM (11 years ago)
Author:
ezyang
Message:
Turn fc17 into a variable.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/fedora/Makefile

    r2082 r2083  
    1818#
    1919# See /COPYRIGHT in this repository for more information.
     20
     21fedora_release  = fc17
    2022
    2123upstream_yum    = krb5 krb5.i686 httpd openssh redland-bindings rubygems
     
    146148        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
    147149        rpmbuild ${rpmbuild_args} -bs ${tmp_specs}/${PKG}.spec
    148         /usr/bin/mock -r scripts-fc17-i386 --arch=i686 ${rpmbuild_args} --define="_lib lib" -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
     150        /usr/bin/mock -r scripts-${fedora_release}-i386 --arch=i686 ${rpmbuild_args} --define="_lib lib" -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
    149151
    150152$(filter-out %.i686,$(oursrc)): %: setup
    151153        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
    152154        rpmbuild ${rpmbuild_args} -bs ${tmp_specs}/${PKG}.spec
    153         /usr/bin/mock -r scripts-fc17-`uname -m` ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
     155        /usr/bin/mock -r scripts-${fedora_release}-`uname -m` ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
    154156
    155157$(upstream) openafs-kernel: rpmbuild_args += --define 'scriptsversion $(shell svnversion ${patches} | tr ':' '_')'
     
    157159$(filter %.i686,$(upstream)): %.i686: setup patch-specs
    158160        rpmbuild ${rpmbuild_args} -bs ${tmp_specs}/${PKG}.spec
    159         /usr/bin/mock -r scripts-fc17-i386 --arch=i686 ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
     161        /usr/bin/mock -r scripts-${fedora_release}-i386 --arch=i686 ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
    160162
    161163$(filter-out %.i686,$(upstream)): %: setup patch-specs
    162164        rpmbuild ${rpmbuild_args} -bs ${tmp_specs}/${PKG}.spec
    163         /usr/bin/mock -r scripts-fc17-`uname -m` ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
     165        /usr/bin/mock -r scripts-${fedora_release}-`uname -m` ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/${PKG}-[0-9]*.src.rpm | head -1`
    164166
    165167openafs-kernel: setup
    166168        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
    167169        rpmbuild ${rpmbuild_args} -bs ${tmp_specs}/openafs*.spec
    168         /usr/bin/mock -r scripts-fc17-`uname -m` ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/openafs*.src.rpm | head -1`
     170        /usr/bin/mock -r scripts-${fedora_release}-`uname -m` ${rpmbuild_args} -v --rebuild `ls -t ${out_srpms}/openafs*.src.rpm | head -1`
    169171
    170172#sort -n sorts "2.6.25-1" later than "2.6.25.1-1", so it's Wrong
Note: See TracChangeset for help on using the changeset viewer.