1 %define pkgname diff-lcs
2 Summary: a Ruby port of Algorithm::Diff
3 Summary(pl.UTF-8): Port Algorithm::Diff dla języka Ruby
7 License: GPL v2+ or Ruby or Artistic
8 Group: Development/Libraries
9 Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
10 # Source0-md5: 86595b4618756d1dceac28e6104e285f
11 URL: http://diff-lcs.rubyforge.org/
12 BuildRequires: rpm-rubyprov
13 BuildRequires: rpmbuild(macros) >= 1.656
14 Provides: ruby-Diff-LCS
15 Obsoletes: ruby-Diff-LCS
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Diff::LCS is a port of Algorithm::Diff that uses the McIlroy-Hunt
21 longest common subsequence (LCS) algorithm to compute intelligent
22 differences between two sequenced enumerable containers. The
23 implementation is based on Mario I. Wolczko's Smalltalk version (1.2,
24 1993) and Ned Konz's Perl version (Algorithm::Diff).
26 %description -l pl.UTF-8
27 Diff::LCS to port Algorithm::Diff używający algorytmu najdłuższego
28 wspólnego podciągu (LCS - longest common subsequence) McIlroya-Hunta
29 do obliczania inteligentnych różnic między dwoma uporządkowanymi
30 kontenerami. Implementacja jest oparta na wersji dla Smalltalka
31 autorstwa Mario I. Wolczko (1.2 z roku 1993) i wersji dla Perla
32 autorstwa Neda Konza (Algorithm::Diff).
35 Summary: HTML documentation for %{pkgname}
36 Summary(pl.UTF-8): Dokumentacja w formacie HTML dla %{pkgname}
38 Requires: ruby >= 1:1.8.7-4
41 HTML documentation for %{pkgname}.
43 %description rdoc -l pl.UTF-8
44 Dokumentacja w formacie HTML dla %{pkgname}.
47 Summary: ri documentation for %{pkgname}
48 Summary(pl.UTF-8): Dokumentacja w formacie ri dla %{pkgname}
53 ri documentation for %{pkgname}.
55 %description ri -l pl.UTF-8
56 Dokumentacji w formacie ri dla %{pkgname}.
59 Summary: Tool to find differences in HTML files
60 Summary(pl.UTF-8): Narzędzie do znajdowania różnic w plikach HTML
61 Group: Applications/Text
62 Requires: ruby-text-format >= 0.64
64 %description -n htmldiff
65 Tool to find differences in HTML files.
67 %description -n htmldiff -l pl.UTF-8
68 Narzędzie do znajdowania różnic w plikach HTML.
71 Summary: Ruby Diff tool
72 Summary(pl.UTF-8): Narzędzie Ruby Diff
73 Group: Applications/Text
78 %description ldiff -l pl.UTF-8
82 %setup -q -n %{pkgname}-%{version}
83 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
88 rm -r ri/{Array,String}
93 rm -rf $RPM_BUILD_ROOT
94 install -d $RPM_BUILD_ROOT{%{_bindir},%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir}}
95 install -p bin/* $RPM_BUILD_ROOT%{_bindir}
96 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
97 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
98 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
101 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
105 %doc README.rdoc History.rdoc License.rdoc
106 %dir %{ruby_vendorlibdir}/diff
107 %{ruby_vendorlibdir}/diff-lcs.rb
108 %{ruby_vendorlibdir}/diff/lcs.rb
109 %{ruby_vendorlibdir}/diff/lcs
112 %defattr(644,root,root,755)
113 %{ruby_rdocdir}/%{name}-%{version}
116 %defattr(644,root,root,755)
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/htmldiff
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_bindir}/ldiff