source: spec/trunk/SPECS/dwdiff.spec@ 1569

Last change on this file since 1569 was 1536, checked in by tellie, 7 years ago

spec: dwdiff: Release version 2.1.2-1.

File size: 2.1 KB
Line 
1Name: dwdiff
2Version: 2.1.2
3Release: 1%{?dist}
4Summary: Front end to diff for comparing on a per word basis
5
6Group: Applications/Text
7License: GPLv3
8URL: http://os.ghalkes.nl/dwdiff.html
9#Source0: http://os.ghalkes.nl/dist/%{name}-%{version}.tgz
10%scm_source github http://github.com/TeLLie/%{name}-os2 master
11
12Requires: diffutils
13BuildRequires: gcc
14BuildRequires: gettext
15BuildRequires: libicu-devel
16
17%description
18dwdiff is a front-end for the diff program that operates at the word level
19instead of the line level. It is different from wdiff in that it allows the
20user to specify what should be considered whitespace, and in that it takes an
21optional list of characters that should be considered delimiters. Delimiters
22are single characters that are treated as if they are words, even when there
23is no whitespace separating them from preceding words or delimiters.
24
25%prep
26#%setup -q
27%scm_setup
28
29%build
30#dwdiff uses its own custom configure script
31
32export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
33./configure --prefix=%{_prefix} \
34 --binddir=%{_datadir}/locale \
35 --docdir='share/doc/dwdiff' \
36 CFLAGS="%{optflags}" \
37 LDLIBS="-lintl8_dll -lcx"
38
39make %{?_smp_mflags}
40
41%install
42#rm -rf %{buildroot}
43make install DESTDIR=%{buildroot}
44%find_lang %{name}
45#get rid of manpages other than UTF8
46rm -rf %{buildroot}%{_mandir}/nl.ISO8859-1/man1/
47rm -rf %{buildroot}%{_mandir}/nl.ISO8859-15/man1/
48mkdir %{buildroot}%{_mandir}/man1/nl/
49mv %{buildroot}%{_mandir}/nl.UTF-8/man1/dwdiff.1 %{buildroot}%{_mandir}/nl/man1/dwdiff.1
50mv %{buildroot}%{_mandir}/nl.UTF-8/man1/dwfilter.1 %{buildroot}%{_mandir}/nl/man1/dwfilter.1
51
52%files -f %{name}.lang
53#%files
54%defattr(-,root,root)
55%{_bindir}/dwdiff.exe
56%{_bindir}/dwfilter.exe
57%doc README COPYING Changelog
58%{_mandir}/man1/dwdiff.1*
59%{_mandir}/man1/dwfilter.1*
60
61%lang(nl) %{_mandir}/nl/man1/dwdiff.1*
62%lang(nl) %{_mandir}/nl/man1/dwfilter.1*
63
64%changelog
65* Fri Dec 14 2018 Elbert Pol <elbert.pol@gmail.com> - 2.1.2-1
66- First OS/2 rpm release
Note: See TracBrowser for help on using the repository browser.