]> git.pld-linux.org Git - packages/fromcvs.git/blame - fromcvs.spec
- ruby build deps
[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
1a7a6c0f
ER
12BuildRequires: rpmbuild(macros) >= 1.272
13BuildRequires: ruby
7b984cdf 14BuildRequires: sed >= 4.0
4cc1d131
ER
15Requires: ruby >= 1.8.5
16Requires: ruby-rbtree
17Requires: ruby-rcsparse
d60042dc
ER
18# for db/commitset - not packaged
19#Suggests: sqlite3-ruby
20# for togit
4cc1d131
ER
21Suggests: git-core >= 1.5
22#BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25# nothing to be placed there. we're not noarch only because of ruby packaging
26%define _enable_debug_packages 0
27
28%description
29Fromcvs is designed to sync to different target SCM; at the moment
30there is a hg and git destination available.
31
32%prep
33%setup -qc
34mv %{name}-*/* .
c78feb7a 35%if "%{pld_release}" != "ac"
d60042dc 36%patch0 -p1
c78feb7a 37%endif
4cc1d131 38
7b984cdf
ER
39# setup shebang
40%{__sed} -i -e '1i#!%{__ruby}' to*.rb
41chmod a+rx to*.rb
42
4cc1d131
ER
43%install
44rm -rf $RPM_BUILD_ROOT
45install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir}}
46install -p togit.rb $RPM_BUILD_ROOT%{_bindir}/togit
47install -p tohg.rb $RPM_BUILD_ROOT%{_bindir}/tohg
48install -p todb.rb $RPM_BUILD_ROOT%{_bindir}/todb
49cp -p fromcvs.rb tagexpander.rb $RPM_BUILD_ROOT%{ruby_vendorlibdir}
50
51%clean
52rm -rf $RPM_BUILD_ROOT
53
54%files
55%defattr(644,root,root,755)
56%doc README TODO
57%attr(755,root,root) %{_bindir}/todb
58%attr(755,root,root) %{_bindir}/togit
59%attr(755,root,root) %{_bindir}/tohg
60%{ruby_vendorlibdir}/fromcvs.rb
61%{ruby_vendorlibdir}/tagexpander.rb
This page took 0.083564 seconds and 4 git commands to generate.