Name: OpenXPKI-Client-HTML-Mason
Version: 0.9.796
Release: 1%{?dist}
Summary: HTML interface to a locally running OpenXPKI daemon
License: Apache Software License
Group: Applications/Internet
URL: http://www.openxpki.org
Source0: http://www.openxpki.org/lastmidnight/OpenXPKI-Client-HTML-Mason-%{version}.tar.gz
Source1: openxpki-mason-mod_perl.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: perl(Module::Build)
BuildRequires: perl(OpenXPKI::Client)
BuildRequires: perl(OpenXPKI::i18n)
BuildRequires: perl(version)
BuildRequires: perl(ExtUtils::MakeMaker)
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires: perl(Data::SpreadPagination)
Requires: OpenXPKI-i18n
Requires: mod_perl
%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's key design objectives.
This package contains the HTML::Mason based web interface to the
OpenXPKI daemon and requires mod_perl to be installed on the webserver.
%prep
%setup -q
%build
%{__perl} Build.PL installdirs=vendor
./Build
%install
rm -rf %{buildroot}
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
# Install WebInterface
mkdir -p %{buildroot}%{_datadir}/openxpki/Client-HTML-Mason
cp -R htdocs/* %{buildroot}%{_datadir}/openxpki/Client-HTML-Mason
find %{buildroot}%{_datadir}/openxpki/Client-HTML-Mason -name '*.apache2' | xargs rm -f
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/openxpki.conf
# Nuke CGI Interface, we're using mod_perl
rm -f %{buildroot}%{_bindir}/openxpki.cgi
%{_fixperms} %{buildroot}/*
%check
# Testsuite is broken
#./Build test
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc Changes README VERSION
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{_datadir}/openxpki/Client-HTML-Mason/
%config(noreplace) %{_sysconfdir}/httpd/conf.d/openxpki.conf
%changelog
* Thu Apr 12 2007 Andreas Thienemann 0.9.796-1
- Updated to 0.9.796 snapshot
- Reverted Apache2 patch as it was included by upstream
* Mon Apr 04 2007 Andreas Thienemann 0.9.792-2
- Patched to support Apache2::Request
* Mon Apr 04 2007 Andreas Thienemann 0.9.792-1
- Updated to 0.9.792
- Added httpd configuration
* Mon Apr 02 2007 Andreas Thienemann 0.9.783-1
- Cleanup for FE
- Specfile autogenerated by cpanspec 1.69.1.