%global commit0 3ac930f258775f98a7d3a4e47ebfa6b743419b06 %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Name: perl-Net-TFTPd Version: 0.11 Release: 3%{?dist} Summary: Perl extension for Trivial File Transfer Protocol Server License: GPL+ or Artistic Group: Development/Libraries URL: https://github.com/ksyz/Net-TFTPd/ Source0: https://github.com/ksyz/Net-TFTPd/archive/%{commit0}.tar.gz#/%{name}-%{version}.git_%{shortcommit0}.tar.gz BuildArch: noarch BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl BuildRequires: perl-generators BuildRequires: perl(Test::Simple) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) Requires: perl(File::Copy) Requires: perl(File::Temp) Requires: perl(IO::Socket::IP) %description Net::TFTPd is a class implementing a simple Trivial File Transfer Protocol server in Perl as described in RFC1350. %prep %setup -q -n Net-TFTPd-%{commit0} %build %{__perl} Makefile.PL INSTALLDIRS=vendor make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT install -m 755 -d $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples mv $RPM_BUILD_ROOT/%{_bindir}/* $RPM_BUILD_ROOT/%{_docdir}/%{name}/examples find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \; find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check make test %files %defattr(-,root,root,-) %doc Changes META.json README %{perl_vendorlib}/* %{_mandir}/man3/* %{_mandir}/man1/* %{_docdir}/%{name}/examples/* %changelog * Tue Jan 16 2018 Michal Ingeli 0.11-3 - Added perl-generators as BR * Tue Jan 16 2018 Michal Ingeli 0.11-2 - Added Test* BR - Specfile autogenerated by cpanspec 1.78. * Tue Jan 16 2018 Michal Ingeli 0.11-1 - Specfile autogenerated by cpanspec 1.78.