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: rpmbuild(macros) >= 1.272
14 BuildRequires: sed >= 4.0
15 Requires: ruby >= 1.8.5
17 Requires: ruby-rcsparse
18 # for db/commitset - not packaged
19 #Suggests: sqlite3-ruby
21 Suggests: git-core >= 1.5
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Fromcvs is designed to sync to different target SCM; at the moment
27 there is a hg and git destination available.
32 %if "%{pld_release}" != "ac"
37 %{__sed} -i -e '1i#!%{__ruby}' to*.rb
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir}}
43 install -p togit.rb $RPM_BUILD_ROOT%{_bindir}/togit
44 install -p tohg.rb $RPM_BUILD_ROOT%{_bindir}/tohg
45 install -p todb.rb $RPM_BUILD_ROOT%{_bindir}/todb
46 cp -p fromcvs.rb tagexpander.rb $RPM_BUILD_ROOT%{ruby_vendorlibdir}
49 rm -rf $RPM_BUILD_ROOT
52 %defattr(644,root,root,755)
54 %attr(755,root,root) %{_bindir}/todb
55 %attr(755,root,root) %{_bindir}/togit
56 %attr(755,root,root) %{_bindir}/tohg
57 %{ruby_vendorlibdir}/fromcvs.rb
58 %{ruby_vendorlibdir}/tagexpander.rb