File project.diff of Package perl-XML-Parser
--- XML-Parser-2.40.diff.orig
+++ XML-Parser-2.40.diff
@@ -1,29 +1,29 @@
---- samples/canonical
-+++ samples/canonical
+--- ./samples/canonical
++++ ./samples/canonical
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
#
# Copyright 1999 Clark Cooper <coopercc@netheaven.com>
# All rights reserved.
---- samples/xmlcomments
-+++ samples/xmlcomments
+--- ./samples/xmlcomments
++++ ./samples/xmlcomments
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
#
# $Revision: 1.1.1.1 $
#
---- samples/xmlfilter
-+++ samples/xmlfilter
+--- ./samples/xmlfilter
++++ ./samples/xmlfilter
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
#
# $Revision: 1.1.1.1 $
#
---- samples/xmlstats
-+++ samples/xmlstats
+--- ./samples/xmlstats
++++ ./samples/xmlstats
@@ -1,4 +1,4 @@
-#!/usr/local/bin/perl -w
+#!/usr/bin/perl -w
--- perl-XML-Parser.changes.orig
+++ perl-XML-Parser.changes
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Mon Jul 22 11:32:48 CEST 2019 - mls@suse.de
+
+- expose expat's XML_SetHashSalt method
+ new patch: XML-Parser-sethashsalt.diff
+
+-------------------------------------------------------------------
Sun Feb 8 08:01:54 UTC 2015 - coolo@suse.com
- avoid a cycle with LWP
--- perl-XML-Parser.spec.orig
+++ perl-XML-Parser.spec
@@ -1,7 +1,7 @@
#
# spec file for package perl-XML-Parser
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@@ -21,11 +21,12 @@ Version: 2.44
Release: 0
%define cpan_name XML-Parser
Summary: A perl module for parsing XML documents
-License: Artistic-1.0 or GPL-1.0+
+License: Artistic-1.0 OR GPL-1.0-or-later
Group: Development/Libraries/Perl
-Url: http://search.cpan.org/dist/XML-Parser/
+URL: http://search.cpan.org/dist/XML-Parser/
Source: http://www.cpan.org/authors/id/T/TO/TODDR/%{cpan_name}-%{version}.tar.gz
Patch0: XML-Parser-2.40.diff
+Patch1: XML-Parser-sethashsalt.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
@@ -54,8 +55,7 @@ When underlying handlers get called, the
the _Expat_ object, not the Parser object.
%prep
-%setup -q -n %{cpan_name}-%{version}
-%patch0
+%autosetup -p1 -n %{cpan_name}-%{version}
find . -type f -print0 | xargs -0 chmod 644
%build