]> git.pld-linux.org Git - packages/cvs-fast-export.git/blobdiff - cvs-fast-export.spec
env hack to be able to disable .gitignore generation
[packages/cvs-fast-export.git] / cvs-fast-export.spec
index 9cbb940c2b5338c7af11c809cf85a7c19c7a1a85..0fba5e5976441603293799cff8bd3ffc99ead231 100644 (file)
@@ -1,15 +1,27 @@
+#
+# Conditional build:
+%bcond_with    tests   # perform "make check" (tests/Makefile missing)
+
 Summary:       Tool to export CVS history into a fast-import stream
+Summary(pl.UTF-8):     Narzędzie eksportujące historię CVS w postaci strumienia fast-import
 Name:          cvs-fast-export
-Version:       1.10
-Release:       0.1
+Version:       1.40
+Release:       1
 License:       GPL v2
-Group:         Applications
+Group:         Development/Version Control
 Source0:       http://www.catb.org/~esr/cvs-fast-export/%{name}-%{version}.tar.gz
-# Source0-md5: a3f6c9a620e0b946fdc1d80ba691b13b
+# Source0-md5: 7bc950e2853df9736c638226df1bd79e
+Patch0:                hack-disable-cvsignore.patch
 URL:           http://www.catb.org/~esr/cvs-fast-export/
 BuildRequires: asciidoc
+BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+# debugedit is broken:
+# extracting debug info from /home/users/glen/tmp/cvs-fast-export-1.30-root-glen/usr/bin/cvs-fast-export
+# /usr/lib/rpm/bin/debugedit: canonicalization unexpectedly shrank by one character
+%define                _enable_debug_packages  0
+
 %description
 Export an RCS or CVS history as a fast-import stream. This program
 analyzes a collection of RCS files in a CVS repository (or outside of
@@ -20,19 +32,34 @@ program can also produce a visualization of the resulting commit DAG
 in the DOT format handled by the graphviz suite. The package also
 includes cvssync, a tool for mirroring masters from remote CVS hosts.
 
+%description -l pl.UTF-8
+To narzędzie eksportuje historię RCS lub CVS w postaci strumienia
+fast-import. Program analizuje zbiór plików RCS w repozytorium CVS
+(lub na zewnątrz) i, w miarę możliwości, wypuszcza odpowiadającą mu
+historię w postaci strumienia fast-import. Nie wszystkie historie
+można w ten sposób przedstawić - w razie problemów program próbuje
+wypisać przydatne ostrzeżenia. Program potrafi także utworzyć
+wizualizację wynikowego skierowanego grafu acyklicznego (DAG) zmian
+(commitów) w formacie DOT, obsługiwanym przez narzędzia graphviz.
+Pakiet zawiera także narzędzie cvssync do tworzenia kopii lustrzanych
+ze zdalnych serwerów CVS.
+
 %prep
 %setup -q
+%patch0 -p1
+
+%{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' cvsconvert cvsreduce
 
 %build
-%{__make} \
-       prefix=%{_prefix} \
+%{__make} cvs-fast-export man \
        CC="%{__cc}" \
-       CFLAGS="%{rpmcflags}  -DVERSION=\\\"\$(VERSION)\\\"" \
+       EXTRA_CFLAGS="%{rpmcflags}" \
        LDFLAGS="%{rpmldflags}"
 
+%{?with_tests:%{__make} check}
+
 %install
 rm -rf $RPM_BUILD_ROOT
-
 %{__make} install \
        prefix=%{_prefix} \
        DESTDIR=$RPM_BUILD_ROOT
@@ -40,10 +67,12 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS NEWS README TODO
-%attr(755,root,root) %{_bindir}/%{name}
+%attr(755,root,root) %{_bindir}/cvs-fast-export
+%attr(755,root,root) %{_bindir}/cvsconvert
 %attr(755,root,root) %{_bindir}/cvssync
-%{_mandir}/man1/*.1*
+%{_mandir}/man1/cvs-fast-export.1*
+%{_mandir}/man1/cvsconvert.1*
+%{_mandir}/man1/cvssync.1*
This page took 0.03098 seconds and 4 git commands to generate.