diff --git a/base/catdoc/catdoc.spec b/base/catdoc/catdoc.spec new file mode 100644 index 0000000..61fad8d --- /dev/null +++ b/base/catdoc/catdoc.spec @@ -0,0 +1,159 @@ +Name: catdoc +Version: 0.95 +Release: 19%{?dist} +Summary: A program which converts Microsoft office files to plain text +License: GPL-1.0-or-later +URL: http://www.wagner.pp.ru/~vitus/software/catdoc/ +Source0: http://ftp.wagner.pp.ru/pub/catdoc/%{name}-%{version}.tar.gz +Patch0: makefilefix.patch +BuildRequires: gcc +BuildRequires: tk +BuildRequires: make +Requires: tk + +%description +catdoc is program which reads one or more Microsoft word files +and outputs text, contained insinde them to standard output. +Therefore it does same work for.doc files, as unix cat +command for plain ASCII files. +It is now accompanied by xls2csv - program which converts +Excel spreadsheet into comma-separated value file, +and catppt - utility to extract textual information +from Powerpoint files + +%prep +%setup -q +%patch -P0 -p1 -b .makefilefix + +%build +%configure +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT + +%files +%license COPYING +%{_bindir}/catdoc +%{_bindir}/catppt +%{_bindir}/wordview +%{_bindir}/xls2csv +%{_mandir}/man1/catdoc.1.* +%{_mandir}/man1/catppt.1.* +%{_mandir}/man1/wordview.1.* +%{_mandir}/man1/xls2csv.1.* +%{_datadir}/catdoc +%doc README NEWS + +%changelog +* Wed Jul 17 2024 Fedora Release Engineering - 0.95-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Mon Jun 17 2024 Miroslav Suchý - 0.95-18 +- convert license to SPDX + +* Tue Jan 23 2024 Fedora Release Engineering - 0.95-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 0.95-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 0.95-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Jan 18 2023 Fedora Release Engineering - 0.95-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 0.95-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 0.95-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 0.95-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 0.95-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Mon Jul 27 2020 Fedora Release Engineering - 0.95-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jan 28 2020 Fedora Release Engineering - 0.95-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 0.95-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 0.95-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 0.95-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 0.95-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 0.95-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 0.95-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jun 20 2017 Tom Callaway - 0.95-1 +- update to 0.95, resolves licensing issue (bz1295166) + +* Fri Feb 10 2017 Fedora Release Engineering - 0.94.2-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 0.94.2-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Yaakov Selkowitz - 0.94.2-16 +- Fix build for https://fedoraproject.org/wiki/Changes/Harden_All_Packages + +* Wed Jun 17 2015 Fedora Release Engineering - 0.94.2-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Fri Aug 15 2014 Fedora Release Engineering - 0.94.2-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.94.2-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.94.2-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 0.94.2-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Fri Nov 02 2012 Adel Gadllah - 0.94.2-10 +- Fix buffer overflow vulnerability; RH#872390 / RH#872391 + +* Wed Jul 18 2012 Fedora Release Engineering - 0.94.2-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Thu Jan 12 2012 Fedora Release Engineering - 0.94.2-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 0.94.2-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 0.94.2-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Mon Feb 23 2009 Fedora Release Engineering - 0.94.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Fri Feb 08 2008 Adel Gadllah 0.94.2-4 +- Rebuild for gcc-4.3 + +* Sun Nov 11 2007 Adel Gadllah 0.94.2-3 +- Preserve timestamps + +* Sun Nov 03 2007 Adel Gadllah 0.94.2-2 +- Require and BuildRequire tk +- Fix changelog date + +* Thu Oct 20 2007 Adel Gadllah 0.94.2-1 +- Initial build diff --git a/base/catdoc/makefilefix.patch b/base/catdoc/makefilefix.patch new file mode 100644 index 0000000..98309b4 --- /dev/null +++ b/base/catdoc/makefilefix.patch @@ -0,0 +1,70 @@ +diff -up catdoc-0.95/charsets/Makefile.in.makefilefix catdoc-0.95/charsets/Makefile.in +--- catdoc-0.95/charsets/Makefile.in.makefilefix 2016-04-26 11:13:38.000000000 -0400 ++++ catdoc-0.95/charsets/Makefile.in 2017-06-20 14:17:55.494732868 -0400 +@@ -30,15 +30,15 @@ all: @charsetcheck@ + clean: + install: install-dirs install-spc install-charsets + install-spc: tex.spc ascii.spc tex.rpl ascii.rpl +- $(INSTALL) -m 644 ascii.spc $(installroot)$(LIB_DIR)/ascii$(SPEC_EXT) +- $(INSTALL) -m 644 tex.spc $(installroot)$(LIB_DIR)/tex$(SPEC_EXT) +- $(INSTALL) -m 644 ascii.rpl $(installroot)$(LIB_DIR)/ascii$(REPL_EXT) +- $(INSTALL) -m 644 tex.rpl $(installroot)$(LIB_DIR)/tex$(REPL_EXT) ++ $(INSTALL) -p -m 644 ascii.spc $(DESTDIR)$(installroot)$(LIB_DIR)/ascii$(SPEC_EXT) ++ $(INSTALL) -p -m 644 tex.spc $(DESTDIR)$(installroot)$(LIB_DIR)/tex$(SPEC_EXT) ++ $(INSTALL) -p -m 644 ascii.rpl $(DESTDIR)$(installroot)$(LIB_DIR)/ascii$(REPL_EXT) ++ $(INSTALL) -p -m 644 tex.rpl $(DESTDIR)$(installroot)$(LIB_DIR)/tex$(REPL_EXT) + install-charsets: + for i in *.txt; do\ +- $(INSTALL) -m 0644 $$i $(installroot)$(LIB_DIR);\ ++ $(INSTALL) -p -m 0644 $$i $(DESTDIR)$(installroot)$(LIB_DIR);\ + done + install-dirs: +- ../mkinstalldirs $(installroot)$(LIB_DIR) ++ ../mkinstalldirs $(DESTDIR)$(installroot)$(LIB_DIR) + distclean: + rm Makefile +diff -up catdoc-0.95/doc/Makefile.in.makefilefix catdoc-0.95/doc/Makefile.in +--- catdoc-0.95/doc/Makefile.in.makefilefix 2017-06-20 14:17:55.494732868 -0400 ++++ catdoc-0.95/doc/Makefile.in 2017-06-20 14:20:00.266641962 -0400 +@@ -30,13 +30,13 @@ clean: + wordview.txt wordview.ps build + install: @installtargets@ + install-catdoc: catdoc.1 xls2csv.1 catppt.1 +- ../mkinstalldirs $(installroot)$(mandir) +- $(INSTALL) -m 644 catdoc.1 $(installroot)$(mandir)/man1/catdoc.1 +- $(INSTALL) -m 644 xls2csv.1 $(installroot)$(mandir)/man1/xls2csv.1 +- $(INSTALL) -m 644 catppt.1 $(installroot)$(mandir)/man1/catppt.1 ++ ../mkinstalldirs $(DESTDIR)$(installroot)$(mandir)/man1/ ++ $(INSTALL) -m 644 catdoc.1 $(DESTDIR)$(installroot)$(mandir)/man1/catdoc.1 ++ $(INSTALL) -m 644 xls2csv.1 $(DESTDIR)$(installroot)$(mandir)/man1/xls2csv.1 ++ $(INSTALL) -m 644 catppt.1 $(DESTDIR)$(installroot)$(mandir)/man1/catppt.1 + install-wordview: +- ../mkinstalldirs $(installroot)$(mandir) +- $(INSTALL) -m 644 wordview.1 $(installroot)$(mandir)/man1/wordview.1 ++ ../mkinstalldirs $(DESTDIR)$(installroot)$(mandir) ++ $(INSTALL) -m 644 wordview.1 $(DESTDIR)$(installroot)$(mandir)/man1/wordview.1 + distclean: clean + $(RM) Makefile catdoc.1 xls2csv.1 catppt.1 wordview.1 + +diff -up catdoc-0.95/src/Makefile.in.makefilefix catdoc-0.95/src/Makefile.in +--- catdoc-0.95/src/Makefile.in.makefilefix 2016-04-26 11:13:38.000000000 -0400 ++++ catdoc-0.95/src/Makefile.in 2017-06-20 14:17:55.494732868 -0400 +@@ -84,13 +84,13 @@ catppt: $(OBJPPT) + + install: @installtargets@ + install-catdoc:catdoc xls2csv catppt +- ../mkinstalldirs $(installroot)$(bindir) +- $(INSTALL) -m 755 catdoc $(installroot)$(bindir)/catdoc +- $(INSTALL) -m 755 xls2csv $(installroot)$(bindir)/xls2csv +- $(INSTALL) -m 755 catppt $(installroot)$(bindir)/catppt ++ ../mkinstalldirs $(DESTDIR)$(installroot)$(bindir) ++ $(INSTALL) -p -m 755 catdoc $(DESTDIR)$(installroot)$(bindir)/catdoc ++ $(INSTALL) -p -m 755 xls2csv $(DESTDIR)$(installroot)$(bindir)/xls2csv ++ $(INSTALL) -p -m 755 catppt $(DESTDIR)$(installroot)$(bindir)/catppt + install-wordview: wordview + ../mkinstalldirs $(installroot)$(bindir) +- $(INSTALL) -m 755 wordview $(installroot)$(bindir)/wordview ++ $(INSTALL) -p -m 755 wordview $(DESTDIR)$(installroot)$(bindir)/wordview + wordview: wordview.tcl + echo "#! $(WISH)" >wordview + echo set charset_lib "\"$(CHARSETPATH)\"">>wordview