]> git.pld-linux.org Git - packages/fromcvs.git/blame - fromcvs.spec
- for ac
[packages/fromcvs.git] / fromcvs.spec
CommitLineData
4cc1d131
ER
1Summary: Fast (incremental) CVS->* conversion
2Name: fromcvs
3Version: 0.1
7b984cdf 4Release: 2
4cc1d131
ER
5License: GPL
6Group: Development
7Source0: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/archive/tip.tar.bz2#/%{name}.tbz2
8# Source0-md5: 65a791705a1f6a7b5fd718c1af76695e
d60042dc 9Patch0: ruby19.patch
4cc1d131 10URL: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/
c78feb7a 11BuildRequires: rpm >= 4.4.9-56
7b984cdf 12BuildRequires: sed >= 4.0
4cc1d131
ER
13Requires: ruby >= 1.8.5
14Requires: ruby-rbtree
15Requires: ruby-rcsparse
d60042dc
ER
16# for db/commitset - not packaged
17#Suggests: sqlite3-ruby
18# for togit
4cc1d131
ER
19Suggests: git-core >= 1.5
20#BuildArch: noarch
21BuildRoot: %{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
27Fromcvs is designed to sync to different target SCM; at the moment
28there is a hg and git destination available.
29
30%prep
31%setup -qc
32mv %{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
39chmod a+rx to*.rb
40
4cc1d131
ER
41%install
42rm -rf $RPM_BUILD_ROOT
43install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir}}
44install -p togit.rb $RPM_BUILD_ROOT%{_bindir}/togit
45install -p tohg.rb $RPM_BUILD_ROOT%{_bindir}/tohg
46install -p todb.rb $RPM_BUILD_ROOT%{_bindir}/todb
47cp -p fromcvs.rb tagexpander.rb $RPM_BUILD_ROOT%{ruby_vendorlibdir}
48
49%clean
50rm -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.065364 seconds and 4 git commands to generate.