]>
Commit | Line | Data |
---|---|---|
13984b2f | 1 | # |
2 | # Conditional build: | |
491bc606 | 3 | %bcond_without tests # do not perform "make test" |
13984b2f | 4 | # |
5 | %include /usr/lib/rpm/macros.perl | |
af81d28d | 6 | %define pdir Exporter |
7 | %define pnam Easy | |
7d7287fb | 8 | Summary: Exporter::Easy - takes the drudgery out of exporting symbols |
0dd3e7e2 | 9 | Summary(pl.UTF-8): Exporter::Easy - przejmujący harówkę eksportowania symboli |
13984b2f | 10 | Name: perl-Exporter-Easy |
8cde6db3 AG |
11 | Version: 0.16 |
12 | Release: 1 | |
f090b4f9 | 13 | # same as perl |
14 | License: GPL v1+ or Artistic | |
13984b2f | 15 | Group: Development/Languages/Perl |
16 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
8cde6db3 | 17 | # Source0-md5: 16f44909db2e85578ed2f26db490312b |
eddc3da0 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
13984b2f | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
58ab1da6 JB |
24 | Exporter::Easy gets rid of the drudgery of exporting symbols allowing |
25 | you to eliminate those bits of code that exists in every single module | |
26 | that uses Exporter. | |
13984b2f | 27 | |
58ab1da6 | 28 | It also allows you to define tags in terms of other tags and you no |
13984b2f | 29 | longer have to worry about filling in @EXPORT_OK. |
30 | ||
74974dda JR |
31 | %description -l pl.UTF-8 |
32 | Exporter::Easy pozwala pozbyć się harówki związanej z eksportowaniem | |
33 | symboli, pozwalając wyeliminować te fragmenty kodu, istniejące w | |
34 | każdym module używającym Exportera. | |
58ab1da6 | 35 | |
74974dda JR |
36 | Pozwala także na definiowanie znaczników w kontekście innych |
37 | znaczników, więc nie trzeba się już martwić o wypełnianie @EXPORT_OK. | |
13984b2f | 38 | |
39 | %prep | |
40 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
41 | ||
42 | %build | |
43 | %{__perl} -pi -e "s/INSTALLDIRS => 'perl',//" Makefile.PL | |
44 | %{__perl} Makefile.PL \ | |
e0b177a5 | 45 | INSTALLDIRS=vendor |
13984b2f | 46 | %{__make} |
47 | ||
491bc606 | 48 | %{?with_tests:%{__make} test} |
13984b2f | 49 | |
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc README CHANGES | |
62 | %{perl_vendorlib}/%{pdir}/*.pm | |
63 | %{_mandir}/man3/* |