]>
Commit | Line | Data |
---|---|---|
0041f13f | 1 | # |
f1a4375e MP |
2 | # Conditional build: |
3 | %bcond_without tests # do perform "make test" | |
0041f13f | 4 | # |
f1a4375e | 5 | %include /usr/lib/rpm/macros.perl |
af87ab8d | 6 | %define pdir Barcode |
7 | %define pnam Code128 | |
f1a4375e | 8 | Summary: Barcode::Code128 - Perl module for generating CODE 128 bar codes |
2f14bce8 | 9 | Summary(pl.UTF-8): Barcode::Code128 - moduł Perla do generowania kodów paskowych CODE 128 |
f1a4375e | 10 | Name: perl-Barcode-Code128 |
70600944 | 11 | Version: 2.01 |
12 | Release: 1 | |
0041f13f | 13 | License: Public Domain |
f1a4375e | 14 | Group: Development/Languages/Perl |
70600944 | 15 | Source0: http://www.cpan.org/modules/by-module/Barcode-Code128/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: a0aa077b26926c30659471d14515d907 | |
17 | URL: http://search.cpan.org/dist/Barcode-Code128/ | |
0041f13f | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
f1a4375e | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
0041f13f | 20 | BuildArch: noarch |
f1a4375e MP |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
0041f13f JB |
24 | Barcode::Code128 generates bar codes using the CODE 128 symbology. It |
25 | can generate images in PNG or GIF format using the GD package, or it | |
26 | can generate a text string representing the barcode that you can | |
27 | render using some other technology if desired. | |
28 | ||
454c176c JR |
29 | %description -l pl.UTF-8 |
30 | Barcode::Code128 generuje kody paskowe przy użyciu symboli CODE 128. | |
31 | Może generować obrazki w formacie PNG lub GIF przy użyciu pakietu GD | |
32 | albo tekst reprezentujący kod paskowy, który można zrenderować w inny | |
33 | sposób. | |
f1a4375e MP |
34 | |
35 | %prep | |
36 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
69a9f71d | 37 | # module generates correct image, but a bit different to |
38 | # the one included in the distribution and compared with | |
39 | mv t/png.t{,.broken} | |
f1a4375e MP |
40 | |
41 | %build | |
42 | %{__perl} Makefile.PL \ | |
43 | INSTALLDIRS=vendor | |
44 | ||
45 | %{__make} | |
46 | ||
0041f13f | 47 | %{?with_tests:%{__make} test} |
f1a4375e MP |
48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
0041f13f JB |
51 | |
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
f1a4375e MP |
54 | |
55 | %clean | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | %files | |
59 | %defattr(644,root,root,755) | |
0041f13f | 60 | %doc Changes README |
f1a4375e MP |
61 | %{perl_vendorlib}/Barcode/Code128.pm |
62 | %{_mandir}/man3/* |