2009-08-01 12:15:20 +00:00
|
|
|
%define upstream_name Authen-Htpasswd
|
|
|
|
%define upstream_version 0.161
|
|
|
|
|
|
|
|
Name: perl-%{upstream_name}
|
|
|
|
Version: %perl_convert_version %{upstream_version}
|
2011-05-28 06:01:43 +00:00
|
|
|
Release: %mkrel 2
|
2007-04-12 13:53:34 +00:00
|
|
|
|
|
|
|
Summary: Interface to read and modify Apache .htpasswd files
|
|
|
|
License: Artistic/GPL
|
|
|
|
Group: Development/Perl
|
2009-08-01 12:15:20 +00:00
|
|
|
URL: http://search.cpan.org/dist/%{upstream_name}/
|
|
|
|
Source0: http://www.cpan.org/modules/by-module/Authen/%{upstream_name}-%{upstream_version}.tar.gz
|
|
|
|
|
2007-04-12 13:53:34 +00:00
|
|
|
BuildRequires: perl(Class::Accessor::Fast)
|
|
|
|
BuildRequires: perl(Digest)
|
|
|
|
BuildRequires: perl(IO::LockedFile)
|
2008-10-01 14:08:42 +00:00
|
|
|
BuildRequires: perl(Crypt::PasswdMD5)
|
2007-04-12 13:53:34 +00:00
|
|
|
BuildArch: noarch
|
2009-08-01 12:15:20 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
2007-04-12 13:53:34 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
This module provides a convenient, object-oriented interface to Apache-style
|
|
|
|
.htpasswd files. It supports passwords encrypted via MD5, SHA1, and crypt, as
|
|
|
|
well as plain (cleartext) passwords. It requires Crypt::PasswdMD5 for MD5 and
|
|
|
|
Digest::SHA1 for SHA1.
|
|
|
|
|
|
|
|
%prep
|
2009-08-01 12:15:20 +00:00
|
|
|
%setup -q -n %{upstream_name}-%{upstream_version}
|
2007-04-12 13:53:34 +00:00
|
|
|
|
|
|
|
%build
|
2007-08-15 22:09:12 +00:00
|
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
|
|
|
%make
|
2007-04-12 13:53:34 +00:00
|
|
|
|
|
|
|
%check
|
2007-08-15 22:09:12 +00:00
|
|
|
make test
|
2007-04-12 13:53:34 +00:00
|
|
|
|
|
|
|
%install
|
2007-08-15 22:09:12 +00:00
|
|
|
rm -rf %{buildroot}
|
|
|
|
%makeinstall_std
|
2007-04-12 13:53:34 +00:00
|
|
|
|
2009-08-01 12:15:20 +00:00
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
2007-04-12 13:53:34 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README
|
|
|
|
%{_mandir}/*/*
|
2009-08-01 12:15:20 +00:00
|
|
|
%{perl_vendorlib}/Authen
|