]> git.pld-linux.org Git - packages/bitkeeper.git/commitdiff
- authomatic way of finding correct tarball inside bin (thanks malekith) AC-branch AC-STABLE auto/ac/bitkeeper-3_0_2-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 7 Sep 2003 23:24:21 +0000 (23:24 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bitkeeper.spec -> 1.13

bitkeeper.spec

index 7150e86a374129af0f3cb6360041a1e7c3a01d53..2eb1964d6dec9c5a390b60f44ab6463c17812b3b 100644 (file)
@@ -16,6 +16,7 @@ Source3:      http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.0.x/bk-
 URL:           http://www.bitkeeper.com/
 Requires:      tk >= 8.0
 BuildRequires: fileutils
+BuildRequires: perl-base
 ExclusiveArch: %{ix86} alpha ppc sparc64
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,19 +29,23 @@ System kontroli wersji lepszy ni
 %prep
 %setup -q -c -T
 umask 022
+SRC=
 %ifarch %{ix86}
-dd if=%{SOURCE0} skip=1 bs=7008 | gzip -d | tar xf -
+SRC=%{SOURCE0}
 %endif
 %ifarch alpha
-dd if=%{SOURCE1} skip=1 bs=7354 | gzip -d | tar xf -
+SRC=%{SOURCE1}
 %endif
 %ifarch ppc
-dd if=%{SOURCE2} skip=1 bs=6864 | gzip -d | tar xf -
+SRC=%{SOURCE2}
 %endif
 %ifarch sparc64
-dd if=%{SOURCE3} skip=1 bs=6704 | gzip -d | tar xf -
+SRC=%{SOURCE3}
 %endif
 
+perl -e 'while (<>) {s/.*(\037\213)/$1/ and last;} do { print } while (<>) ' ${SRC} | gzip -d | tar xf -
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}/%{name},%{_bindir}}
This page took 0.128118 seconds and 4 git commands to generate.