perl-TermReadKey/perl-TermReadKey.spec

49 lines
1.1 KiB
RPMSpec

Name: perl-TermReadKey
Version: 2.17
Release: 14
Summary: TermReadKey Perl module
License: distributable
Group: Development/Libraries
URL: http://search.cpan.org/search?mode=module&query=TermReadKey
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: perl >= 0:5.00503
Source0: TermReadKey-2.17.tar.gz
%description
TermReadKey Perl module
%prep
%setup -q -n TermReadKey-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL
make
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
make PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor install
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
find $RPM_BUILD_ROOT/usr -type f -print | \
sed "s@^$RPM_BUILD_ROOT@@g" | \
grep -v perllocal.pod | \
grep -v "\.packlist" > TermReadKey-2.17-filelist
if [ "$(cat TermReadKey-2.17-filelist)X" = "X" ] ; then
echo "ERROR: EMPTY FILE LIST"
exit -1
fi
%files -f TermReadKey-2.17-filelist
%defattr(-,root,root)
%changelog
* Wed Jan 30 2002 cturner@redhat.com
- Specfile autogenerated