]>
Commit | Line | Data |
---|---|---|
9c50389f ER |
1 | # |
2 | # Conditional build: | |
3b06bcd7 | 3 | %bcond_without tests # unit tests |
9c50389f | 4 | |
63b9a7a8 | 5 | Summary: Tool to export CVS history into a fast-import stream |
ccf01b47 | 6 | Summary(pl.UTF-8): Narzędzie eksportujące historię CVS w postaci strumienia fast-import |
63b9a7a8 | 7 | Name: cvs-fast-export |
0980b64f | 8 | Version: 1.66 |
35133772 | 9 | Release: 1 |
63b9a7a8 | 10 | License: GPL v2 |
ccf01b47 | 11 | Group: Development/Version Control |
63b9a7a8 | 12 | Source0: http://www.catb.org/~esr/cvs-fast-export/%{name}-%{version}.tar.gz |
0980b64f | 13 | # Source0-md5: b619c3dc9c72cc1b14f8b4fefdcb4f32 |
ea069dbe | 14 | Patch0: hack-disable-cvsignore.patch |
0b0bfc9a JB |
15 | Patch1: %{name}-tsan.patch |
16 | Patch2: %{name}-asan.patch | |
17 | Patch3: %{name}-ubsan.patch | |
63b9a7a8 KK |
18 | URL: http://www.catb.org/~esr/cvs-fast-export/ |
19 | BuildRequires: asciidoc | |
e7bd56f3 | 20 | BuildRequires: sed >= 4.0 |
88b63e83 JB |
21 | %if %{with tests} |
22 | BuildRequires: cvs | |
23 | %endif | |
63b9a7a8 KK |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Export an RCS or CVS history as a fast-import stream. This program | |
28 | analyzes a collection of RCS files in a CVS repository (or outside of | |
29 | one) and, when possible, emits an equivalent history in the form of a | |
30 | fast-import stream. Not all possible histories can be rendered this | |
31 | way; the program tries to emit useful warnings when it can't. The | |
32 | program can also produce a visualization of the resulting commit DAG | |
33 | in the DOT format handled by the graphviz suite. The package also | |
34 | includes cvssync, a tool for mirroring masters from remote CVS hosts. | |
35 | ||
ccf01b47 JB |
36 | %description -l pl.UTF-8 |
37 | To narzędzie eksportuje historię RCS lub CVS w postaci strumienia | |
38 | fast-import. Program analizuje zbiór plików RCS w repozytorium CVS | |
39 | (lub na zewnątrz) i, w miarę możliwości, wypuszcza odpowiadającą mu | |
40 | historię w postaci strumienia fast-import. Nie wszystkie historie | |
41 | można w ten sposób przedstawić - w razie problemów program próbuje | |
42 | wypisać przydatne ostrzeżenia. Program potrafi także utworzyć | |
43 | wizualizację wynikowego skierowanego grafu acyklicznego (DAG) zmian | |
44 | (commitów) w formacie DOT, obsługiwanym przez narzędzia graphviz. | |
45 | Pakiet zawiera także narzędzie cvssync do tworzenia kopii lustrzanych | |
46 | ze zdalnych serwerów CVS. | |
47 | ||
63b9a7a8 KK |
48 | %prep |
49 | %setup -q | |
ea069dbe | 50 | %patch0 -p1 |
0b0bfc9a JB |
51 | %patch1 -p1 |
52 | %patch2 -p1 | |
53 | %patch3 -p1 | |
63b9a7a8 | 54 | |
3b06bcd7 | 55 | %{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' cvsconvert cvsstrip |
e7bd56f3 | 56 | |
63b9a7a8 | 57 | %build |
e7bd56f3 | 58 | %{__make} cvs-fast-export man \ |
63b9a7a8 | 59 | CC="%{__cc}" \ |
83fd1459 | 60 | EXTRA_CFLAGS="%{rpmcflags}" \ |
63b9a7a8 KK |
61 | LDFLAGS="%{rpmldflags}" |
62 | ||
3b06bcd7 JB |
63 | %if %{with tests} |
64 | # tests are racy, use -j1 | |
65 | %{__make} -C tests -j1 | |
66 | %endif | |
9c50389f | 67 | |
63b9a7a8 KK |
68 | %install |
69 | rm -rf $RPM_BUILD_ROOT | |
3b06bcd7 | 70 | |
63b9a7a8 KK |
71 | %{__make} install \ |
72 | prefix=%{_prefix} \ | |
73 | DESTDIR=$RPM_BUILD_ROOT | |
74 | ||
75 | %clean | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
63b9a7a8 KK |
78 | %files |
79 | %defattr(644,root,root,755) | |
3b06bcd7 | 80 | %doc NEWS.adoc README.adoc TODO.adoc |
83fd1459 | 81 | %attr(755,root,root) %{_bindir}/cvs-fast-export |
c03c054e | 82 | %attr(755,root,root) %{_bindir}/cvsconvert |
63b9a7a8 | 83 | %attr(755,root,root) %{_bindir}/cvssync |
83fd1459 | 84 | %{_mandir}/man1/cvs-fast-export.1* |
c03c054e | 85 | %{_mandir}/man1/cvsconvert.1* |
83fd1459 | 86 | %{_mandir}/man1/cvssync.1* |