From 189f000bd21dcbe1e12b4728f4cda3c3535018d0 Mon Sep 17 00:00:00 2001 From: Chitlesh GOORAH Date: Dec 24 2008 14:23:30 +0000 Subject: new package --- diff --git a/.cvsignore b/.cvsignore index e69de29..ef01cb4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +Hardware-Vhdl-Tidy-0.8.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..bc66448 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +perl-Hardware-Vhdl-Tidy-0_8-2_fc10:HEAD:perl-Hardware-Vhdl-Tidy-0.8-2.fc10.src.rpm:1230128474 diff --git a/perl-Hardware-Vhdl-Tidy.spec b/perl-Hardware-Vhdl-Tidy.spec new file mode 100644 index 0000000..e416aa2 --- /dev/null +++ b/perl-Hardware-Vhdl-Tidy.spec @@ -0,0 +1,81 @@ +Name: perl-Hardware-Vhdl-Tidy +Version: 0.8 +Release: 2%{?dist} +Summary: VHDL code prettifier + +License: GPL+ or Artistic +Group: Development/Libraries +URL: http://search.cpan.org/dist/Hardware-Vhdl-Tidy/ +Source0: http://www.cpan.org/authors/id/M/MY/MYKL/Hardware-Vhdl-Tidy-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Hardware::Vhdl::Lexer) +BuildRequires: perl(Test::More) +BuildRequires: perl(Test::Pod) + +# %%dir %%{perl_vendorlib}/Hardware/Vhdl/ is owned by perl-Hardware-Vhdl-Parser +# perl(Hardware::Vhdl::Lexer) requires perl-Hardware-Vhdl-Parser + +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%description +This module auto-indents VHDL source code. It may be extended in future to +do other types of code prettification. + + +%prep +%setup -q -n Hardware-Vhdl-Tidy-%{version} + +# rpmlint : line endings spurious-executable-perm +for i in Changes README lib/Hardware/Vhdl/Tidy.pm ; do + echo "Fixing wrong-file-end-of-line-encoding : $i" + %{__sed} 's/\r//' $i > $i.rpmlint + touch -r $i $i.rpmlint; + %{__mv} $i.rpmlint $i + echo "Fixing perms : $i" + chmod 0644 $i +done + + +%build +%{__perl} Makefile.PL INSTALLDIRS=vendor +make %{?_smp_mflags} + + +%install +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/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc Changes README test_in.vhd +%{perl_vendorlib}/Hardware/Vhdl/Tidy.pm +%{_mandir}/man3/* + + +%changelog +* Sun Dec 21 2008 Chitlesh GOORAH 0.8-2 +- updated as suggestion on review RHBZ 477520#c1 + +* Sun Dec 14 2008 Chitlesh GOORAH 0.8-1 +- Specfile autogenerated by cpanspec 1.77. diff --git a/sources b/sources index e69de29..8cfe33c 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +076689a78d2b2cd11d87f4d0739c42bf Hardware-Vhdl-Tidy-0.8.tar.gz