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