avoid build failure with using Getopt::Std;

This commit is contained in:
Ondřej Vašík 2012-08-10 10:45:16 +02:00
parent cbb89d31a4
commit b8c3ad7e4f
2 changed files with 29 additions and 1 deletions

21
openjade-getoptperl.patch Normal file
View File

@ -0,0 +1,21 @@
diff -urNp openjade-1.3.2-orig/msggen.pl openjade-1.3.2/msggen.pl
--- openjade-1.3.2-orig/msggen.pl 2002-10-20 23:47:23.000000000 +0200
+++ openjade-1.3.2/msggen.pl 2012-08-10 10:38:28.019081661 +0200
@@ -4,6 +4,7 @@
# See the file COPYING for copying permission.
use POSIX;
+use Getopt::Std;
# Package and version.
$package = 'openjade';
@@ -18,8 +19,7 @@ $gen_c = 0;
undef $opt_l;
undef $opt_p;
undef $opt_t;
-do 'getopts.pl';
-&Getopts('l:p:t:');
+getopts('l:p:t:');
$module = $opt_l;
$pot_file = $opt_p;

View File

@ -1,7 +1,7 @@
Summary: A DSSSL implementation Summary: A DSSSL implementation
Name: openjade Name: openjade
Version: 1.3.2 Version: 1.3.2
Release: 40%{?dist} Release: 41%{?dist}
Requires: sgml-common Requires: sgml-common
URL: http://openjade.sourceforge.net/ URL: http://openjade.sourceforge.net/
Source: http://download.sourceforge.net/openjade/openjade-%{version}.tar.gz Source: http://download.sourceforge.net/openjade/openjade-%{version}.tar.gz
@ -15,6 +15,8 @@ Patch2: openjade-deplibs.patch
Patch3: openjade-nola.patch Patch3: openjade-nola.patch
#upstream bug tracker fix for build with gcc46 #upstream bug tracker fix for build with gcc46
Patch4: openjade-1.3.2-gcc46.patch Patch4: openjade-1.3.2-gcc46.patch
#use Getopt:Std to prevent build failure
Patch5: openjade-getoptperl.patch
License: BSD License: BSD
Group: Applications/Text Group: Applications/Text
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -24,6 +26,7 @@ Provides: jade = %{version}-%{release}
BuildRequires: opensp-devel BuildRequires: opensp-devel
%description %description
OpenJade is an implementation of the ISO/IEC 10179:1996 standard DSSSL OpenJade is an implementation of the ISO/IEC 10179:1996 standard DSSSL
(Document Style Semantics and Specification Language). OpenJade is (Document Style Semantics and Specification Language). OpenJade is
@ -40,6 +43,7 @@ XML, RTF, TeX, MIF (FrameMaker), SGML, or XML.
%patch2 -p1 -b .deplibs %patch2 -p1 -b .deplibs
%patch3 -p1 -b .nola %patch3 -p1 -b .nola
%patch4 -p1 -b .gcc46 %patch4 -p1 -b .gcc46
%patch5 -p1 -b .getopt
%build %build
@ -96,6 +100,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/sgml/%{name}-%{version} %{_datadir}/sgml/%{name}-%{version}
%changelog %changelog
* Fri Aug 10 2012 Ondrej Vasik <ovasik@redhat.com> 1.3.2-41
- avoid build failure with using Getopt::Std;
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-40 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-40
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild