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