|
 |
0adc2e |
%{?scl:%scl_package perl-Authen-PAM}
|
|
 |
0adc2e |
%{!?scl:%global pkg_name %{name}}
|
|
 |
0adc2e |
|
|
 |
0adc2e |
Name: %{?scl_prefix}perl-Authen-PAM
|
|
 |
0adc2e |
Version: 0.16
|
|
 |
0adc2e |
Release: 5%{?dist}
|
|
 |
0adc2e |
Summary: Authen-PAM Perl module
|
|
 |
0adc2e |
|
|
 |
0adc2e |
Group: Development/Libraries
|
|
 |
0adc2e |
License: (GPL+ or Artistic) and (GPLv2+ or Artistic)
|
|
 |
0adc2e |
URL: http://search.cpan.org/dist/Authen-PAM/
|
|
 |
0adc2e |
Source0: http://search.cpan.org/CPAN/authors/id/N/NI/NIKIP/Authen-PAM-0.16.tar.gz
|
|
 |
0adc2e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
 |
0adc2e |
|
|
 |
0adc2e |
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
 |
0adc2e |
BuildRequires: pam-devel
|
|
 |
0adc2e |
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
 |
0adc2e |
%{?scl:Requires: %scl_runtime}
|
|
 |
0adc2e |
ExclusiveArch: %{ix86} x86_64
|
|
 |
0adc2e |
|
|
 |
0adc2e |
%description
|
|
 |
0adc2e |
|
|
 |
0adc2e |
|
|
 |
0adc2e |
%prep
|
|
 |
0adc2e |
%setup -q -n Authen-PAM-%{version}
|
|
 |
0adc2e |
|
|
 |
0adc2e |
|
|
 |
0adc2e |
%build
|
|
 |
0adc2e |
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
|
|
 |
0adc2e |
make %{?_smp_mflags}
|
|
 |
0adc2e |
|
|
 |
0adc2e |
|
|
 |
0adc2e |
%install
|
|
 |
0adc2e |
rm -rf $RPM_BUILD_ROOT
|
|
 |
0adc2e |
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT/%_scl_root
|
|
 |
0adc2e |
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
|
 |
0adc2e |
find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
|
 |
0adc2e |
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
 |
0adc2e |
chmod -R u+w $RPM_BUILD_ROOT/*
|
|
 |
0adc2e |
|
|
 |
0adc2e |
# tests failed horribly. old spec did not run them so disable for now
|
|
 |
0adc2e |
#%check
|
|
 |
0adc2e |
#make test
|
|
 |
0adc2e |
|
|
 |
0adc2e |
|
|
 |
0adc2e |
%clean
|
|
 |
0adc2e |
rm -rf $RPM_BUILD_ROOT
|
|
 |
0adc2e |
|
|
 |
0adc2e |
|
|
 |
0adc2e |
%files
|
|
 |
0adc2e |
%defattr(-,root,root,-)
|
|
 |
0adc2e |
%doc Changes README
|
|
 |
0adc2e |
%_scl_root%{perl_vendorarch}/*
|
|
 |
0adc2e |
%exclude %dir %_scl_root%{perl_vendorarch}/auto/
|
|
 |
0adc2e |
%{_mandir}/man3/*.3*
|
|
 |
0adc2e |
|
|
 |
0adc2e |
|
|
 |
0adc2e |
%changelog
|
|
 |
0adc2e |
* Wed Apr 17 2013 Krzysztof Daniel <kdaniel@redhat.com> 0.16-5
|
|
 |
0adc2e |
- Rebuild to get proper dist macro value.
|
|
 |
0adc2e |
|
|
 |
0adc2e |
* Fri Dec 14 2012 Krzysztof Daniel <kdaniel@redhat.com> 0.16-4
|
|
 |
0adc2e |
- Initial contribution to SCL.
|
|
 |
0adc2e |
|
|
 |
0adc2e |
* Thu Apr 14 2011 Michael Mraka <michael.mraka@redhat.com> 0.16-3
|
|
 |
0adc2e |
- rebuilt on RHEL5 and RHEL6
|
|
 |
0adc2e |
|
|
 |
0adc2e |
* Fri Feb 25 2011 Tomas Lestach <tlestach@redhat.com> 0.16-2
|
|
 |
0adc2e |
- tagging to build for RHEL6
|
|
 |
0adc2e |
|
|
 |
0adc2e |
* Sat Feb 28 2009 Dennis Gilmore
|
|
 |
0adc2e |
- re-write spec
|