]> git.pld-linux.org Git - packages/fromcvs.git/blame - fromcvs.spec
- rpm5 compatible source0 url
[packages/fromcvs.git] / fromcvs.spec
CommitLineData
4cc1d131
ER
1Summary: Fast (incremental) CVS->* conversion
2Name: fromcvs
3Version: 0.1
ca3ae77d 4Release: 3
4cc1d131
ER
5License: GPL
6Group: Development
ca3ae77d 7Source0: http://ww2.fs.ei.tum.de/~corecode/hg/fromcvs/archive/tip.tar.bz2?/%{name}.tbz2
4cc1d131 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 21Suggests: git-core >= 1.5
ca3ae77d 22BuildArch: noarch
4cc1d131
ER
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
4cc1d131
ER
25%description
26Fromcvs is designed to sync to different target SCM; at the moment
27there is a hg and git destination available.
28
29%prep
30%setup -qc
31mv %{name}-*/* .
c78feb7a 32%if "%{pld_release}" != "ac"
d60042dc 33%patch0 -p1
c78feb7a 34%endif
4cc1d131 35
7b984cdf
ER
36# setup shebang
37%{__sed} -i -e '1i#!%{__ruby}' to*.rb
38chmod a+rx to*.rb
39
4cc1d131
ER
40%install
41rm -rf $RPM_BUILD_ROOT
42install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir}}
43install -p togit.rb $RPM_BUILD_ROOT%{_bindir}/togit
44install -p tohg.rb $RPM_BUILD_ROOT%{_bindir}/tohg
45install -p todb.rb $RPM_BUILD_ROOT%{_bindir}/todb
46cp -p fromcvs.rb tagexpander.rb $RPM_BUILD_ROOT%{ruby_vendorlibdir}
47
48%clean
49rm -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.089609 seconds and 5 git commands to generate.