perl-Net-DNS/perl-Net-DNS.spec
cvsdist 20d1bb9afe auto-import changelog data from perl-Net-DNS-0.31-3.src.rpm
Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
- version bump and rebuild
Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
- update to latest version from CPAN
2004-09-09 10:13:52 +00:00

78 lines
2.0 KiB
RPMSpec

%define _use_internal_dependency_generator 0
Name: perl-Net-DNS
Version: 0.31
Release: 3
Packager: cturner@redhat.com
Summary: Net-DNS Perl module
License: distributable
Group: Development/Libraries
URL: http://search.cpan.org/search?mode=module&query=Net%3a%3aDNS
BuildRoot: %{_tmppath}/%{name}-root
BuildRequires: perl >= 0:5.00503
Source0: Net-DNS-%{version}.tar.gz
BuildArch: noarch
BuildRequires: perl-Digest-HMAC
%description
Net::DNS is a collection of Perl modules that act as a Domain Name
System (DNS) resolver. It allows the programmer to perform DNS queries
that are beyond the capabilities of gethostbyname and gethostbyaddr.
The programmer should be somewhat familiar with the format of a DNS
packet and its various sections. See RFC 1035 or DNS and BIND (Albitz
& Liu) for details.
%prep
%setup -q -n Net-DNS-%{version}
%build
CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL PREFIX=$RPM_BUILD_ROOT/usr INSTALLDIRS=vendor
make
make test
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
eval `perl '-V:installarchlib'`
mkdir -p $RPM_BUILD_ROOT/$installarchlib
make install
[ -x /usr/lib/rpm/brp-compress ] && /usr/lib/rpm/brp-compress
find $RPM_BUILD_ROOT \( -name perllocal.pod -o -name .packlist \) -exec rm -v {} \;
find $RPM_BUILD_ROOT/usr -type f -print | \
sed "s@^$RPM_BUILD_ROOT@@g" | \
grep -v perllocal.pod | \
grep -v "\.packlist" > Net-DNS-%{version}-filelist
if [ "$(cat Net-DNS-%{version}-filelist)X" = "X" ] ; then
echo "ERROR: EMPTY FILE LIST"
exit -1
fi
%files -f Net-DNS-%{version}-filelist
%defattr(-,root,root)
%changelog
* Mon Jan 27 2003 Chip Turner <cturner@redhat.com>
- version bump and rebuild
* Tue Dec 10 2002 Chip Turner <cturner@redhat.com>
- update to latest version from CPAN
* Tue Aug 6 2002 Chip Turner <cturner@redhat.com>
- automated release bump and build
* Tue Aug 6 2002 Chip Turner <cturner@localhost.localdomain>
- update to 0.26
* Thu Jun 27 2002 Chip Turner <cturner@redhat.com>
- description update
* Sat Jun 15 2002 cturner@redhat.com
- Specfile autogenerated