]>
Commit | Line | Data |
---|---|---|
1 | Summary: A distributed concurent versioning system better than CVS | |
2 | Summary(pl.UTF-8): System kontroli wersji lepszy niż CVS | |
3 | Name: bitkeeper | |
4 | Version: 3.2.0 | |
5 | Release: 1 | |
6 | License: BitKeeper | |
7 | Group: Development/Version Control | |
8 | Source0: http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.2.0/bk-%{version}-x86-glibc23-linux.bin | |
9 | # Source0-md5: 21a14b3ea291ef70d59d350ccde4f19a | |
10 | Source1: http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.2.0/bk-%{version}-alpha-glibc22-linux.bin | |
11 | # Source1-md5: e1cb11215b03fd30e7e4b5fb5763d3e2 | |
12 | Source2: http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.2.0/bk-%{version}-powerpc-glibc21-linux.bin | |
13 | # Source2-md5: 7ad959ee34f35516bd607bdd1192171c | |
14 | Source3: http://bitkeeper:get%20bitkeeper@www.bitmover.com/download/bk-3.2.0/bk-%{version}-sparc-glibc21-linux.bin | |
15 | # Source3-md5: bd432ed8612d5d7d884c3418615d658f | |
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.UTF-8 | |
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 | chmod 755 ${SRC} | |
47 | ${SRC} bitkeeper | |
48 | chmod -R u+rwX,a+rX . | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_libdir}/%{name},%{_bindir},%{_mandir}/man1} | |
53 | ||
54 | cp -ap bitkeeper/* $RPM_BUILD_ROOT%{_libdir}/%{name} | |
55 | ||
56 | for man in $RPM_BUILD_ROOT%{_libdir}/%{name}/man/man1/*; do | |
57 | tman=$(basename "$man") | |
58 | if ! (echo "$tman" | grep -Eq "^bk-"); then | |
59 | tman="bk-$tman" | |
60 | fi | |
61 | mv $man $RPM_BUILD_ROOT%{_mandir}/man1/${tman} | |
62 | done | |
63 | ||
64 | rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/man/ | |
65 | ||
66 | ln -s %{_libdir}/%{name}/bitkeeper.config $RPM_BUILD_ROOT%{_sysconfdir} | |
67 | ||
68 | for file in admin bk delta get prs rmdel unget; do | |
69 | ln -s %{_libdir}/%{name}/${file} $RPM_BUILD_ROOT%{_bindir}/${file} | |
70 | done | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc bitkeeper/*.pdf | |
78 | %attr(755,root,root) %{_bindir}/* | |
79 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
80 | %{_mandir}/man*/* | |
81 | %attr(-,root,root) %{_libdir}/%{name} |