]> git.pld-linux.org Git - packages/perl-Crypt-PassGen.git/blob - perl-Crypt-PassGen.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-Crypt-PassGen.git] / perl-Crypt-PassGen.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # Do not perform "make test"
4
5 %define         pdir    Crypt
6 %define         pnam    PassGen
7 Summary:        Crypt::PassGen Perl module - generate a random password
8 Summary(pl.UTF-8):      Moduł Perla Crypt::PassGen - generujący losowe hasła
9 Name:           perl-Crypt-PassGen
10 Version:        0.05
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  e8aad942e5d407654d726f9c9a9d359a
17 URL:            http://search.cpan.org/dist/Crypt-PassGen/
18 Patch0:         %{name}-FHS.patch
19 BuildRequires:  perl-devel >= 1:5.8.0
20 BuildRequires:  rpm-perlprov >= 4.1-13
21 BuildRequires:  words
22 BuildConflicts: wordlist
23 Requires:       words
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This module provides a single command for generating random password
29 that is close enough to a real word that it is easy to remember. It
30 does this by using the frequency of letter combinations in a language.
31
32 %description -l pl.UTF-8
33 Ten moduł udostępnia polecenie do generowania losowych haseł
34 zbliżonych do prawdziwych słów na tyle, że są łatwe do zapamiętania.
35 Używa do tego tablicy częstości występowania kombinacji liter w danym
36 języku.
37
38 %prep
39 %setup -q -n %{pdir}-%{pnam}-%{version}
40 %patch0 -p1
41
42 %build
43 %{__perl} Makefile.PL \
44         INSTALLDIRS=vendor
45 %{__make}
46 %{?with_tests:%{__make} test}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50
51 %{__make} install \
52         DESTDIR=$RPM_BUILD_ROOT
53
54 %clean
55 rm -rf $RPM_BUILD_ROOT
56
57 %files
58 %defattr(644,root,root,755)
59 %doc ChangeLog README
60 %{perl_vendorlib}/Crypt/PassGen.pm
61 %{perl_vendorlib}/Crypt/PassGenWordFreq.dat
62 %{_mandir}/man3/*
This page took 0.038489 seconds and 3 git commands to generate.