Changeset 926 for server/fedora/Makefile


Ignore:
Timestamp:
Jan 1, 2009, 11:02:16 PM (14 years ago)
Author:
quentin
Message:
Use an RPM macro instead of sed to specify package versions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/fedora/Makefile

    r923 r926  
    131131$(filter-out %.i386,$(oursrc)): %: setup
    132132        PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin" \
    133         rpmbuild $(rpmbuild_args) -bb ${tmp_specs}/$**.spec
     133        version=`svnversion ${oursrcdir}/$**`; \
     134        version=$${version//:/_}; \
     135        rpmbuild $(rpmbuild_args) --define "scriptsversion $${version}" -bb ${tmp_specs}/$**.spec
    134136
    135137$(upstream): setup patch-specs
    136         rpmbuild $(rpmbuild_args) -ba ${tmp_specs}/$@.spec
     138        version=`svnversion ${patches}`; \
     139        version=$${version//:/_}; \
     140        rpmbuild $(rpmbuild_args) --define "scriptsversion $${version}" -ba ${tmp_specs}/$@.spec
    137141
    138142openafs-kernel: setup
Note: See TracChangeset for help on using the changeset viewer.