8
0
Christian Wittmer
2010-11-24 19:50:33 +00:00
committed by Git OBS Bridge
parent 8677f360f2
commit c79d191355
2 changed files with 47 additions and 26 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Nov 24 19:47:12 UTC 2010 - chris@computersalat.de
- recreated by cpanspec 1.78
- noarch pkg
- removed Obsoletes/Provides p_casn1
-------------------------------------------------------------------
Tue Oct 19 08:38:25 UTC 2010 - coolo@novell.com

View File

@@ -17,53 +17,67 @@
# norootforbuild
Name: perl-Convert-ASN1
%define cpan_name Convert-ASN1
Summary: ASN.1 Encode/Decode library
Version: 0.22
Release: 9
Provides: p_casn1
Obsoletes: p_casn1
Requires: perl = %{perl_version}
AutoReqProv: on
Release: 1
License: GPL+ or Artistic
Group: Development/Libraries/Perl
License: Artistic
Url: http://cpan.org/modules/by-module/Convert/
Summary: Convert::ASN1
Source: Convert-ASN1-%{version}.tar.bz2
Patch0: Convert-ASN1-%{version}-path.diff
Patch1: Convert-ASN1-%{version}-test.diff
Url: http://search.cpan.org/dist/Convert-ASN1/
#Source: http://www.cpan.org/authors/id/G/GB/GBARR/Convert-ASN1-0.22.tar.gz
Source: %{cpan_name}-%{version}.tar.bz2
Patch0: %{cpan_name}-0.22-path.diff
Patch1: %{cpan_name}-0.22-test.diff
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
%if 0%{?suse_version} < 1120
BuildRequires: perl-macros
%endif
Requires: perl = %{perl_version}
%description
Convert::ASN1 converts between Perl data structures and ASN.1 encoded
packets.
Convert::ASN1 encodes and decodes ASN.1 data structures using BER/DER
rules.
Authors:
--------
Graham Barr <gbarr@pobox.com>, Report bugs via
<bug-Convert-ASN1@rt.cpan.org>
%prep
%setup -q -n Convert-ASN1-%{version}
%setup -q -n %{cpan_name}-%{version}
%patch0
%patch1
%build
perl Makefile.PL
make %{?_smp_mflags}
make test
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
%{__make} test
%install
%perl_make_install
### since 11.4 perl_process_packlist
### removes .packlist, perllocal.pod files
%if 0%{?suse_version} > 1130
%perl_process_packlist
%else
# do not perl_process_packlist
# remove .packlist file
%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch
# remove perllocal.pod file
%{__rm} -f $RPM_BUILD_ROOT%perl_archlib/perllocal.pod
%endif
%perl_gen_filelist
%clean
rm -rf $RPM_BUILD_ROOT
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%files -f %{name}.files
%defattr(-,root,root,-)
%doc ChangeLog OldChanges README
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Convert
%{perl_vendorarch}/auto/Convert
/var/adm/perl-modules/%{name}
%changelog