[perl-VOMS-Lite] Update to 0.11.
stevetraylen
stevetraylen at fedoraproject.org
Mon Mar 14 15:46:42 UTC 2011
commit 65815eee4309302d5104d1dd6341ba7e4da9ce3a
Author: Steve Traylen <steve.traylen at cern.ch>
Date: Mon Mar 14 16:46:00 2011 +0100
Update to 0.11.
.gitignore | 1 +
perl-VOMS-Lite.spec | 185 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
voms.config | 15 ++++
4 files changed, 202 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2b9cd15 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/VOMS-Lite-0.11.tar.gz
diff --git a/perl-VOMS-Lite.spec b/perl-VOMS-Lite.spec
new file mode 100644
index 0000000..4526206
--- /dev/null
+++ b/perl-VOMS-Lite.spec
@@ -0,0 +1,185 @@
+
+Name: perl-VOMS-Lite
+Version: 0.11
+Release: 1%{?dist}
+Summary: Perl extension for VOMS Attribute certificate creation
+License: GPL+ or Artistic
+Group: Development/Libraries
+URL: http://search.cpan.org/dist/VOMS-Lite/
+Source0: ftp://ftp.funet.fi/pub/CPAN/authors/id/M/MI/MIKEJ/VOMS-Lite-%{version}.tar.gz
+Source1: voms.config
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: perl(Crypt::DES_EDE3)
+BuildRequires: perl(Digest::MD2)
+BuildRequires: perl(Digest::SHA1)
+BuildRequires: perl(ExtUtils::MakeMaker)
+BuildRequires: perl(IO::Socket::SSL)
+BuildRequires: perl(Regexp::Common)
+BuildRequires: perl(Term::ReadKey)
+BuildRequires: perl(Math::BigInt::GMP)
+BuildRequires: perl(Crypt::CBC)
+Requires: perl(Math::BigInt::GMP)
+Requires: perl(Crypt::DES_EDE3)
+Requires: perl(Digest::MD2)
+Requires: perl(Digest::SHA1)
+Requires: perl(IO::Socket::SSL)
+Requires: perl(Regexp::Common)
+Requires: perl(Term::ReadKey)
+Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
+
+# Remove WIN32::API from the requires. It is only ever loaded
+# on that platform.
+%{?perl_default_filter:
+%filter_from_requires /^perl(WIN32::API)/d
+%perl_default_filter
+}
+#Add a test sub package.
+%{?perl_default_subpackage_tests}
+
+
+%description
+VOMS (virtual organization membership service) is a system for
+managing grid level authorization data within
+multi-institutional collaborations via membership and roles
+within that membership.
+
+VOMS::Lite provides a perl library and client tools
+for interacting with an existing voms service including the
+well known C implementation of voms.
+
+A number of commands are included for generating and processing
+proxies including voms-proxy-init.pl, voms-ac-issue.pl, ...
+
+Configuration of client tools can be supplied via
+$ENV{'VOMS_CONFIG_FILE'} or else ~/.grid-security/voms.conf.
+The root user only uses /etc/grid-security/voms.config.
+
+%package -n perl-voms-server
+Group: Development/Libraries
+Summary: Perl extension for VOMS Attribute certificate creation
+Requires: perl-VOMS-Lite = %{version}-%{release}
+
+%description -n perl-voms-server
+VOMS (virtual organization membership service) is a system for
+managing grid level authorization data within
+multi-institutional collaborations via membership and roles
+within that membership.
+
+A server voms-server.pl providing a perl implementation
+of a VOMS server.
+
+%prep
+%setup -q -n VOMS-Lite-%{version}
+chmod 644 example/PROXYINFO.pl
+cp -p %{SOURCE1} .
+
+#On .el4 and .el5 we filter requires the old fashined
+#way still. The magic stuff about won't work.
+%if 0%{?el4}%{?el5}
+cat << \EOF > %{name}-req
+#!/bin/sh
+%{__perl_requires} $* |\
+sed -e '/perl(WIN32::API)/d'
+EOF
+
+%global __perl_requires %{_builddir}/VOMS-Lite-%{version}/%{name}-req
+chmod +x %{__perl_requires}
+%endif # end of if el4,5.
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+
+make pure_install DESTDIR=%{buildroot}
+# I believe the voms-server.pl was meant to be installed in
+# sbin.
+mkdir %{buildroot}%{_sbindir}
+mv %{buildroot}%{_bindir}/voms-server.pl %{buildroot}%{_sbindir}/voms-server.pl
+mv %{buildroot}%{_bindir}/vomsserver.pl %{buildroot}%{_sbindir}/vomsserver.pl
+find %{buildroot} -type f -name .packlist -exec rm -f {} \;
+find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
+
+%{_fixperms} %{buildroot}/*
+
+# Install a default configuration file and directory for VO grid-mapfiles.
+mkdir -p %{buildroot}%{_sysconfdir}/grid-security/grid-mapfile.d
+install -p -m 644 voms.config %{buildroot}%{_sysconfdir}/grid-security/voms.config
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc Changes README TODO example
+%{perl_vendorlib}/*
+%{_mandir}/man3/*
+%{_bindir}/cert-init.pl
+%{_bindir}/cert-req.pl
+%{_bindir}/examineAC.pl
+%{_bindir}/extractVOMS.pl
+%{_bindir}/myproxy-get.pl
+%{_bindir}/myproxy-init.pl
+%{_bindir}/proxy-init.pl
+%{_bindir}/verifycert.pl
+%{_bindir}/voms-ac-issue.pl
+%{_bindir}/voms-proxy-init.pl
+%{_mandir}/man1/cert-init.pl.1*
+%{_mandir}/man1/cert-req.pl.1*
+%{_mandir}/man1/examineAC.pl.1*
+%{_mandir}/man1/extractVOMS.pl*
+%{_mandir}/man1/myproxy-get.pl*
+%{_mandir}/man1/myproxy-init.pl*
+%{_mandir}/man1/proxy-init.pl*
+%{_mandir}/man1/verifycert.pl*
+%{_mandir}/man1/voms-ac-issue.pl.1*
+%{_mandir}/man1/voms-proxy-init.pl.1*
+
+
+%dir %{_sysconfdir}/grid-security
+%dir %{_sysconfdir}/grid-security/grid-mapfile.d
+%config(noreplace) %{_sysconfdir}/grid-security/voms.config
+
+%files -n perl-voms-server
+%defattr(-,root,root,-)
+%{_sbindir}/voms-server.pl
+%{_sbindir}/vomsserver.pl
+%{_mandir}/man1/voms-server.pl.1*
+%{_mandir}/man1/vomsserver.pl.1*
+
+
+%changelog
+* Sun Mar 13 2011 Steve Traylen <steve.traylen at cern.ch> 0.11-1
+- Update to 0.11.
+- New build requires for perl(Crypt::CBC)
+- Install configuration file mode 644.
+- Split server application out to seperate package.
+
+* Sat Mar 13 2010 Steve Traylen <steve.traylen at cern.ch> 0.09-5
+- Rewrite summary to make it less cryptic.
+- Create a -tests package when possible.
+- Install configuration file at 600.
+
+* Mon Mar 7 2010 Steve Traylen <steve.traylen at cern.ch> 0.09-4
+- Move voms-server.pl to /usr/sbin
+- Add a default configuration for voms-server.pl
+
+* Sat Mar 6 2010 Steve Traylen <steve.traylen at cern.ch> 0.09-3
+- Change source URL to not point at an old mirror.
+
+* Sun Feb 21 2010 Steve Traylen <steve.traylen at cern.ch> 0.09-2
+- Filter out perl(WIN32::API) with new macros where
+ possible.
+- Install in DESTDIR
+
+* Tue Feb 16 2010 Steve Traylen <steve.traylen at cern.ch> 0.09-1
+- Filter out perl(WIN32::API) from requires.
+- Addition of perl(Math::BigInt::GMP) for speed.
+- Add bins and associated man pages to file list.
+- Specfile autogenerated by cpanspec 1.78.
diff --git a/sources b/sources
index e69de29..3be2138 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+636307a733c8957edb5074b88d0eb3ef VOMS-Lite-0.11.tar.gz
diff --git a/voms.config b/voms.config
new file mode 100644
index 0000000..005c686
--- /dev/null
+++ b/voms.config
@@ -0,0 +1,15 @@
+
+# Default configuration file for VOMS::Lite,
+# Perl extension for VOMS Attribute certificate
+# creation
+# See man VOMS::Lite for configuration details.
+
+CertDir = /etc/grid-security/certificates
+VOMSCert = /etc/grid-security/hostcert.pem
+VOMSKey = /etc/grid-security/hostkey.pem
+AttribType = GridMap
+Lifetime = 43200
+Server = localhost
+Port = 10000
+
+
More information about the scm-commits
mailing list