File perl-OpenXPKI-Core.spec of Package perl-OpenXPKI-Core

#
# spec file for package OpenXPKI
# 
# Copyright (c) 2008 Scorpio IT, Deidesheim
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via <rpm@scorpio-it.net>
#
#userootforbuild

#Distribution:   %dist
#Packager:       %packager
#Vendor:         %vendor

Name:           perl-OpenXPKI-Core
%define pkgname OpenXPKI
Summary:        The OpenXPKI Core Module
Version:        0.9.1389
Release:        1
License:        Apache License 2.0
Group:          Applications/Security
Url:            http://www.cpan.org
Source0:        %{pkgname}-%{version}.tar.bz2
# own patches starts with 100
Patch100:       %{pkgname}-0.9.1267-20_xml-top3.patch
Patch101:       %{pkgname}-0.9.1267-IO_Prompt-version.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
#BuildRequires:  perl(OpenXPKI::Client)
BuildRequires:  openssl-devel
BuildRequires:  perl(version) >= 0.7
BuildRequires:  perl(CGI::Session) >= 3.95
BuildRequires:  perl(Class::Accessor::Fast) >= 0.31
BuildRequires:  perl(Class::Accessor::Chained::Fast)
BuildRequires:  perl(Class::Std) >= 0.0.8
BuildRequires:  perl(Crypt::CBC) >= 2.29
BuildRequires:  perl(Crypt::OpenSSL::AES) >= 0.02
#BuildRequires:  perl(DBD::SQLite) >= 1
BuildRequires:  perl-DBD-SQLite >= 1
BuildRequires:  perl(DBI) >= 1
BuildRequires:  perl(Data::Password) >= 1.07
BuildRequires:  perl(Data::Serializer) >= 0.44
#BuildRequires:  perl(Date::Parse) >= 1
BuildRequires:  perl(DateTime) >= 0.22
BuildRequires:  perl(DateTime::Format::DateParse) >= 0.04
BuildRequires:  perl(Digest::MD5) >= 1
BuildRequires:  perl(Digest::SHA1) >= 1
BuildRequires:  perl(Exception::Class) >= 1.22
BuildRequires:  perl(Filter::Util::Call) >= 1
BuildRequires:  perl(IO::Prompt) >= 0.099004
BuildRequires:  perl(IPC::ShareLite) >= 0.09
# perl-libintl-perl
BuildRequires:  perl(Locale::TextDomain) >= 1
BuildRequires:  perl(Log::Log4perl) >= 0.51
BuildRequires:  perl(Mail::RFC822::Address) >= 0.3
BuildRequires:  perl(Math::BigInt) >= 1
BuildRequires:  perl(Net::IP) >= 1
BuildRequires:  perl(Net::LDAP) >= 0.32
BuildRequires:  perl(Net::Server) >= 0.94
BuildRequires:  perl(Params::Validate) >= 0.77
BuildRequires:  perl(Proc::ProcessTable) >= 0.43
BuildRequires:  perl(Regexp::Common) >= 2
BuildRequires:  perl(Sys::SigAction) >= 0.06
BuildRequires:  perl(Template) >= 2.15
BuildRequires:  perl(Test) >= 1
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
BuildRequires:  perl(Text::CSV_XS) >= 0.23
BuildRequires:  perl(Time::HiRes) >= 1
BuildRequires:  perl(Workflow) >= 0.27
BuildRequires:  perl(XML::Filter::XInclude) >= 1
BuildRequires:  perl(XML::Parser) >= 1
BuildRequires:  perl(XML::SAX) >= 0.12
BuildRequires:  perl(XML::SAX::PurePerl) >= 0.90
BuildRequires:  perl(XML::SAX::Writer) >= 0.44
BuildRequires:  perl(XML::Simple) >= 1
BuildRequires:  perl(XML::Validator::Schema) >= 1.08
Requires:  perl = %{perl_version}
#Requires:  perl(OpenXPKI::Client)
Requires:  openssl
#Requires:  perl(Test::Pod) >= 1.00
#Requires:  perl(Test::Pod::Coverage) >= 1.00
Requires:  perl-version >= 0.7
Requires:  perl(CGI::Session) >= 3.95
Requires:  perl(Class::Accessor::Fast) >= 0.31
Requires:  perl(Class::Accessor::Chained::Fast)
Requires:  perl(Class::Std) >= 0.0.8
Requires:  perl(Crypt::CBC) >= 2.29
Requires:  perl(Crypt::OpenSSL::AES) >= 0.02
Requires:  perl-DBD-SQLite >= 1
Requires:  perl(DBI) >= 1
Requires:  perl(Data::Password) >= 1.07
Requires:  perl(Data::Serializer) >= 0.44
#Requires:  perl(Date::Parse) >= 1
Requires:  perl(DateTime) >= 0.22
Requires:  perl(DateTime::Format::DateParse) >= 0.04
Requires:  perl(Digest::MD5) >= 1
Requires:  perl(Digest::SHA1) >= 1
Requires:  perl(Exception::Class) >= 1.22
Requires:  perl(Filter::Util::Call) >= 1
Requires:  perl(IO::Prompt) >= 0.099004
Requires:  perl(IPC::ShareLite) >= 0.09
# perl-libintl-perl
Requires:  perl(Locale::TextDomain) >= 1
Requires:  perl(Log::Log4perl) >= 0.51
Requires:  perl(Mail::RFC822::Address) >= 0.3
Requires:  perl(Math::BigInt) >= 1
Requires:  perl(Net::IP) >= 1
Requires:  perl(Net::LDAP) >= 0.32
Requires:  perl(Net::Server) >= 0.94
Requires:  perl(Params::Validate) >= 0.77
Requires:  perl(Proc::ProcessTable) >= 0.43
Requires:  perl(Regexp::Common) >= 2
Requires:  perl(Sys::SigAction) >= 0.06
Requires:  perl(Template) >= 2.15
Requires:  perl(Text::CSV_XS) >= 0.23
Requires:  perl(Time::HiRes) >= 1
Requires:  perl(Workflow) >= 0.27
Requires:  perl(XML::Filter::XInclude) >= 1
Requires:  perl(XML::Parser) >= 1
Requires:  perl(XML::SAX) >= 0.12
Requires:  perl(XML::SAX::PurePerl) >= 0.90
Requires:  perl(XML::SAX::Writer) >= 0.44
Requires:  perl(XML::Simple) >= 1
Requires:  perl(XML::Validator::Schema) >= 1.08
Provides:  %{pkgname}

%description
The OpenXPKI Project aims at creating an enterprise-grade PKI/Trustcenter software
 supporting well established infrastructure components like RDBMS and Hardware
 Security Modules. Flexibility and modularity are the project key design objectives.

Unlike many other OpenSource PKI projects OpenXPKI offers powerful features
 necessary for professional environments that are usually only found in
 commercial grade PKI products.
However, we also target small scale installations by providing quick-start
 configuration examples that allow to get a usable PKI running quickly. 

  Author:		Martin Bartosch
			Michael Bell
			Dmitry Belyavsky
			Julia Dubenskaya
			Alexander Klink
			Sergei Vyshenski

%prep
%setup -q -n %{pkgname}-%{version}
%patch100 -p1
%patch101 -p1

%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
%{__make}

#%check
#%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files -f %{name}.files
%defattr(0644,root,root,0755)
%doc CHANGES CREDITS INSTALL LICENSE README

%changelog