3 %bcond_without tests # unit tests
5 Summary: Tool to export CVS history into a fast-import stream
6 Summary(pl.UTF-8): Narzędzie eksportujące historię CVS w postaci strumienia fast-import
11 Group: Development/Version Control
12 Source0: http://www.catb.org/~esr/cvs-fast-export/%{name}-%{version}.tar.gz
13 # Source0-md5: b619c3dc9c72cc1b14f8b4fefdcb4f32
14 Patch0: hack-disable-cvsignore.patch
15 Patch1: %{name}-tsan.patch
16 Patch2: %{name}-asan.patch
17 Patch3: %{name}-ubsan.patch
18 URL: http://www.catb.org/~esr/cvs-fast-export/
19 BuildRequires: asciidoc
20 BuildRequires: sed >= 4.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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.
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.
55 %{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' cvsconvert cvsstrip
58 %{__make} cvs-fast-export man \
60 EXTRA_CFLAGS="%{rpmcflags}" \
61 LDFLAGS="%{rpmldflags}"
64 # tests are racy, use -j1
65 %{__make} -C tests -j1
69 rm -rf $RPM_BUILD_ROOT
73 DESTDIR=$RPM_BUILD_ROOT
76 rm -rf $RPM_BUILD_ROOT
79 %defattr(644,root,root,755)
80 %doc NEWS.adoc README.adoc TODO.adoc
81 %attr(755,root,root) %{_bindir}/cvs-fast-export
82 %attr(755,root,root) %{_bindir}/cvsconvert
83 %attr(755,root,root) %{_bindir}/cvssync
84 %{_mandir}/man1/cvs-fast-export.1*
85 %{_mandir}/man1/cvsconvert.1*
86 %{_mandir}/man1/cvssync.1*