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