forked from vbwagner/catdoc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcatdoc.spec
More file actions
75 lines (64 loc) · 1.88 KB
/
catdoc.spec
File metadata and controls
75 lines (64 loc) · 1.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Name: catdoc
Version: 0.97.2
Release: %autorelease
Summary: programs which extract text from Microsoft Office 97-2004 files
License: GPL-2.0-or-later
URL: https://github.com/skierpage/catdoc
Source0: https://github.com/skierpage/%{name}/archive/refs/tags/v%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: make
BuildRequires: tk
Recommends: %{name}-wordview
%description
catdoc is a program which reads MS-Office 1997-2004 Word .doc files and prints
their content as readable text to stdout. It supports multiple character sets
for input and output.
The catdoc package also includes
- `catppt`, which reads MS PowerPoint `.ppt` files and prints their
content.
- `xls2csv`, which reads MS Excel `.xls` files and prints their content as
rows of comma-separated values.
- `wordview`, which displays `catdoc` output in a window.
%package wordview
Summary: Display Microsoft Word .doc files in a graphical window
Requires: catdoc
Requires: tk
%if 0%{?fedora} > 41
Conflicts: %{name} <= 0.95-26
%endif
%if 0%{?fedora} == 41
Conflicts: %{name} <= 0.95-26
%endif
%description wordview
wordview is a program that displays Microsoft Word files in a graphical window
via Tk.
%prep
%autosetup -p1 -n %{name}-%{version}
autoreconf -fi
%build
%configure
%make_build
%install
%make_install
# Test scripts use ../src/catdoc relative to the tests/ build directory,
# so they run the just-built binary without needing %{buildroot}/%{_bindir}.
# Set CHARSETPATH relative to the build tree for the same reason.
%check
CHARSETPATH="$(pwd)/charsets" %make_build check
%files
%license COPYING
%{_bindir}/catdoc
%{_bindir}/catppt
%{_bindir}/xls2csv
%{_mandir}/man1/catdoc.1.*
%{_mandir}/man1/catppt.1.*
%{_mandir}/man1/xls2csv.1.*
%{_datadir}/catdoc
%doc README.md NEWS ALTERNATIVES.md CREDITS
%files wordview
%{_bindir}/wordview
%{_mandir}/man1/wordview.1.*
%changelog
%autochangelog