File perl-Term-ReadPassword.spec of Package perl-Term-ReadPassword
Name: perl-Term-ReadPassword
Version: 0.07
Release: 1
License: GPL
Group: Development/Libraries/Perl
Summary: Perl module Term::ReadPassword
Summary(de): Perlmodul Term::ReadPassword
URL: http://search.cpan.org/~phoenix/
Source0: Term-ReadPassword-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Packager: Carsten Schoene <cs@linux-administrator.com>
Vendor: linux-administrator.com
BuildRequires: glibc-devel libgcc gcc gcc-c++ perl
%if 0%{?fedora_version} >= 7
BuildRequires: perl-ExtUtils-MakeMaker
%endif
%description
This module lets you ask the user for a password in the
traditional way, from the keyboard, without echoing.
%description(de)
Dieses Modul fragt den Benutzer nach einem Passwort ohne
es auf der Konsole auszugeben.
%prep
%setup -q -n Term-ReadPassword-%{version}
perl Makefile.PL
%__make
%makeinstall DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version}
%perl_process_packlist
%else
find $RPM_BUILD_ROOT -name perllocal.pod -exec rm {} \; >/dev/null
%endif
install -m 755 -d $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}
cp README Changes $RPM_BUILD_ROOT/usr/share/doc/packages/%{name}
cd $RPM_BUILD_ROOT
find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > $RPM_BUILD_DIR/file.list.%{name}
find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> $RPM_BUILD_DIR/file.list.%{name}
%clean
rm -rf $RPM_BUILD_ROOT/*
rm -rf $RPM_BUILD_DIR/%{name}*
rm -rf ../file.list.%{name}
%files -f ../file.list.%{name}
%changelog
* Fri Dec 09 2005 Carsten Schoene <cs@linux-administrator.com>
- initial build, needed by vhcs2. In preparation for upcoming vhcs2 SuSE packages.