2 # - should use CXX/CC make options not CC for .cpp compile!
3 # - maybe bin/man1 should be moved to another package
6 %bcond_without tests # do not perform "make test"
10 Summary: Verilog::Perl - an Perl way to handle Verilog files
11 Summary(pl.UTF-8): Verilog::Perl - perlowy sposób obsługi plików Verilog
12 Name: perl-Verilog-Perl
15 License: LGPL or Perl Artistic License
16 Group: Development/Languages/Perl
17 Source0: http://www.cpan.org/modules/by-module/Verilog/%{pdir}-%{pnam}-%{version}.tar.gz
18 # Source0-md5: eeae6411b8fd9cdda04fea065065b2ac
19 URL: http://search.cpan.org/dist/Verilog-Perl/
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Verilog::Parser, Verilog::Preproc, and other Perl modules useful for
27 manipulation of Verilog files. The Verilog::Parser package will
28 tokenize a Verilog file when the parse() method is called and invoke
29 various callback methods. This is useful for extracting information
30 and editing files while retaining all context. For netlist like
31 extractions, see Verilog::Netlist. Verilog::Preproc reads Verilog
32 files, and preprocesses them according to the Verilog 2001
33 specification. Programs can be easily converted from reading a
34 IO::File into reading preprocessed output from Verilog::Preproc.
35 Verilog::Netlist contains interconnect information about a whole
38 %description -l pl.UTF-8
39 Verilog::Parser, Verilog::Preproc i inne moduły Perla przydatne do
40 obróbki plików Verilog. Pakiet Verilog::Parser po wywołaniu metody
41 parse() zamienia plik Verilog na tokeny i wykonuje różne metody
42 wywołań zwrotnych. Jest to przydatne przy wyciąganiu informacji i
43 modyfikowaniu plików z zachowaniem całego kontekstu. Do wyciągania
44 informacji w stylu netlist można użyć Verilog::Netlist.
45 Verilog::Preproc czyta pliki Verilog i przetwarza je zgodnie ze
46 specyfikacją Verilog 2001. Można łatwo przekształcać programy z
47 odczytu za pomocą IO::File na czytanie przetworzonego wyjścia z
48 Verilog::Preproc. Verilog::Netlist zawiera dołączone informacje o
52 %setup -q -n %{pdir}-%{pnam}-%{version}
55 %{__perl} Makefile.PL \
59 OPTIMIZE="%{rpmcflags}"
61 %{?with_tests:%{__make} test}
64 rm -rf $RPM_BUILD_ROOT
67 DESTDIR=$RPM_BUILD_ROOT
69 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/Verilog/Verilog-Perl.pod
70 rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Verilog/Language/.packlist
73 rm -rf $RPM_BUILD_ROOT
76 %defattr(644,root,root,755)
78 %attr(755,root,root) %{_bindir}/*
79 %dir %{perl_vendorarch}/Verilog
80 %{perl_vendorarch}/Verilog/*.pm
81 %dir %{perl_vendorarch}/Verilog/Netlist
82 %{perl_vendorarch}/Verilog/Netlist/*.pm
83 %dir %{perl_vendorarch}/auto/Verilog
84 %dir %{perl_vendorarch}/auto/Verilog/Preproc
85 %attr(755,root,root) %{perl_vendorarch}/auto/Verilog/Preproc/Preproc.so
86 %dir %{perl_vendorarch}/auto/Verilog/Parser
87 %attr(755,root,root) %{perl_vendorarch}/auto/Verilog/Parser/Parser.so