aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2013-05-24 23:33:19 +0000
committerOlivier Blin <blino@mageia.org>2013-05-24 23:33:19 +0000
commitd416e6e3d1fe03c6bab7b78ceb010cc8567e3198 (patch)
treed0d9b16f00ad29fb39e7082f3f031c4483f1aebe
parent6363cf912632ac1d8a0bbe4e29375a9ed201d8a1 (diff)
downloadiurt-d416e6e3d1fe03c6bab7b78ceb010cc8567e3198.tar
iurt-d416e6e3d1fe03c6bab7b78ceb010cc8567e3198.tar.gz
iurt-d416e6e3d1fe03c6bab7b78ceb010cc8567e3198.tar.bz2
iurt-d416e6e3d1fe03c6bab7b78ceb010cc8567e3198.tar.xz
iurt-d416e6e3d1fe03c6bab7b78ceb010cc8567e3198.zip
use rpmbuild directory instead of rpm
-rwxr-xr-xrebuild_perl_iurt20
1 files changed, 10 insertions, 10 deletions
diff --git a/rebuild_perl_iurt b/rebuild_perl_iurt
index 213da35..d36ea80 100755
--- a/rebuild_perl_iurt
+++ b/rebuild_perl_iurt
@@ -29,16 +29,16 @@ perlapis_path=\$HOME/perlapis.txt; \
[ -e \$perlapis_path ] || rpm -q --provides perl-base | grep ^perlapi > \$perlapis_path; \
for p in perl perl-List-MoreUtils perl-URPM perl-Locale-gettext; do mgarepo getsrpm -l -n \$p; done; \
rpm -ivh *.src.rpm; \
-sudo urpmi --auto --no-verify-rpm rpm/SPECS/*.spec; \
-rpmbuild -ba rpm/SPECS/perl.spec; \
-sudo rpm -Uvh --nodeps --force \$(ls rpm/RPMS/*/perl-*.rpm | grep -v debug); \
-PERL5LIB=\$(rpm -ql perl-List-MoreUtils | perl -ne 's!/List/MoreUtils.pm!! && print') LIST_MOREUTILS_PP=1 rpmbuild -ba rpm/SPECS/perl-List-MoreUtils.spec; \
-sudo rpm -Uvh --force rpm/RPMS/*/perl-List-MoreUtils-*.rpm; \
-rpmbuild -ba rpm/SPECS/perl-URPM.spec; \
-rpmbuild -ba rpm/SPECS/perl-Locale-gettext.spec; \
-sudo rpm -Uvh --force rpm/RPMS/*/perl-URPM-*.rpm rpm/RPMS/*/perl-Locale-gettext-*.rpm; \
-updatepkgs() { spec=\$1; toupdate=; while read line; do set -- \$line; name=\$1; path=\$2; rpm -q \$name --quiet && toupdate=\"\$toupdate \$path\"; done < <(rpm -q --specfile \$spec --qf '%{name} rpm/RPMS/%{arch}/%{name}-%{version}-%{release}.%{arch}.rpm\n' | egrep -v -- '-(debug|__restore__)-'); [ -n \"\$toupdate\" ] && sudo rpm -Uvh --force \$toupdate; }; \
-rebuild() { p=\$1; mgarepo getsrpm -l -n \$p; rpm -ivh \@*-\$p-*.src.rpm; spec=rpm/SPECS/\$p.spec; sudo urpmi --auto --no-verify-rpm \$spec; rpmbuild -ba \$spec; updatepkgs \$spec; }; \
+sudo urpmi --auto --no-verify-rpm rpmbuild/SPECS/*.spec; \
+rpmbuild -ba rpmbuild/SPECS/perl.spec; \
+sudo rpm -Uvh --nodeps --force \$(ls rpmbuild/RPMS/*/perl-*.rpm | grep -v debug); \
+PERL5LIB=\$(rpm -ql perl-List-MoreUtils | perl -ne 's!/List/MoreUtils.pm!! && print') LIST_MOREUTILS_PP=1 rpmbuild -ba rpmbuild/SPECS/perl-List-MoreUtils.spec; \
+sudo rpm -Uvh --force rpmbuild/RPMS/*/perl-List-MoreUtils-*.rpm; \
+rpmbuild -ba rpmbuild/SPECS/perl-URPM.spec; \
+rpmbuild -ba rpmbuild/SPECS/perl-Locale-gettext.spec; \
+sudo rpm -Uvh --force rpmbuild/RPMS/*/perl-URPM-*.rpm rpmbuild/RPMS/*/perl-Locale-gettext-*.rpm; \
+updatepkgs() { spec=\$1; toupdate=; while read line; do set -- \$line; name=\$1; path=\$2; rpm -q \$name --quiet && toupdate=\"\$toupdate \$path\"; done < <(rpm -q --specfile \$spec --qf '%{name} rpmbuild/RPMS/%{arch}/%{name}-%{version}-%{release}.%{arch}.rpm\n' | egrep -v -- '-(debug|__restore__)-'); [ -n \"\$toupdate\" ] && sudo rpm -Uvh --force \$toupdate; }; \
+rebuild() { p=\$1; mgarepo getsrpm -l -n \$p; rpm -ivh \@*-\$p-*.src.rpm; spec=rpmbuild/SPECS/\$p.spec; sudo urpmi --auto --no-verify-rpm \$spec; rpmbuild -ba \$spec; updatepkgs \$spec; }; \
rebuild perl-HTML-Parser; \
pkgs=\$(LC_ALL=C rpm -q --qf '%{SOURCERPM}\n' --whatrequires \$(cat \$perlapis_path) | perl -lne '/^(\S+)-[^-]+-[^-]+\$/ and print \$1' | uniq); for p in \$pkgs; do rebuild \$p; done; \
" | iurt --shell -r $distro $arch --use-old-chroot $perlchroot --chrooted-urpmi -m $media -- $repository