| 1 | Name: dwdiff
|
|---|
| 2 | Version: 2.1.2
|
|---|
| 3 | Release: 1%{?dist}
|
|---|
| 4 | Summary: Front end to diff for comparing on a per word basis
|
|---|
| 5 |
|
|---|
| 6 | Group: Applications/Text
|
|---|
| 7 | License: GPLv3
|
|---|
| 8 | URL: 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 |
|
|---|
| 12 | Requires: diffutils
|
|---|
| 13 | BuildRequires: gcc
|
|---|
| 14 | BuildRequires: gettext
|
|---|
| 15 | BuildRequires: libicu-devel
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | dwdiff is a front-end for the diff program that operates at the word level
|
|---|
| 19 | instead of the line level. It is different from wdiff in that it allows the
|
|---|
| 20 | user to specify what should be considered whitespace, and in that it takes an
|
|---|
| 21 | optional list of characters that should be considered delimiters. Delimiters
|
|---|
| 22 | are single characters that are treated as if they are words, even when there
|
|---|
| 23 | is 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 |
|
|---|
| 32 | export 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 |
|
|---|
| 39 | make %{?_smp_mflags}
|
|---|
| 40 |
|
|---|
| 41 | %install
|
|---|
| 42 | #rm -rf %{buildroot}
|
|---|
| 43 | make install DESTDIR=%{buildroot}
|
|---|
| 44 | %find_lang %{name}
|
|---|
| 45 | #get rid of manpages other than UTF8
|
|---|
| 46 | rm -rf %{buildroot}%{_mandir}/nl.ISO8859-1/man1/
|
|---|
| 47 | rm -rf %{buildroot}%{_mandir}/nl.ISO8859-15/man1/
|
|---|
| 48 | mkdir %{buildroot}%{_mandir}/man1/nl/
|
|---|
| 49 | mv %{buildroot}%{_mandir}/nl.UTF-8/man1/dwdiff.1 %{buildroot}%{_mandir}/nl/man1/dwdiff.1
|
|---|
| 50 | mv %{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
|
|---|