]>
Commit | Line | Data |
---|---|---|
309570b0 | 1 | Summary: diff frontend that operates on words |
ade38dc9 | 2 | Summary(pl.UTF-8): frontend do diffa operujący na słowach |
309570b0 | 3 | Name: dwdiff |
7e866fb7 | 4 | Version: 2.0.4 |
c0189ef4 | 5 | Release: 9 |
309570b0 | 6 | License: GPL v3 |
ade38dc9 | 7 | Group: Applications/Text |
309570b0 | 8 | Source0: http://os.ghalkes.nl/dist/%{name}-%{version}.tgz |
7e866fb7 | 9 | # Source0-md5: 1bb69cbfb76583f69c6912f925fc4cec |
309570b0 | 10 | URL: http://os.ghalkes.nl/dwdiff.html |
3099f700 | 11 | BuildRequires: gettext-tools |
309570b0 | 12 | BuildRequires: libicu-devel |
7a0e9997 | 13 | BuildRequires: pkgconfig |
14 | BuildRequires: which | |
309570b0 AG |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | dwdiff is a front-end for the diff program that operates at the word | |
19 | level instead of the line level. It is different from wdiff in that it | |
20 | allows the user to specify what should be considered whitespace, and | |
21 | in that it takes an optional list of characters that should be | |
22 | considered delimiters. Delimiters are single characters that are | |
23 | treated as if they are words, even when there is no whitespace | |
24 | separating them from preceding words or delimiters. dwdiff is mostly | |
25 | commandline compatible with wdiff. Only the --autopager, --terminal | |
26 | and --avoid-wraps options are not supported. | |
27 | ||
28 | The default output from dwdiff is the new text, with the deleted and | |
29 | inserted parts annotated with markers. Command line options are | |
30 | available to change both what is printed, and the markers. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | dwdiff to frontend do programu diff operujący na słowach zamiast na | |
34 | liniach. W odróżnieniu od wdiff pozwala użytkownikowi na określenie co | |
35 | traktować jako biały znak oraz ustalenie listy delimetrów. Delimeter | |
36 | to pojedynczy znak traktowany jak słowo nawet jeśli nie ma białych | |
37 | znaków oddzielających go od innych słów czy delimetrów. dwdiff jest w | |
38 | dużej mierze kompatybilny z wdiff, jedynie opcje --autopager, | |
39 | --terminal i --avoid-wraps nie są wspierane. | |
40 | ||
41 | Domyślnym formatem wyjściowym dwdiff jest nowy tekst z częściami | |
42 | usuniętymi i dodanymi oznaczonymi markerami. Z poziomu linii poleceń | |
43 | możliwe jest określenie co i za pomocą jakich znaczników ma być | |
44 | wyświetlane. | |
45 | ||
46 | %prep | |
47 | %setup -q | |
48 | ||
49 | %build | |
50 | # not a typical configure | |
51 | ./configure \ | |
52 | --prefix="$RPM_BUILD_ROOT%{_prefix}" \ | |
53 | --mandir="$RPM_BUILD_ROOT%{_mandir}" \ | |
54 | CC="%{__cc}" \ | |
55 | CFLAGS="%{rpmcflags}" \ | |
56 | LDFLAGS="%{rpmldflags}" | |
57 | %{__make} | |
58 | ||
59 | %install | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}} | |
62 | ||
63 | %{__make} install | |
64 | ||
65 | %find_lang %{name} | |
66 | ||
cd66f3ec AM |
67 | rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
68 | ||
309570b0 AG |
69 | %clean |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files -f %{name}.lang | |
73 | %defattr(644,root,root,755) | |
ade38dc9 | 74 | %doc Changelog README |
309570b0 | 75 | %attr(755,root,root) %{_bindir}/* |
f6ec70f4 PS |
76 | %{_mandir}/man1/dw*.1* |
77 | %lang(nl) %{_mandir}/nl/man1/dw*.1* |