]> git.pld-linux.org Git - SPECS.git/blob - ruby-xhtmldiff.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / ruby-xhtmldiff.spec
1 %define pkgname xhtmldiff
2 Summary:        Ruby XHTML difference finder
3 Summary(pl.UTF-8):      Narzędzie do znajdywania różnic w XHTML-u napisane w Rubym
4 Name:           ruby-%{pkgname}
5 Version:        1.2.2
6 Release:        3
7 License:        Ruby
8 Source0:        http://theinternetco.net/projects/ruby/%{pkgname}-%{version}.tar.gz
9 # Source0-md5:  b1536c3a2f378a4e918dcc5fae2038b3
10 Group:          Development/Libraries
11 URL:            http://theinternetco.net/projects/ruby/xhtmldiff
12 BuildRequires:  rpm-rubyprov
13 BuildRequires:  rpmbuild(macros) >= 1.665
14 Requires:       ruby-diff-lcs
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 XHTMLDiff finds the difference between any two XHTML documents and
20 returns the result as valid XHTML with <ins> and <del> tags.
21
22 %description -l pl.UTF-8
23 XHTMLDiff znajduje różnice między dwoma dokumentami XHTML i zwraca
24 wynik jako poprawny XHTML ze znacznikami <ins> i <del>.
25
26 %package rdoc
27 Summary:        HTML documentation for %{pkgname}
28 Summary(pl.UTF-8):      Dokumentacja w formacie HTML dla %{pkgname}
29 Group:          Documentation
30 Requires:       ruby >= 1:1.8.7-4
31
32 %description rdoc
33 HTML documentation for %{pkgname}.
34
35 %description rdoc -l pl.UTF-8
36 Dokumentacja w formacie HTML dla %{pkgname}.
37
38 %package ri
39 Summary:        ri documentation for %{pkgname}
40 Summary(pl.UTF-8):      Dokumentacja w formacie ri dla %{pkgname}
41 Group:          Documentation
42 Requires:       ruby
43
44 %description ri
45 ri documentation for %{pkgname}.
46
47 %description ri -l pl.UTF-8
48 Dokumentacji w formacie ri dla %{pkgname}.
49
50 %package -n xhtmldiff
51 Summary:        Find differences in XHTML documents
52 Summary(pl.UTF-8):      Znajdywanie różnic w dokumentach XHTML
53 Group:          Applications/Text
54
55 %description -n xhtmldiff
56 Find differences in XHTML documents.
57
58 %description -n xhtmldiff -l pl.UTF-8
59 Znajdywanie różnic w dokumentach XHTML.
60
61 %prep
62 %setup -q -n %{pkgname}-%{version}
63
64 %build
65 rdoc --ri --op ri lib
66 rdoc --op rdoc lib
67 rm -r ri/{Math,REXML}
68 rm ri/created.rid
69 rm ri/cache.ri
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_ridir},%{ruby_rdocdir},%{_bindir}}
74
75 install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
76 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
77 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
78
79 cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
80 cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
86 %defattr(644,root,root,755)
87 %{ruby_vendorlibdir}/xhtmldiff.rb
88
89 %files rdoc
90 %defattr(644,root,root,755)
91 %{ruby_rdocdir}/%{name}-%{version}
92
93 %files ri
94 %defattr(644,root,root,755)
95 %{ruby_ridir}/XHTMLDiff
96
97 %files -n xhtmldiff
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/xhtmldiff
This page took 0.149292 seconds and 3 git commands to generate.