ppisar pushed to perl-Crypt-OpenSSL-PKCS10 (master). "0.14 bump"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Jun 10 14:30:37 UTC 2015


From eab7e3e062c16cc4a4e2911fb2170f84fd31e1f8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Wed, 10 Jun 2015 16:25:17 +0200
Subject: 0.14 bump


diff --git a/.gitignore b/.gitignore
index 8136a4a..92dd69b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@ Crypt-OpenSSL-PKCS10-0.06.tar.gz
 /Crypt-OpenSSL-PKCS10-0.12
 /perl-Crypt-OpenSSL-PKCS10-*.src.rpm
 /x86_64
+/Crypt-OpenSSL-PKCS10-0.14.tar.gz
diff --git a/perl-Crypt-OpenSSL-PKCS10-Use-defined-OID-in-tests.patch b/perl-Crypt-OpenSSL-PKCS10-Use-defined-OID-in-tests.patch
deleted file mode 100644
index 1b8e710..0000000
--- a/perl-Crypt-OpenSSL-PKCS10-Use-defined-OID-in-tests.patch
+++ /dev/null
@@ -1,31 +0,0 @@
-From 57f67f4e319731fe9d824e4c40c3125875f32021 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
-Date: Fri, 19 Jul 2013 15:01:18 +0200
-Subject: [PATCH] Use defined OID in tests
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-<https://rt.cpan.org/Public/Bug/Display.html?id=87049>
-
-Signed-off-by: Petr Písař <ppisar at redhat.com>
----
- t/Mytest.t | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/t/Mytest.t b/t/Mytest.t
-index fb91b7c..32302b6 100644
---- a/t/Mytest.t
-+++ b/t/Mytest.t
-@@ -35,7 +35,7 @@ $req->add_ext(Crypt::OpenSSL::PKCS10::NID_key_usage,"critical,digitalSignature,k
- $req->add_ext(Crypt::OpenSSL::PKCS10::NID_ext_key_usage,"serverAuth, nsSGC, msSGC, 1.3.4");
- $req->add_ext(Crypt::OpenSSL::PKCS10::NID_subject_alt_name,'email:steve at openssl.org');
- $req->add_custom_ext('1.2.3.3',"My new extension");
--$req->add_custom_ext_raw($oid, pack('H*','1E06006100620063'));
-+$req->add_custom_ext_raw('1.2.3.4', pack('H*','1E06006100620063'));
- $req->add_ext_final();
- $req->sign();
- print STDERR $req->get_pem_req();
--- 
-1.8.1.4
-
diff --git a/perl-Crypt-OpenSSL-PKCS10-openssl.patch b/perl-Crypt-OpenSSL-PKCS10-openssl.patch
deleted file mode 100644
index 82ab2b7..0000000
--- a/perl-Crypt-OpenSSL-PKCS10-openssl.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -up Crypt-OpenSSL-PKCS10-0.06/PKCS10.xs.openssl Crypt-OpenSSL-PKCS10-0.06/PKCS10.xs
---- Crypt-OpenSSL-PKCS10-0.06/PKCS10.xs.openssl	2006-02-24 22:15:56.000000000 +0100
-+++ Crypt-OpenSSL-PKCS10-0.06/PKCS10.xs	2009-08-25 21:09:05.000000000 +0200
-@@ -32,7 +32,7 @@ typedef struct
-   if (New(0, p_var, p_size, p_type) == NULL) \
-     { PACKAGE_CROAK("unable to alloc buffer"); }
- 
--int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value);
-+int add_ext(STACK_OF(X509_EXTENSION) *sk, int nid, char *value);
- X509_NAME *parse_name(char *str, long chtype, int multirdn); 
- 
- /*
-@@ -181,7 +181,7 @@ static void callback(int p, int n, void 
-  * because we wont reference any other sections.
-  */
- 
--int add_ext(STACK_OF(X509_REQUEST) *sk, int nid, char *value)
-+int add_ext(STACK_OF(X509_EXTENSION) *sk, int nid, char *value)
- 	{
- 	X509_EXTENSION *ex;
- 	ex = X509V3_EXT_conf_nid(NULL, NULL, nid, value);
diff --git a/perl-Crypt-OpenSSL-PKCS10.spec b/perl-Crypt-OpenSSL-PKCS10.spec
index d7ddfc6..1957a15 100644
--- a/perl-Crypt-OpenSSL-PKCS10.spec
+++ b/perl-Crypt-OpenSSL-PKCS10.spec
@@ -1,66 +1,61 @@
 Name:           perl-Crypt-OpenSSL-PKCS10
-Version:        0.12
-Release:        5%{?dist}
+Version:        0.14
+Release:        1%{?dist}
 Summary:        Perl interface to OpenSSL for PKCS10
 License:        GPL+ or Artistic
 Group:          Development/Libraries
 URL:            http://search.cpan.org/dist/Crypt-OpenSSL-PKCS10/
 Source0:        http://www.cpan.org/authors/id/J/JO/JONOZZZ/Crypt-OpenSSL-PKCS10-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildRequires:  openssl openssl-devel
-BuildRequires:  perl(Test::More) perl(ExtUtils::MakeMaker)
+Patch0:         perl-Crypt-OpenSSL-PKCS10-build-paths.patch
+BuildRequires:  coreutils
+BuildRequires:  findutils
+BuildRequires:  make
+BuildRequires:  openssl-devel
+BuildRequires:  perl
+BuildRequires:  perl(ExtUtils::MakeMaker)
+# Run-time:
+BuildRequires:  perl(Exporter)
+BuildRequires:  perl(strict)
+BuildRequires:  perl(warnings)
+BuildRequires:  perl(XSLoader)
+# Tests:
 BuildRequires:  perl(Crypt::OpenSSL::RSA)
-Patch0: 	perl-Crypt-OpenSSL-PKCS10-build-paths.patch
-Patch1:         perl-Crypt-OpenSSL-PKCS10-openssl.patch
-# Prevent test from crashing, CPAN RT#87049
-Patch2:         perl-Crypt-OpenSSL-PKCS10-Use-defined-OID-in-tests.patch
-
-Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+BuildRequires:  perl(Test::More)
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
 
 %description
-Crypt::OpenSSL::PKCS10 - Perl extension to OpenSSL's PKCS10 API.
+Crypt::OpenSSL::PKCS10 Perl module provides the ability to create PKCS10
+certificate requests using RSA key pairs.
 
 %prep
 %setup -q -n Crypt-OpenSSL-PKCS10-%{version}
-chmod -c a-x Changes
-chmod -c a-x *.xs
-
 %patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
+chmod -c a-x Changes README
+chmod -c a-x *.xs *.pm
 
 %build
-%{__perl} Makefile.PL INSTALLDIRS=vendor
+perl Makefile.PL INSTALLDIRS=vendor
 make %{?_smp_mflags}
 
 %install
-rm -rf %{buildroot}
-
-make pure_install PERL_INSTALL_ROOT=%{buildroot}
-
+make pure_install DESTDIR=%{buildroot}
 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
-find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
 find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
-
-# remove errant execute bit from the .pm's / .xs's
-find %{buildroot} -type f -name '*.pm' -exec chmod -x {} 2>/dev/null ';'
-
 %{_fixperms} %{buildroot}/*
 
 %check
 make test
 
-%clean
-rm -rf %{buildroot}
-
 %files
-%defattr(-,root,root,-)
-%doc Changes
+%doc Changes README
 %{perl_vendorarch}/auto/*
 %{perl_vendorarch}/Crypt/
 %{_mandir}/man3/*
 
 %changelog
+* Wed Jun 10 2015 Petr Pisar <ppisar at redhat.com> - 0.14-1
+- 0.14 bump
+
 * Thu Jun 04 2015 Jitka Plesnikova <jplesnik at redhat.com> - 0.12-5
 - Perl 5.22 rebuild
 
diff --git a/sources b/sources
index bd57467..211e546 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a5651207f0668d698fb8fc175ce542c8  Crypt-OpenSSL-PKCS10-0.12.tar.gz
+3e0df0a318a037d9a7c4cb77391a6c5c  Crypt-OpenSSL-PKCS10-0.14.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Crypt-OpenSSL-PKCS10.git/commit/?h=master&id=eab7e3e062c16cc4a4e2911fb2170f84fd31e1f8


More information about the perl-devel mailing list