A new user interface for you! Read more...

File perl-Authen-PAM.spec of Package perl-Authen-PAM

#
# spec file for package perl-Authen-PAM
#
# Copyright (c) 2013 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/
#


Name:           perl-Authen-PAM
Version:        0.16
Release:        0.1
%define cpan_name Authen-PAM
Summary:        PAM Authentication framework
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Libraries/Perl
Url:            http://search.cpan.org/dist/Authen-PAM/
Source:         http://search.cpan.org/CPAN/authors/id/N/NI/NIKIP/%{cpan_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  pam-devel
#BuildRequires:  perl(Digest::HMAC_MD5)
#BuildRequires: perl(Authen::PAM)
#BuildRequires: perl(GSSAPI)
#BuildRequires: perl(inc::Module::Install)
#BuildRequires: perl(JSON)
#BuildRequires: perl(LWP::Simple)
#BuildRequires: perl(Module::Build)
#BuildRequires: perl(Module::Install::Base)
#BuildRequires: perl(Parse::CPAN::Meta)
#BuildRequires: perl(YAML::Tiny)
#Requires:       perl(Digest::HMAC_MD5)
#Recommends:     perl(GSSAPI)
%{perl_requires}

%description
This module provides a Perl interface to the PAM library.

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

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%{__make} %{?_smp_mflags} OPTIMIZE="%{optflags}"

%install
%{__rm} -rf %{buildroot}
%{__make} pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;




%files
%defattr(-,root,root,755)
%doc Changes META.yml MANIFEST README
%doc %{_mandir}/man?/*
%dir %{perl_vendorarch}/Authen
%dir %{perl_vendorarch}/Authen/PAM/
%{perl_vendorarch}/Authen/PAM/FAQ.pod
%{perl_vendorarch}/Authen/PAM.pm
%dir %{perl_vendorarch}/auto/Authen/
%{perl_vendorarch}/auto/Authen/PAM/

%changelog
* Wed Dec 23 2015 danilo.godec@agenda.si
- initial version 0.16 of this package