]> git.pld-linux.org Git - packages/perl-Crypt-X509.git/commitdiff
- initial auto/th/perl-Crypt-X509-0.51-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 10 Oct 2013 11:25:12 +0000 (13:25 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 10 Oct 2013 11:25:12 +0000 (13:25 +0200)
perl-Crypt-X509.spec [new file with mode: 0644]

diff --git a/perl-Crypt-X509.spec b/perl-Crypt-X509.spec
new file mode 100644 (file)
index 0000000..fd2f49a
--- /dev/null
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+#
+%include       /usr/lib/rpm/macros.perl
+%define                pdir    Crypt
+%define                pnam    X509
+Summary:       Crypt::X509 - Parse a X.509 certificate
+Name:          perl-Crypt-X509
+Version:       0.51
+Release:       1
+License:       Artistic
+Group:         Development/Languages/Perl
+Source0:       http://www.cpan.org/modules/by-module/Crypt/%{pdir}-%{pnam}-%{version}.tar.gz
+# Source0-md5: aadab2960d2bd65a212d1bd7f50e282a
+URL:           http://search.cpan.org/dist/Crypt-X509/
+BuildRequires: perl-Convert-ASN1
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Crypt::X509 parses X.509 certificates. Methods are provided for
+accessing most certificate elements.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+
+%build
+%{__perl} Makefile.PL \
+       INSTALLDIRS=vendor
+
+%{__make} \
+       CC="%{__cc}" \
+       OPTIMIZE="%{rpmcflags}"
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changes README
+%{perl_vendorlib}/Crypt/X509.pm
+%{_mandir}/man3/Crypt::*.3pm*
This page took 0.119512 seconds and 4 git commands to generate.