]> git.pld-linux.org Git - packages/fromcvs.git/blob - fromcvs.spec
- for ac
[packages/fromcvs.git] / fromcvs.spec
1 Summary:        Fast (incremental) CVS->* conversion
2 Name:           fromcvs
3 Version:        0.1
4 Release:        2
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 Patch0:         ruby19.patch
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
14 Requires:       ruby-rbtree
15 Requires:       ruby-rcsparse
16 # for db/commitset - not packaged
17 #Suggests:      sqlite3-ruby
18 # for togit
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}-*/* .
33 %if "%{pld_release}" != "ac"
34 %patch0 -p1
35 %endif
36
37 # setup shebang
38 %{__sed} -i -e '1i#!%{__ruby}' to*.rb
39 chmod a+rx to*.rb
40
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
This page took 0.156428 seconds and 3 git commands to generate.