1 Summary: Fast (incremental) CVS->* conversion
7 Source0: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/archive/tip.tar.bz2#/%{name}.tbz2
8 # Source0-md5: 65a791705a1f6a7b5fd718c1af76695e
10 URL: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/
11 BuildRequires: rpm >= 4.4.9-56
12 BuildRequires: sed >= 4.0
13 Requires: ruby >= 1.8.5
15 Requires: ruby-rcsparse
16 # for db/commitset - not packaged
17 #Suggests: sqlite3-ruby
19 Suggests: git-core >= 1.5
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 # nothing to be placed there. we're not noarch only because of ruby packaging
24 %define _enable_debug_packages 0
27 Fromcvs is designed to sync to different target SCM; at the moment
28 there is a hg and git destination available.
33 %if "%{pld_release}" != "ac"
38 %{__sed} -i -e '1i#!%{__ruby}' to*.rb
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir}}
44 install -p togit.rb $RPM_BUILD_ROOT%{_bindir}/togit
45 install -p tohg.rb $RPM_BUILD_ROOT%{_bindir}/tohg
46 install -p todb.rb $RPM_BUILD_ROOT%{_bindir}/todb
47 cp -p fromcvs.rb tagexpander.rb $RPM_BUILD_ROOT%{ruby_vendorlibdir}
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(644,root,root,755)
55 %attr(755,root,root) %{_bindir}/todb
56 %attr(755,root,root) %{_bindir}/togit
57 %attr(755,root,root) %{_bindir}/tohg
58 %{ruby_vendorlibdir}/fromcvs.rb
59 %{ruby_vendorlibdir}/tagexpander.rb