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