]> git.pld-linux.org Git - packages/cvs-fast-export.git/blob - cvs-fast-export.spec
- updated to 1.66
[packages/cvs-fast-export.git] / cvs-fast-export.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # unit tests
4
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
7 Name:           cvs-fast-export
8 Version:        1.66
9 Release:        1
10 License:        GPL v2
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
21 %if %{with tests}
22 BuildRequires:  cvs
23 %endif
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
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
48 %prep
49 %setup -q
50 %patch0 -p1
51 %patch1 -p1
52 %patch2 -p1
53 %patch3 -p1
54
55 %{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' cvsconvert cvsstrip
56
57 %build
58 %{__make} cvs-fast-export man \
59         CC="%{__cc}" \
60         EXTRA_CFLAGS="%{rpmcflags}" \
61         LDFLAGS="%{rpmldflags}"
62
63 %if %{with tests}
64 # tests are racy, use -j1
65 %{__make} -C tests -j1
66 %endif
67
68 %install
69 rm -rf $RPM_BUILD_ROOT
70
71 %{__make} install \
72         prefix=%{_prefix} \
73         DESTDIR=$RPM_BUILD_ROOT
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %files
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*
This page took 0.163599 seconds and 4 git commands to generate.