diff --git a/openjade-1.3.2-getopts.patch b/openjade-1.3.2-getopts.patch new file mode 100644 index 0000000..17c324e --- /dev/null +++ b/openjade-1.3.2-getopts.patch @@ -0,0 +1,20 @@ +--- ./msggen.pl.orig 2012-06-11 11:35:22.000000000 +0000 ++++ ./msggen.pl 2012-06-11 11:37:06.000000000 +0000 +@@ -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; + diff --git a/openjade.changes b/openjade.changes index e450863..9d7ca2a 100644 --- a/openjade.changes +++ b/openjade.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 11 13:39:17 CEST 2012 - mls@suse.de + +- don't use obsolete getops.pl + ------------------------------------------------------------------- Sun Nov 27 06:52:41 UTC 2011 - coolo@suse.com diff --git a/openjade.spec b/openjade.spec index 301e5ba..c4c43a7 100644 --- a/openjade.spec +++ b/openjade.spec @@ -1,7 +1,7 @@ # # spec file for package openjade # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,15 +15,15 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # - - Name: openjade -BuildRequires: gcc-c++ libtool opensp-devel -License: MIT -Group: Productivity/Publishing/SGML +BuildRequires: gcc-c++ +BuildRequires: libtool +BuildRequires: opensp-devel Version: 1.3.2 Release: 0 Summary: DSSSL Engine for SGML Documents +License: MIT +Group: Productivity/Publishing/SGML Source: http://switch.dl.sourceforge.net/sourceforge/openjade/openjade-1.3.2.tar.bz2 Source1: jade_style-sheet.dtd Source2: %{name}-README.SuSE @@ -31,6 +31,7 @@ Patch1: openjade-1.3.1-autoconf.dif Patch2: openjade-1.3.2-makefile.patch Patch3: openjade-1.3.2-shared.patch Patch4: gcc46_default_ctors.patch +Patch5: openjade-1.3.2-getopts.patch # Conflicts: jade_dsl Obsoletes: jade_dsl Provides: jade jade_dsl @@ -67,9 +68,7 @@ Authors: Sebastian Rahtz %package devel -License: MIT Summary: DSSSL Engine (development package) -Group: Productivity/Publishing/SGML Requires: %{name} = %{version} %description devel @@ -108,6 +107,7 @@ cp %{S:2} README.SuSE %patch2 -p1 %patch3 %patch4 +%patch5 %build # export CXXFLAGS='-O'