Changeset 1270


Ignore:
Timestamp:
Mar 26, 2007, 6:41:03 PM (12 years ago)
Author:
bruno
Message:

Try to improve Fedora official packages generation

Location:
branches/stable/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/tools/pkg2fc

    r1121 r1270  
    6363for p in $ppkg ; do
    6464    rpm -ivh \$p
     65    src=\`rpm -qlp \$p | grep -E '\.spec'\`
     66    spec=\`tar tvf rpm/SOURCES/\$src | grep -E "\$p-fc.spec"\`
     67    tar xf rpm/SOURCES/\$src \$spec
    6568    s=\`rpm -qlp \$p | egrep '\.spec'\`
     69    mv \$p-fc.spec rpm/SPECS/\$s
    6670    # Use dist for fc
    67     perl -pi -e "s/define Release:[ \t]+([0-9]+)..*/define Release: $1%{?dist}/" rpm/SPECS/\$s
     71    perl -pi -e "s/define Release:[ \t]+([0-9]+)..*/define Release: \$1%{?dist}/" rpm/SPECS/\$s
    6872    perl -pi -e 's/ Bruno Cornec <bruno@mondorescue.org>..*/ Bruno Cornec <bruno@mondorescue.org> %{version}-%{release}/' rpm/SPECS/\$s
    6973    rm -rf rpm/BUILD/*
  • branches/stable/tools/svn2build

    r1263 r1270  
    8181            fi
    8282
     83            if [ $ddir = "fedora" ]; then
     84                $TOOLHOME/mkchangelog.pl fc $p $MONDOTMP/$p-fc.spec
     85                m4 $MONDOTMP/mondorescue.mc $inc $dest/distributions/rpm/$p.spec $MONDOTMP/$p-fc.spec > $dest/distributions/${ddir}-$dver/$p-fc.spec
     86            fi
    8387            $TOOLHOME/mkchangelog.pl $dtype $p $MONDOTMP/$p.spec
    8488            if [ $? -ne 0 ]; then
Note: See TracChangeset for help on using the changeset viewer.