diff --git a/Verilog-Readmem-0.05.tar.gz b/Verilog-Readmem-0.05.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0f1bceddf649cb8283658e29c94f41205c94d2d2 Binary files /dev/null and b/Verilog-Readmem-0.05.tar.gz differ diff --git a/perl-Verilog-Readmem.spec b/perl-Verilog-Readmem.spec new file mode 100644 index 0000000000000000000000000000000000000000..3a0dd8f7537135212034201c0f60a78de04686f3 --- /dev/null +++ b/perl-Verilog-Readmem.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: perl-Verilog-Readmem +Version: 0.05 +Release: 1 +Summary: Parse Verilog $readmemh or $readmemb text file +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Verilog-Readmem/ +Source0: http://www.cpan.org/authors/id/G/GS/GSULLIVAN/Verilog-Readmem-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Test::More) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) +%description +The Verilog Hardware Description Language (HDL) provides a convenient way +to load a memory during logic simulation. The $readmemh() and $readmemb() +system tasks are used in the HDL source code to import the contents of a +text file into a memory variable. +%package help +Summary : Parse Verilog $readmemh or $readmemb text file +Provides: perl-Verilog-Readmem-doc +%description help +The Verilog Hardware Description Language (HDL) provides a convenient way +to load a memory during logic simulation. The $readmemh() and $readmemb() +system tasks are used in the HDL source code to import the contents of a +text file into a memory variable. +%prep +%setup -q -n Verilog-Readmem-%{version} +%build +export PERL_MM_OPT="" +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + +%install +export PERL_MM_OPT="" +rm -rf $RPM_BUILD_ROOT + +make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT + +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/* + +pushd %{buildroot} +touch filelist.lst +if [ -d usr/bin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ];then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ];then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib ];then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +popd +mv %{buildroot}/filelist.lst . +%check +make test + +%clean +rm -rf $RPM_BUILD_ROOT + +%files -f filelist.lst +%defattr(-,root,root,-) +%doc Changes README +%{perl_vendorlib}/* +%files help +%{_mandir}/* + +%changelog +* Sat Jun 05 2021 Perl_Bot 0.05-1 +- Specfile autogenerated by Perl_Bot