]> git.pld-linux.org Git - packages/dwdiff.git/blob - dwdiff.spec
icu rebuild
[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:        2.0.4
5 Release:        10
6 License:        GPL v3
7 Group:          Applications/Text
8 Source0:        http://os.ghalkes.nl/dist/%{name}-%{version}.tgz
9 # Source0-md5:  1bb69cbfb76583f69c6912f925fc4cec
10 URL:            http://os.ghalkes.nl/dwdiff.html
11 BuildRequires:  gettext-tools
12 BuildRequires:  libicu-devel
13 BuildRequires:  pkgconfig
14 BuildRequires:  which
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
67 rm -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files -f %{name}.lang
73 %defattr(644,root,root,755)
74 %doc Changelog README
75 %attr(755,root,root) %{_bindir}/*
76 %{_mandir}/man1/dw*.1*
77 %lang(nl) %{_mandir}/nl/man1/dw*.1*
This page took 0.112218 seconds and 3 git commands to generate.