File perl-X500-DN.spec of Package perl-X500-DN

#
# spec file for package perl-X500-DN (Version 0.29)
#
# Copyright (c) 2010 SUSE LINUX Products 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/
#

# norootforbuild


Name:           perl-X500-DN
License:        Artistic ; GPLv2+
Group:          Development/Libraries/Perl
BuildRequires:  perl-Parse-RecDescent
BuildRequires:  perl-macros
Requires:       perl-Parse-RecDescent
AutoReqProv:    on
Summary:        Provides an interface for RFC 2253 style DN strings
Version:        0.29
Release:        89
Source:         X500-DN-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Patch1:         version-string-fix2.diff
%{perl_requires}
Patch:          version-string-fix.diff

%description
X500::DN Provides a pure perl parser and formatter for RFC 2253 style
DN strings.



Authors:
--------
    Robert Joop <yaph-020416@timesink.de>

%prep
%setup -n X500-DN-%{version}
%patch
%patch1
# ---------------------------------------------------------------------------

%build
perl Makefile.PL
make %{?_smp_mflags}
# ---------------------------------------------------------------------------

%check
make test

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
make DESTDIR=$RPM_BUILD_ROOT \
	 INSTALLMAN3DIR=$RPM_BUILD_ROOT/%{_mandir}/man3 \
	 install_vendor
%perl_process_packlist

%files
%defattr(-,root,root)
%{perl_vendorarch}/auto/X500
%dir %{perl_vendorlib}/X500
%{perl_vendorlib}/X500/RDN.pod
%{perl_vendorlib}/X500/RDN.pm
%{perl_vendorlib}/X500/DN.pod
%{perl_vendorlib}/X500/DN.pm
%doc Changes MANIFEST README
%doc %{_mandir}/man3/*

%changelog