]>
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 | |
d60042dc | 9 | Patch0: ruby19.patch |
4cc1d131 | 10 | URL: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/ |
c78feb7a | 11 | BuildRequires: rpm >= 4.4.9-56 |
7b984cdf | 12 | BuildRequires: sed >= 4.0 |
4cc1d131 ER |
13 | Requires: ruby >= 1.8.5 |
14 | Requires: ruby-rbtree | |
15 | Requires: ruby-rcsparse | |
d60042dc ER |
16 | # for db/commitset - not packaged |
17 | #Suggests: sqlite3-ruby | |
18 | # for togit | |
4cc1d131 ER |
19 | Suggests: git-core >= 1.5 |
20 | #BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | # nothing to be placed there. we're not noarch only because of ruby packaging | |
24 | %define _enable_debug_packages 0 | |
25 | ||
26 | %description | |
27 | Fromcvs is designed to sync to different target SCM; at the moment | |
28 | there is a hg and git destination available. | |
29 | ||
30 | %prep | |
31 | %setup -qc | |
32 | mv %{name}-*/* . | |
c78feb7a | 33 | %if "%{pld_release}" != "ac" |
d60042dc | 34 | %patch0 -p1 |
c78feb7a | 35 | %endif |
4cc1d131 | 36 | |
7b984cdf ER |
37 | # setup shebang |
38 | %{__sed} -i -e '1i#!%{__ruby}' to*.rb | |
39 | chmod a+rx to*.rb | |
40 | ||
4cc1d131 ER |
41 | %install |
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} | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %doc README TODO | |
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 |