]> git.pld-linux.org Git - packages/bitkeeper.git/blob - bitkeeper.spec
- authomatic way of finding correct tarball inside bin (thanks malekith)
[packages/bitkeeper.git] / bitkeeper.spec
1 Summary:        A distributed concurent versioning system better than CVS
2 Summary(pl):    System kontroli wersji lepszy ni¿ CVS
3 Name:           bitkeeper
4 Version:        3.0.2
5 Release:        1
6 License:        BitKeeper
7 Group:          Development/Version Control
8 Source0:        http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.0.x/bk-3.0.2-x86-glibc22-linux.bin
9 # Source0-md5:  cfd8f586e8c379c9d4eaa11fb5064d62
10 Source1:        http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.0.x/bk-3.0.2-alpha-glibc22-linux.bin
11 # Source1-md5:  da28d1cb564ffcf71342eeeec257f06b
12 Source2:        http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.0.x/bk-3.0.2-powerpc-glibc21-linux.bin
13 # Source2-md5:  3de240272530fdbd8f60732ced7dbf83
14 Source3:        http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.0.x/bk-3.0.2-sparc-glibc21-linux.bin
15 # Source3-md5:  646eb0dbad5b41c8aa8b6d2e5a9f7957
16 URL:            http://www.bitkeeper.com/
17 Requires:       tk >= 8.0
18 BuildRequires:  fileutils
19 BuildRequires:  perl-base
20 ExclusiveArch:  %{ix86} alpha ppc sparc64
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 A distributed concurrent versioning system better than CVS.
25
26 %description -l pl
27 System kontroli wersji lepszy ni¿ CVS.
28
29 %prep
30 %setup -q -c -T
31 umask 022
32 SRC=
33 %ifarch %{ix86}
34 SRC=%{SOURCE0}
35 %endif
36 %ifarch alpha
37 SRC=%{SOURCE1}
38 %endif
39 %ifarch ppc
40 SRC=%{SOURCE2}
41 %endif
42 %ifarch sparc64
43 SRC=%{SOURCE3}
44 %endif
45
46 perl -e 'while (<>) {s/.*(\037\213)/$1/ and last;} do { print } while (<>) ' ${SRC} | gzip -d | tar xf -
47
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}/%{name},%{_bindir}}
52
53 cp -ap bitkeeper/* $RPM_BUILD_ROOT%{_libdir}/%{name}
54
55 ln -s %{_libdir}/%{name}/bitkeeper.config $RPM_BUILD_ROOT%{_sysconfdir}
56
57 for file in admin bk delta get prs rmdel unget; do
58         ln -s %{_libdir}/%{name}/${file} $RPM_BUILD_ROOT%{_bindir}/${file}
59 done
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
65 %defattr(644,root,root,755)
66 %doc bitkeeper/*.pdf
67 %attr(755,root,root) %{_bindir}/*
68 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
69 %attr(-,root,root) %{_libdir}/%{name}
This page took 0.062567 seconds and 3 git commands to generate.