]>
Commit | Line | Data |
---|---|---|
4cc1d131 ER |
1 | Summary: Fast (incremental) CVS->* conversion |
2 | Name: fromcvs | |
3 | Version: 0.1 | |
7b984cdf | 4 | Release: 2 |
4cc1d131 ER |
5 | License: GPL |
6 | Group: Development | |
7 | Source0: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/archive/tip.tar.bz2#/%{name}.tbz2 | |
8 | # Source0-md5: 65a791705a1f6a7b5fd718c1af76695e | |
9 | URL: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/ | |
7b984cdf | 10 | BuildRequires: sed >= 4.0 |
4cc1d131 ER |
11 | Requires: ruby >= 1.8.5 |
12 | Requires: ruby-rbtree | |
13 | Requires: ruby-rcsparse | |
14 | Requires: sqlite3-ruby | |
15 | Suggests: git-core >= 1.5 | |
16 | #BuildArch: noarch | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | # nothing to be placed there. we're not noarch only because of ruby packaging | |
20 | %define _enable_debug_packages 0 | |
21 | ||
22 | %description | |
23 | Fromcvs is designed to sync to different target SCM; at the moment | |
24 | there is a hg and git destination available. | |
25 | ||
26 | %prep | |
27 | %setup -qc | |
28 | mv %{name}-*/* . | |
29 | ||
7b984cdf ER |
30 | # setup shebang |
31 | %{__sed} -i -e '1i#!%{__ruby}' to*.rb | |
32 | chmod a+rx to*.rb | |
33 | ||
4cc1d131 ER |
34 | %install |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir}} | |
37 | install -p togit.rb $RPM_BUILD_ROOT%{_bindir}/togit | |
38 | install -p tohg.rb $RPM_BUILD_ROOT%{_bindir}/tohg | |
39 | install -p todb.rb $RPM_BUILD_ROOT%{_bindir}/todb | |
40 | cp -p fromcvs.rb tagexpander.rb $RPM_BUILD_ROOT%{ruby_vendorlibdir} | |
41 | ||
42 | %clean | |
43 | rm -rf $RPM_BUILD_ROOT | |
44 | ||
45 | %files | |
46 | %defattr(644,root,root,755) | |
47 | %doc README TODO | |
48 | %attr(755,root,root) %{_bindir}/todb | |
49 | %attr(755,root,root) %{_bindir}/togit | |
50 | %attr(755,root,root) %{_bindir}/tohg | |
51 | %{ruby_vendorlibdir}/fromcvs.rb | |
52 | %{ruby_vendorlibdir}/tagexpander.rb |