mirror of
https://abf.rosa.ru/djam/perl-Authen-Htpasswd.git
synced 2025-02-23 16:42:52 +00:00
54 lines
1.2 KiB
RPMSpec
54 lines
1.2 KiB
RPMSpec
%define realname Authen-Htpasswd
|
|
%define name perl-%{realname}
|
|
%define modprefix Authen
|
|
%define version 0.16
|
|
%define release %mkrel 1
|
|
|
|
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)
|
|
BuildArch: noarch
|
|
Buildroot: %{_tmppath}/%{name}-%{version}
|
|
|
|
%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} Makefile.PL INSTALLDIRS=vendor
|
|
%make
|
|
|
|
%check
|
|
make test
|
|
|
|
%install
|
|
rm -rf %{buildroot}
|
|
%makeinstall_std
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%{_mandir}/*/*
|
|
%{perl_vendorlib}/%{modprefix}
|
|
|
|
%clean
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|