]> git.pld-linux.org Git - packages/cvs-fast-export.git/blob - cvs-fast-export.spec
f7745f90720524359a93ffd84a2d8e98b2db5582
[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.62
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:  8ed2dac4c7c1763d8351650d0bb2630c
14 Patch0:         hack-disable-cvsignore.patch
15 URL:            http://www.catb.org/~esr/cvs-fast-export/
16 BuildRequires:  asciidoc
17 BuildRequires:  sed >= 4.0
18 %if %{with tests}
19 BuildRequires:  cvs
20 %endif
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Export an RCS or CVS history as a fast-import stream. This program
25 analyzes a collection of RCS files in a CVS repository (or outside of
26 one) and, when possible, emits an equivalent history in the form of a
27 fast-import stream. Not all possible histories can be rendered this
28 way; the program tries to emit useful warnings when it can't. The
29 program can also produce a visualization of the resulting commit DAG
30 in the DOT format handled by the graphviz suite. The package also
31 includes cvssync, a tool for mirroring masters from remote CVS hosts.
32
33 %description -l pl.UTF-8
34 To narzędzie eksportuje historię RCS lub CVS w postaci strumienia
35 fast-import. Program analizuje zbiór plików RCS w repozytorium CVS
36 (lub na zewnątrz) i, w miarę możliwości, wypuszcza odpowiadającą mu
37 historię w postaci strumienia fast-import. Nie wszystkie historie
38 można w ten sposób przedstawić - w razie problemów program próbuje
39 wypisać przydatne ostrzeżenia. Program potrafi także utworzyć
40 wizualizację wynikowego skierowanego grafu acyklicznego (DAG) zmian
41 (commitów) w formacie DOT, obsługiwanym przez narzędzia graphviz.
42 Pakiet zawiera także narzędzie cvssync do tworzenia kopii lustrzanych
43 ze zdalnych serwerów CVS.
44
45 %prep
46 %setup -q
47 %patch0 -p1
48
49 %{__sed} -i -e '1s,/usr/bin/env python3$,%{__python3},' cvsconvert cvsstrip
50
51 %build
52 %{__make} cvs-fast-export man \
53         CC="%{__cc}" \
54         EXTRA_CFLAGS="%{rpmcflags}" \
55         LDFLAGS="%{rpmldflags}"
56
57 %if %{with tests}
58 # tests are racy, use -j1
59 %{__make} -C tests -j1
60 %endif
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64
65 %{__make} install \
66         prefix=%{_prefix} \
67         DESTDIR=$RPM_BUILD_ROOT
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %doc NEWS.adoc README.adoc TODO.adoc
75 %attr(755,root,root) %{_bindir}/cvs-fast-export
76 %attr(755,root,root) %{_bindir}/cvsconvert
77 %attr(755,root,root) %{_bindir}/cvssync
78 %{_mandir}/man1/cvs-fast-export.1*
79 %{_mandir}/man1/cvsconvert.1*
80 %{_mandir}/man1/cvssync.1*
This page took 0.086798 seconds and 3 git commands to generate.