File pwgen.spec of Package pwgen

#
# spec file for package pwgen (Version 2.06)
#
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

Name:           pwgen
URL:            http://sourceforge.net/projects/pwgen/
License:        GPL v2 or later
Group:          Productivity/Security
Autoreqprov:    on
Version:        2.06
Release:        1
Summary:        Password generator
Source:         http://belnet.dl.sourceforge.net/sourceforge/pwgen/pwgen-%{version}.tar.bz2
Source1:        ftp://ftp.linpeople.org/pub/People/lilo/source/makepasswd-1.10.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
pwgen generates random, meaningless but pronounceable and thus easy to
remember passwords. The also contained makepasswd gives even more
options which are more aimed at security.



Authors:
--------
    Theodore Ts'o <tytso@alum.mit.edu> (this version)
    Brandon S. Allbery <allbery@ncoast.UUCP> (previous version)
    Rob Levin <levin@openproject.net> (previous version)

%prep
%setup -b 1
cd ../makepasswd-1.10
chmod 644 *

%build
	autoconf
	CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --mandir=%{_mandir}
	make

%install
	rm -rf ${RPM_BUILD_ROOT}
	mkdir -p	${RPM_BUILD_ROOT}/usr/bin
	mkdir -p	${RPM_BUILD_ROOT}%{_mandir}/man1
	make install DESTDIR=$RPM_BUILD_ROOT 
	cd ../makepasswd-1.10
	install -m 755 makepasswd	$RPM_BUILD_ROOT/usr/bin/
	install -m 644 makepasswd.1	$RPM_BUILD_ROOT%{_mandir}/man1
	mkdir doc
	cp -p CHANGES doc/CHANGES.makepasswd
	cp -p README doc/README.makepasswd
	cp -p COPYING-2.0 doc/COPYING-2.0.makepasswd
	mv doc $OLDPWD

%clean
	rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc ChangeLog
%doc doc/*
%doc %{_mandir}/man1/*
/usr/bin/makepasswd
/usr/bin/pwgen

%changelog
* Thu Jul 05 2007 - kssingvo@suse.de
- update to version 2.06:
  * Fix spelling mistakes in the man page pwgen.1
  * Fix bug which would cause pwgen to loop forever if the password
  length specified is 1
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 16 2006 - kssingvo@suse.de
- update to version 2.05
* Wed Jan 11 2006 - kssingvo@suse.de
- update to version 2.04
* Wed Sep 28 2005 - dmueller@suse.de
- add norootforbuild
* Sat Jul 26 2003 - poeml@suse.de
- fix permissions of documentation, and don't use deprecated chown
  *.* syntax
* Tue May 13 2003 - poeml@suse.de
- update to 2.03
  - pw_phonemes.c (pw_phonemes): Fix bug in how we call
  pw_random_number() so that we generate passwords that start
  with vowels, and insert numbers from 0-9, not just 0-8. (Oops!)
  Addresses Debian bug #176688.
- use %%defattr
* Fri Aug 02 2002 - ro@suse.de
- fix file ownership
* Thu Aug 01 2002 - poeml@suse.de
- add documentation to the filelist
* Thu Aug 01 2002 - poeml@suse.de
- update to the successor 2.02
  note: if stdout is not on a terminal, it will behave like the old
- run autoconf and use RPM_OPT_FLAGS
* Tue Apr 17 2001 - bjacke@suse.de
- initial build
openSUSE Build Service is sponsored by