rpms/antiword/devel antiword.sh,NONE,1.1 antiword.spec,1.16,1.17

Adrian Reber (adrian) fedora-extras-commits at redhat.com
Sun Apr 6 20:46:43 UTC 2008


Author: adrian

Update of /cvs/extras/rpms/antiword/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv22271

Modified Files:
	antiword.spec 
Added Files:
	antiword.sh 
Log Message:
* Sun Apr 06 2008 Adrian Reber <adrian at lisas.de> - 0.37-7
- added wrapper script from Michal Jaegermann to better
  handle UTF input files (#191060)



--- NEW FILE antiword.sh ---
#!/bin/sh

# a shell wrapper to make 'antiword' usage reasonable on UTF-8 systems.
#
# Michal Jaegermann, michal at harddata.com, 2004/Nov/03
#    - simplify and we may be printing on a Postcript printer
#    - so do not use -i0, 2006/May/08

echo "$@" | egrep -q -- '-p|-a' && lang="env LANG=${LANG%%.*}"
$lang antiword.bin "$@"
exit


Index: antiword.spec
===================================================================
RCS file: /cvs/extras/rpms/antiword/devel/antiword.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- antiword.spec	12 Feb 2008 11:00:34 -0000	1.16
+++ antiword.spec	6 Apr 2008 20:45:54 -0000	1.17
@@ -1,8 +1,9 @@
 Summary:    MS Word to ASCII/Postscript converter
 Name:       antiword
 Version:    0.37
-Release:    6%{?dist}
-Source:     http://www.winfield.demon.nl/linux/%{name}-%{version}.tar.gz
+Release:    7%{?dist}
+Source0:    http://www.winfield.demon.nl/linux/%{name}-%{version}.tar.gz
+Source1:    antiword.sh
 URL:        http://www.winfield.demon.nl/
 Patch0:     antiword-0.32-fix-flags.patch
 License:    GPLv2+
@@ -26,7 +27,8 @@
 %install
 %{__rm} -rf $RPM_BUILD_ROOT
 %{__mkdir_p} $RPM_BUILD_ROOT%{_bindir}
-%{__install} -m 755 antiword $RPM_BUILD_ROOT%{_bindir}
+%{__install} -m 755 antiword $RPM_BUILD_ROOT%{_bindir}/antiword.bin
+%{__install} -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/antiword
 %{__mkdir_p} $RPM_BUILD_ROOT%{_datadir}/%{name}
 %{__cp} -a Resources/* $RPM_BUILD_ROOT%{_datadir}/%{name}
 %{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man1
@@ -50,6 +52,10 @@
 %{_datadir}/%{name}
 
 %changelog
+* Sun Apr 06 2008 Adrian Reber <adrian at lisas.de> - 0.37-7
+- added wrapper script from Michal Jaegermann to better
+  handle UTF input files (#191060)
+
 * Thu Feb 12 2008 Adrian Reber <adrian at lisas.de> - 0.37-6
 - rebuilt for gcc43
 




More information about the fedora-extras-commits mailing list