]> git.pld-linux.org Git - packages/fromcvs.git/blob - fromcvs.spec
- rpm5 compatible source0 url
[packages/fromcvs.git] / fromcvs.spec
1 Summary:        Fast (incremental) CVS->* conversion
2 Name:           fromcvs
3 Version:        0.1
4 Release:        3
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:  rpmbuild(macros) >= 1.272
13 BuildRequires:  ruby
14 BuildRequires:  sed >= 4.0
15 Requires:       ruby >= 1.8.5
16 Requires:       ruby-rbtree
17 Requires:       ruby-rcsparse
18 # for db/commitset - not packaged
19 #Suggests:      sqlite3-ruby
20 # for togit
21 Suggests:       git-core >= 1.5
22 BuildArch:      noarch
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Fromcvs is designed to sync to different target SCM; at the moment
27 there is a hg and git destination available.
28
29 %prep
30 %setup -qc
31 mv %{name}-*/* .
32 %if "%{pld_release}" != "ac"
33 %patch0 -p1
34 %endif
35
36 # setup shebang
37 %{__sed} -i -e '1i#!%{__ruby}' to*.rb
38 chmod a+rx to*.rb
39
40 %install
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}
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %files
52 %defattr(644,root,root,755)
53 %doc README TODO
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
This page took 0.056269 seconds and 3 git commands to generate.