Bump to wdiff 1.2.2 42/280842/2
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 5 Sep 2022 23:37:01 +0000 (08:37 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 5 Sep 2022 23:39:15 +0000 (08:39 +0900)
Change-Id: I3098aa7758efd7b223ff7255405331d441341deb

packaging/wdiff.manifest [new file with mode: 0644]
packaging/wdiff.spec [new file with mode: 0644]

diff --git a/packaging/wdiff.manifest b/packaging/wdiff.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/wdiff.spec b/packaging/wdiff.spec
new file mode 100644 (file)
index 0000000..1dc9cb9
--- /dev/null
@@ -0,0 +1,56 @@
+Name:           wdiff
+Version:        1.2.2
+Release:        1
+License:        GPL-3.0+
+Summary:        Display Word Differences Between Text Files
+Url:            https://ftp.gnu.org/gnu/wdiff/
+Group:          Productivity/Text/Utilities
+Source:         %{name}-%{version}.tar.bz2
+Source1001:    wdiff.manifest
+
+BuildRequires:  ncurses-devel
+BuildRequires:  makeinfo
+BuildRequires:  gettext-tools
+
+%description
+wdiff compares two files and finds which words have been deleted or
+added to old_file to get new_file. A word is considered to be anything
+between whitespace.
+
+Xwdiff is a handy X Window System front-end, based on Tcl/Tk.
+
+%package lang
+Summary:        Translations for Wdiff
+Group:          Productivity/Text/Utilities
+Requires:       %{name} = %{version}
+
+%description lang
+Contains language specific files for of wdiff.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+LIBS=-lncurses \
+CFLAGS="%{optflags} -pipe -DPROTOTYPES" \
+GETOPT="" \
+%configure
+make
+
+%install
+make "DESTDIR=%{buildroot}" install
+%find_lang %{name}-gnulib
+%find_lang %{name}
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%{_infodir}/wdiff.info*
+/usr/bin/*
+%{_mandir}/man1/*
+
+%files lang -f %{name}-gnulib.lang -f %{name}.lang
+%license COPYING
+%manifest %{name}.manifest
+