]>
Commit | Line | Data |
---|---|---|
f1a4375e MP |
1 | |
2 | # Conditional build: | |
3 | %bcond_without tests # do perform "make test" | |
4 | ||
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Barcode | |
7 | %define pnam Code128 | |
8 | Summary: Barcode::Code128 - Perl module for generating CODE 128 bar codes | |
9 | Name: perl-Barcode-Code128 | |
10 | Version: 2.00 | |
11 | Release: 1 | |
12 | # same as perl | |
13 | License: GPL/Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 9838b2c070d90f781013a538c5ada15a | |
17 | BuildRequires: perl-devel >= 5.6 | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | Similar functionality is available at shell prompts of *nix O/S. | |
23 | This modules is attempting to provide the same to Perl programming, | |
24 | ||
25 | %prep | |
26 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
27 | ||
28 | %build | |
29 | %{__perl} Makefile.PL \ | |
30 | INSTALLDIRS=vendor | |
31 | ||
32 | %{__make} | |
33 | ||
34 | %{?with_tests:make test} | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | make install DESTDIR=$RPM_BUILD_ROOT | |
39 | ||
40 | %clean | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | %files | |
44 | %defattr(644,root,root,755) | |
45 | %{perl_vendorlib}/Barcode/Code128.pm | |
46 | %{_mandir}/man3/* |