diff --git a/X500-DN-0.29.tar.gz b/X500-DN-0.29.tar.gz new file mode 100644 index 0000000..3cac3b6 Binary files /dev/null and b/X500-DN-0.29.tar.gz differ diff --git a/X500-DN-dont_set_skip_to_undef.patch b/X500-DN-dont_set_skip_to_undef.patch new file mode 100644 index 0000000..def175f --- /dev/null +++ b/X500-DN-dont_set_skip_to_undef.patch @@ -0,0 +1,13 @@ +Index: X500-DN-0.29/DN.pm +=================================================================== +--- X500-DN-0.29.orig/DN.pm 2013-06-19 15:59:14.041089488 +0200 ++++ X500-DN-0.29/DN.pm 2013-06-19 15:59:26.211457683 +0200 +@@ -43,7 +43,7 @@ Digit: /[0-9]/ + #$::RD_HINT = 1; + + local $::RD_AUTOACTION = q{ $item[1] }; +-local $Parse::RecDescent::skip = undef; ++local $Parse::RecDescent::skip = ''; + my $parser = new Parse::RecDescent ($rfc2253_grammar) or die "Bad RFC 2253 grammar!\n"; + + sub new diff --git a/perl-X500-DN.changes b/perl-X500-DN.changes new file mode 100644 index 0000000..7865b81 --- /dev/null +++ b/perl-X500-DN.changes @@ -0,0 +1,109 @@ +------------------------------------------------------------------- +Mon Mar 4 15:47:49 UTC 2024 - pgajdos@suse.com + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN +- modified patches + % version-string-fix.diff (refreshed) + % version-string-fix2.diff (refreshed) + +------------------------------------------------------------------- +Mon Dec 2 14:25:49 UTC 2019 - Dominique Leuenberger + +- No mix between numbered and unnumbered patches: RPM 4.15 finally + no longer supports that. + +------------------------------------------------------------------- +Wed Jun 19 13:27:34 UTC 2013 - vcizek@suse.com + +- don't set $Parse::RecDescent::skip to 'undef' (bnc#799660) + * X500-DN-dont_set_skip_to_undef.patch + +------------------------------------------------------------------- +Tue Mar 19 09:07:28 UTC 2013 - coolo@suse.com + +- add a url for the source + +------------------------------------------------------------------- +Wed Feb 27 06:19:39 UTC 2013 - coolo@suse.com + +- update license to new format + +------------------------------------------------------------------- +Wed Dec 1 13:36:07 UTC 2010 - coolo@novell.com + +- switch to perl_requires macro + +------------------------------------------------------------------- +Mon Nov 29 18:32:26 UTC 2010 - coolo@novell.com + +- remove /var/adm/perl-modules + +------------------------------------------------------------------- +Sun Jan 10 15:43:32 CET 2010 - jengelh@medozas.de + +- enable parallel build + +------------------------------------------------------------------- +Tue Jan 20 11:45:28 CET 2009 - ug@suse.de + +- Testsuite activated (bnc#465993) + +------------------------------------------------------------------- +Wed Oct 8 13:24:37 CEST 2008 - ug@suse.de + +- version check for parse-recdescend removed (bnc#433425) + +------------------------------------------------------------------- +Mon Feb 25 13:17:36 CET 2008 - ug@suse.de + +- suppress a version string warning (#360044) + +------------------------------------------------------------------- +Mon Jul 16 12:23:31 CEST 2007 - ug@suse.de + +- version 0.29 +- added missing PREREQ_PM in Makefile.PL + +------------------------------------------------------------------- +Wed Jan 25 21:40:02 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Sep 28 22:17:02 CEST 2005 - dmueller@suse.de + + - add norootforbuild + +------------------------------------------------------------------- +Fri Aug 22 15:59:33 CEST 2003 - mjancar@suse.cz + +- require the perl version we build with + +------------------------------------------------------------------- +Mon Jul 28 10:45:02 CEST 2003 - ug@suse.de + +- version update from 0.27 to 0.28 +- spec file fix for install_vendor + +------------------------------------------------------------------- +Tue Jun 17 13:30:53 CEST 2003 - ug@suse.de + +- added missing directory to files-section + +------------------------------------------------------------------- +Mon May 19 11:39:16 CEST 2003 - ro@suse.de + +- fix filelist +- remove perllocal.pod + +------------------------------------------------------------------- +Fri Oct 18 14:14:46 CEST 2002 - ro@suse.de + +- remove race in specfile + +------------------------------------------------------------------- +Fri Oct 18 12:58:46 CEST 2002 - ug@suse.de + +- initial release. This package is needed by perl-OpenCA-OpenSSL + diff --git a/perl-X500-DN.spec b/perl-X500-DN.spec new file mode 100644 index 0000000..6d004fa --- /dev/null +++ b/perl-X500-DN.spec @@ -0,0 +1,76 @@ +# +# spec file for package perl-X500-DN +# +# Copyright (c) 2019 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: perl-X500-DN +BuildRequires: perl-Parse-RecDescent +BuildRequires: perl-macros +Requires: perl-Parse-RecDescent +Summary: Provides an interface for RFC 2253 style DN strings +License: Artistic-1.0 OR GPL-2.0-or-later +Group: Development/Libraries/Perl +Version: 0.29 +Release: 0 +URL: http://search.cpan.org/dist/X500-DN/ +Source0: http://www.cpan.org/authors/id/R/RJ/RJOOP/X500-DN-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch0: version-string-fix.diff +Patch1: version-string-fix2.diff +Patch2: X500-DN-dont_set_skip_to_undef.patch +%{perl_requires} + +%description +X500::DN Provides a pure perl parser and formatter for RFC 2253 style +DN strings. + + + +Authors: +-------- + Robert Joop + +%prep +%autosetup -p1 -n X500-DN-%{version} +# --------------------------------------------------------------------------- + +%build +perl Makefile.PL +make %{?_smp_mflags} +# --------------------------------------------------------------------------- + +%check +make test + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; +make DESTDIR=$RPM_BUILD_ROOT \ + INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \ + install_vendor +%perl_process_packlist + +%files +%defattr(-,root,root) +%{perl_vendorarch}/auto/X500 +%dir %{perl_vendorlib}/X500 +%{perl_vendorlib}/X500/RDN.pod +%{perl_vendorlib}/X500/RDN.pm +%{perl_vendorlib}/X500/DN.pod +%{perl_vendorlib}/X500/DN.pm +%doc Changes MANIFEST README +%doc %{_mandir}/man3/* + +%changelog diff --git a/version-string-fix.diff b/version-string-fix.diff new file mode 100644 index 0000000..3ac3d86 --- /dev/null +++ b/version-string-fix.diff @@ -0,0 +1,11 @@ +--- a/DN.pm ++++ b/DN.pm 2008/02/25 11:27:32 +@@ -4,7 +4,7 @@ + + package X500::DN; + +-use 5.6.1; # the "our" keyword below needs it ++use 5.006_001; # the "our" keyword below needs it + use strict; + use Carp; + use Parse::RecDescent 1.80; diff --git a/version-string-fix2.diff b/version-string-fix2.diff new file mode 100644 index 0000000..b7435f4 --- /dev/null +++ b/version-string-fix2.diff @@ -0,0 +1,11 @@ +--- a/DN.pm ++++ b/DN.pm 2008/10/08 11:23:14 +@@ -7,7 +7,7 @@ + use 5.006_001; # the "our" keyword below needs it + use strict; + use Carp; +-use Parse::RecDescent 1.80; ++use Parse::RecDescent; + use X500::RDN; + + our $VERSION = '0.29';