Files
perl-Crypt-OpenSSL-X509/perl-Crypt-OpenSSL-X509.spec

74 lines
2.2 KiB
RPMSpec
Raw Normal View History

# vim: set sw=4 ts=4 et nu:
#
# spec file for package perl-Crypt-OpenSSL-X509
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: perl-Crypt-OpenSSL-X509
Version: 1.800.2
Release: 0
Summary: Perl extension to OpenSSL's X509 API
License: Artistic-1.0 or GPL-2.0+
Group: Development/Libraries/Perl
Source: http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/Crypt-OpenSSL-X509-%{version}.tar.gz
# Patch proposed upstream https://github.com/dsully/perl-crypt-openssl-x509/pull/43
Patch1: 0001-fix-compilation-with-gcc5.patch
Url: http://search.cpan.org/dist/Crypt-OpenSSL-X509
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
BuildRequires: gcc
BuildRequires: glibc-devel
BuildRequires: make
BuildRequires: openssl-devel
BuildRequires: perl-macros
BuildRequires: pkgconfig
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
%description
This implements a large majority of OpenSSL's useful X509 API.
%prep
%setup -q -n "Crypt-OpenSSL-X509-%{version}"
%__sed -i '/^auto_install/d' Makefile.PL
%patch1 -p1
%build
%__perl Makefile.PL PREFIX="%{_prefix}"
%__make %{?jobs:-j%{jobs}}
%install
%perl_make_install
%perl_process_packlist
%check
%__make test
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%doc Changes TODO README
%dir %{perl_vendorarch}/Crypt
%dir %{perl_vendorarch}/Crypt/OpenSSL
%{perl_vendorarch}/Crypt/OpenSSL/X509.pm
%dir %{perl_vendorarch}/auto/Crypt
%dir %{perl_vendorarch}/auto/Crypt/OpenSSL
%{perl_vendorarch}/auto/Crypt/OpenSSL/X509
%doc %{perl_man3dir}/Crypt::OpenSSL::X509.%{perl_man3ext}%{ext_man}
%changelog