]>
Commit | Line | Data |
---|---|---|
c55bcf2a MP |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Verilog | |
7 | %define pnam Perl | |
3625327e JB |
8 | Summary: Verilog::Perl - an Perl way to handle Verilog files |
9 | Summary(pl.UTF-8): Verilog::Perl - perlowy sposób obsługi plików Verilog | |
c55bcf2a | 10 | Name: perl-Verilog-Perl |
25a51b42 | 11 | Version: 2.372 |
c55bcf2a MP |
12 | Release: 0.1 |
13 | License: LGPL or Perl Artistic License | |
14 | Group: Development/Languages/Perl | |
3625327e | 15 | Source0: http://www.cpan.org/modules/by-module/Verilog/%{pdir}-%{pnam}-%{version}.tar.gz |
25a51b42 | 16 | # Source0-md5: b879520aa1f4b05c01f5cfa2bcdfaa12 |
3625327e | 17 | URL: http://search.cpan.org/dist/Verilog-Perl/ |
c55bcf2a MP |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
c55bcf2a MP |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
3625327e JB |
23 | Verilog::Parser, Verilog::Preproc, and other Perl modules useful for |
24 | manipulation of Verilog files. The Verilog::Parser package will | |
25 | tokenize a Verilog file when the parse() method is called and invoke | |
26 | various callback methods. This is useful for extracting information | |
27 | and editing files while retaining all context. For netlist like | |
28 | extractions, see Verilog::Netlist. Verilog::Preproc reads Verilog | |
29 | files, and preprocesses them according to the Verilog 2001 | |
30 | specification. Programs can be easily converted from reading a | |
c55bcf2a | 31 | IO::File into reading preprocessed output from Verilog::Preproc. |
3625327e JB |
32 | Verilog::Netlist contains interconnect information about a whole |
33 | design database. | |
c55bcf2a | 34 | |
3625327e JB |
35 | %description -l pl.UTF-8 |
36 | Verilog::Parser, Verilog::Preproc i inne moduły Perla przydatne do | |
37 | obróbki plików Verilog. Pakiet Verilog::Parser po wywołaniu metody | |
38 | parse() zamienia plik Verilog na tokeny i wykonuje różne metody | |
39 | wywołań zwrotnych. Jest to przydatne przy wyciąganiu informacji i | |
40 | modyfikowaniu plików z zachowaniem całego kontekstu. Do wyciągania | |
41 | informacji w stylu netlist można użyć Verilog::Netlist. | |
42 | Verilog::Preproc czyta pliki Verilog i przetwarza je zgodnie ze | |
43 | specyfikacją Verilog 2001. Można łatwo przekształcać programy z | |
44 | odczytu za pomocą IO::File na czytanie przetworzonego wyjścia z | |
45 | Verilog::Preproc. Verilog::Netlist zawiera dołączone informacje o | |
46 | całej bazie projektu. | |
c55bcf2a MP |
47 | |
48 | %prep | |
49 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
50 | ||
51 | %build | |
52 | %{__perl} Makefile.PL \ | |
53 | INSTALLDIRS=vendor | |
54 | %{__make} | |
55 | ||
56 | %{?with_tests:%{__make} test} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install \ | |
62 | DESTDIR=$RPM_BUILD_ROOT | |
63 | ||
64 | %clean | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | # maybe bin/man1 should be moved to another package | |
68 | %files | |
69 | %defattr(644,root,root,755) | |
70 | %doc Changes README | |
3625327e | 71 | %attr(755,root,root) %{_bindir}/* |
c55bcf2a MP |
72 | %dir %{perl_vendorarch}/Verilog |
73 | %{perl_vendorarch}/Verilog/*.pm | |
74 | %dir %{perl_vendorarch}/Verilog/Netlist | |
75 | %{perl_vendorarch}/Verilog/Netlist/*.pm | |
76 | %dir %{perl_vendorarch}/auto/Verilog/Preproc | |
77 | %{perl_vendorarch}/auto/Verilog/Preproc/Preproc* | |
c55bcf2a | 78 | %{_mandir}/man1/* |
3625327e | 79 | %{_mandir}/man3/* |