File perl-GPG.spec of Package perl-GPG

Name:           perl-GPG
Version:        0.06
Release:        1
License:        LGPL-2.1
%define cpan_name GPG
Summary:        a Perl2GnuPG interface
Url:            http://search.cpan.org/dist/GPG/
Group:          Development/Libraries/Perl
#Source:         http://www.cpan.org/authors/id/M/MI/MILES/GPG-%{version}.tar.gz
Source:         %{cpan_name}-%{version}.tar.gz
BuildRequires:  gpg2
BuildRequires:  perl
BuildRequires:  perl-macros
Requires:       gpg2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%{perl_requires}

%description
GPG.pm is a Perl5 interface for using GnuPG. GPG works with $scalar
(string), as opposed to the existing Perl5 modules (GnuPG.pm and
GnuPG::Interface, which communicate with gnupg through filehandles or
filenames)

%prep
%setup -q -n %{cpan_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}

%check
%{__make} test

%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist

%clean
%{__rm} -rf %{buildroot}

%files -f %{name}.files
%defattr(644,root,root,755)
%doc CHANGES.txt GPG.html quick_test.sh README.txt

%changelog
openSUSE Build Service is sponsored by