mirror of
https://abf.rosa.ru/djam/perl-Authen-Htpasswd.git
synced 2025-02-23 16:42:52 +00:00
- SILENT: import perl-Authen-Htpasswd-0.14-5mdv2007.0
SILENT: svn-revision: 6909
This commit is contained in:
commit
e4df10c72d
1 changed files with 56 additions and 0 deletions
56
perl-Authen-Htpasswd.spec
Normal file
56
perl-Authen-Htpasswd.spec
Normal file
|
@ -0,0 +1,56 @@
|
|||
%define realname Authen-Htpasswd
|
||||
%define name perl-%{realname}
|
||||
%define modprefix Authen
|
||||
|
||||
%define version 0.14
|
||||
%define release %mkrel 5
|
||||
|
||||
Summary: Interface to read and modify Apache .htpasswd files
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
License: Artistic/GPL
|
||||
Group: Development/Perl
|
||||
URL: http://search.cpan.org/dist/%{realname}/
|
||||
Source: ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{modprefix}/%{realname}-%{version}.tar.bz2
|
||||
%if %{mdkversion} < 1010
|
||||
BuildRequires: perl-devel
|
||||
%endif
|
||||
BuildRequires: perl(Class::Accessor::Fast)
|
||||
BuildRequires: perl(Digest)
|
||||
BuildRequires: perl(IO::LockedFile)
|
||||
BuildRequires: perl(Module::Build)
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
BuildArch: noarch
|
||||
|
||||
%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
|
||||
%setup -q -n %{realname}-%{version}
|
||||
|
||||
%build
|
||||
%__perl Build.PL installdirs=vendor
|
||||
./Build
|
||||
|
||||
%check
|
||||
./Build test
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
||||
./Build install destdir=%{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README
|
||||
%{_mandir}/*/*
|
||||
%{perl_vendorlib}/%{modprefix}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue