commit
16e5db011a
BIN
Net-DNS-1.17.tar.gz
Normal file
BIN
Net-DNS-1.17.tar.gz
Normal file
Binary file not shown.
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
||||
# perl-Net-DNS
|
||||
|
||||
#### Description
|
||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
||||
|
||||
#### Software Architecture
|
||||
Software architecture description
|
||||
|
||||
#### Installation
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Instructions
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### Contribution
|
||||
|
||||
1. Fork the repository
|
||||
2. Create Feat_xxx branch
|
||||
3. Commit your code
|
||||
4. Create Pull Request
|
||||
|
||||
|
||||
#### Gitee Feature
|
||||
|
||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
||||
# perl-Net-DNS
|
||||
|
||||
#### 介绍
|
||||
{**以下是码云平台说明,您可以替换此简介**
|
||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
||||
|
||||
#### 软件架构
|
||||
软件架构说明
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 码云特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
90
perl-Net-DNS.spec
Normal file
90
perl-Net-DNS.spec
Normal file
@ -0,0 +1,90 @@
|
||||
Name: perl-Net-DNS
|
||||
Version: 1.17
|
||||
Release: 2
|
||||
Summary: DNS resolver modules for Perl
|
||||
License: (GPL+ or Artistic) and MIT
|
||||
URL: https://metacpan.org/release/Net-DNS
|
||||
Source0: https://cpan.metacpan.org/authors/id/N/NL/NLNETLABS/Net-DNS-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: coreutils findutils glibc-common make sed perl-generators perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76 perl(Getopt::Long) perl(IO::Socket) perl(base)
|
||||
BuildRequires: perl(Carp) perl(constant) perl(Data::Dumper) perl(Digest::HMAC) >= 1.03
|
||||
BuildRequires: perl(Digest::MD5) >= 2.13 perl(Digest::SHA) >= 5.23 perl(Encode) perl(Exporter)
|
||||
BuildRequires: perl(File::Spec) perl(FileHandle) perl(integer) perl(IO::File) perl(overload)
|
||||
BuildRequires: perl(IO::Socket::IP) >= 0.32 perl(MIME::Base64) >= 2.11 perl(Net::LibIDN2) >= 1
|
||||
BuildRequires: perl(Socket) perl(strict) perl(Time::Local) perl(warnings) perl(File::Find)
|
||||
BuildRequires: perl(Test::Builder) perl(Test::More) perl(Test::Pod) >= 1.45
|
||||
BuildRequires: perl(Net::DNS::SEC) perl(Net::DNS::SEC::RSA)
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version)) perl(Data::Dumper) perl(MIME::Base64) >= 2.11
|
||||
Requires: perl(Digest::HMAC) >= 1.03 perl(Digest::MD5) >= 2.13 perl(Digest::SHA) >= 5.23 perl(Encode)
|
||||
Suggests: perl(Config) perl(Net::DNS::SEC::DSA) perl(Net::DNS::SEC::ECDSA) perl(Net::DNS::SEC::EdDSA) perl(Scalar::Util) >= 1.25
|
||||
Suggests: perl(Net::DNS::SEC::Private) perl(Net::DNS::SEC::RSA) perl(Net::LibIDN2) >= 1
|
||||
Recommends: perl(IO::Socket::IP) >= 0.32
|
||||
|
||||
%{?perl_default_filter}
|
||||
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Digest::HMAC\\)$
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Digest::MD5\\)$
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Digest::SHA\\)$
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(MIME::Base64\\)$
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(CONFIG\\)$
|
||||
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(OS_CONF\\)$
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\((Net::DNS::Text)\\)$
|
||||
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\((Net::DNS::RR::OPT)\\)$
|
||||
|
||||
Provides: %{name}-Nameserver = %{version}-%{release}
|
||||
Obsoletes: %{name}-Nameserver < %{version}-%{release}
|
||||
|
||||
%description
|
||||
Net :: DNS is a collection of Perl's Domain Name System resolvers.
|
||||
It allows programmers to perform DNS queries for gethostbyname and
|
||||
gethostbyaddr functions.
|
||||
|
||||
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.
|
||||
|
||||
%package help
|
||||
Summary: Introduce how to use %{name}
|
||||
|
||||
%description help
|
||||
User's Manual for %{name}
|
||||
|
||||
%prep
|
||||
%autosetup -n Net-DNS-%{version} -p1
|
||||
chmod -x demo/*
|
||||
sed -i -e '1 s,^#!/usr/local/bin/perl,#!%{__perl},' demo/*
|
||||
for i in Changes; do
|
||||
iconv -f iso8859-1 -t utf-8 "$i" > "${i}.conv"
|
||||
mv -f "${i}.conv" "$i"
|
||||
done
|
||||
|
||||
%build
|
||||
export PERL_MM_USE_DEFAULT=yes
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 --no-online-tests
|
||||
%make_build OPTIMIZE="%{optflags}"
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -type f -name '*.bs' -a -size 0 -delete
|
||||
chmod -R u+w %{buildroot}/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc README Changes demo
|
||||
%{perl_vendorlib}/Net/
|
||||
%{perl_vendorlib}/Net/DNS/Nameserver.pm
|
||||
%exclude %{perl_vendorlib}/Net/DNS/Resolver/cygwin.pm
|
||||
%exclude %{perl_vendorlib}/Net/DNS/Resolver/MSWin32.pm
|
||||
|
||||
%files help
|
||||
%{_mandir}/man3/Net::DNS*.3*
|
||||
%{_mandir}/man3/Net::DNS::Nameserver*
|
||||
%exclude %{_mandir}/man3/Net::DNS::Resolver::cygwin.3*
|
||||
%exclude %{_mandir}/man3/Net::DNS::Resolver::MSWin32.3*
|
||||
|
||||
%changelog
|
||||
* Fri Dec 06 2019 yangjian<yangjian79@huawei.com> - 1.17-2
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user