diff --git a/Crypt-GeneratePassword-0.03.tar.gz b/Crypt-GeneratePassword-0.03.tar.gz deleted file mode 100644 index 18d96c9..0000000 --- a/Crypt-GeneratePassword-0.03.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4274d1aedcdd6e5ad54f417390dae75bc9231726c7431ab1aee40a507b3748c3 -size 193105 diff --git a/Crypt-GeneratePassword-0.04.tar.gz b/Crypt-GeneratePassword-0.04.tar.gz new file mode 100644 index 0000000..9928a49 --- /dev/null +++ b/Crypt-GeneratePassword-0.04.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff24f89e37eab1040e2ce16ed02110454a7caa14f4f03e0449e54af344a0e5bd +size 220744 diff --git a/cpanspec.yml b/cpanspec.yml new file mode 100644 index 0000000..9b320f5 --- /dev/null +++ b/cpanspec.yml @@ -0,0 +1,20 @@ +--- +#description_paragraphs: 3 +#no_testing: broken upstream +#sources: +# - source1 +# - source2 +#patches: +# foo.patch: -p1 +# bar.patch: +#preamble: |- +# BuildRequires: gcc-c++ +#post_prep: |- +# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'` +# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL +#post_install: |- +# sed on %{name}.files +#license: SUSE-NonFree +#skip_noarch: 1 +#custom_build: - +#./Build build flags=%{?_smp_mflags} --myflag diff --git a/perl-Crypt-GeneratePassword.changes b/perl-Crypt-GeneratePassword.changes index 3f1b700..925a386 100644 --- a/perl-Crypt-GeneratePassword.changes +++ b/perl-Crypt-GeneratePassword.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 16 21:17:40 UTC 2015 - coolo@suse.com + +- updated to 0.04 + see /usr/share/doc/packages/perl-Crypt-GeneratePassword/Changes + ------------------------------------------------------------------- Wed Dec 1 13:31:16 UTC 2010 - coolo@novell.com diff --git a/perl-Crypt-GeneratePassword.spec b/perl-Crypt-GeneratePassword.spec index 1c66f14..8935c00 100644 --- a/perl-Crypt-GeneratePassword.spec +++ b/perl-Crypt-GeneratePassword.spec @@ -1,7 +1,7 @@ # # spec file for package perl-Crypt-GeneratePassword # -# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,24 +15,23 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - Name: perl-Crypt-GeneratePassword +Version: 0.04 +Release: 0 %define cpan_name Crypt-GeneratePassword -Summary: Generate secure random pronounceable passwords -Version: 0.03 -Release: 1 -License: CHECK(GPL+ or Artistic) +Summary: Generate Secure Random Pronounceable Passwords +License: Artistic-1.0 or GPL-1.0+ Group: Development/Libraries/Perl Url: http://search.cpan.org/dist/Crypt-GeneratePassword/ -#Source: http://www.cpan.org/modules/by-module/Crypt/Crypt-GeneratePassword-%{version}.tar.bz2 -Source: %{cpan_name}-%{version}.tar.gz +Source0: http://www.cpan.org/authors/id/N/NE/NEILB/%{cpan_name}-%{version}.tar.gz +Source1: cpanspec.yml BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build -%{perl_requires} BuildRequires: perl BuildRequires: perl-macros +BuildRequires: perl(Test::More) >= 0.88 +%{perl_requires} %description Crypt::GeneratePassword generates random passwords that are (more or less) @@ -40,6 +39,21 @@ pronounceable. Unlike Crypt::RandPasswd, it doesn't use the FIPS-181 NIST standard, which is proven to be insecure. It does use a similar interface, so it should be a drop-in replacement in most cases. +If you want to use passwords from a different language than english, you +can use one of the packaged alternate unit tables or generate your own. See +below for details. + +For details on why FIPS-181 is insecure and why the solution used in this +module is reasonably secure, see "A New Attack on Random Pronounceable +Password Generators" by Ravi Ganesan and Chris Davies, available online in +may places - use your favourite search engine. + +This module improves on FIPS-181 using a true random selection with the +word generator as mere filter. Other improvements are better +pronounceability using third order approximation instead of second order +and multi-language support. Drawback of this method is that it is usually +slower. Then again, computer speed has improved a little since 1977. + %prep %setup -q -n %{cpan_name}-%{version} @@ -52,18 +66,11 @@ so it should be a drop-in replacement in most cases. %install %perl_make_install -# do not perl_process_packlist (noarch) -# remove .packlist file -%{__rm} -rf $RPM_BUILD_ROOT%perl_vendorarch -# remove perllocal.pod file -%{__rm} -rf $RPM_BUILD_ROOT%perl_archlib +%perl_process_packlist %perl_gen_filelist -%clean -%{__rm} -rf %{buildroot} - %files -f %{name}.files -%defattr(-,root,root,-) -%doc Changes README +%defattr(-,root,root,755) +%doc Changes LICENSE README %changelog