]>
Commit | Line | Data |
---|---|---|
6d44a155 AM |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %define pdir Alien | |
6 | %define pnam Base | |
6d44a155 | 7 | Summary: Alien::Base - Base classes for Alien:: modules |
0c507ea0 | 8 | Summary(pl.UTF-8): Alien::Base - klasy bazowe dla modułów Alien:: |
6d44a155 | 9 | Name: perl-Alien-Base |
46d49656 | 10 | Version: 0.005 |
0c507ea0 | 11 | Release: 2 |
6d44a155 AM |
12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
46d49656 JR |
15 | Source0: http://www.cpan.org/modules/by-module/Alien/%{pdir}-%{pnam}-%{version}.tar.gz |
16 | # Source0-md5: a9718c202966e7fafd23fbcf069e7c6b | |
6d44a155 | 17 | URL: http://search.cpan.org/dist/Alien-Base/ |
0c507ea0 | 18 | BuildRequires: perl-Module-Build >= 0.36 |
6d44a155 AM |
19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
0c507ea0 | 21 | BuildRequires: rpmbuild(macros) >= 1.745 |
6d44a155 | 22 | %if %{with tests} |
0c507ea0 | 23 | BuildRequires: perl-Archive-Extract |
6d44a155 AM |
24 | BuildRequires: perl-Capture-Tiny >= 0.17 |
25 | BuildRequires: perl-File-ShareDir | |
0c507ea0 | 26 | BuildRequires: perl-File-chdir >= 0.1005 |
6d44a155 AM |
27 | BuildRequires: perl-List-MoreUtils |
28 | BuildRequires: perl-Sort-Versions | |
0c507ea0 | 29 | BuildRequires: perl-Test-Simple >= 0.94 |
6d44a155 AM |
30 | BuildRequires: perl-URI |
31 | %endif | |
32 | BuildArch: noarch | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | Alien::Base comprises base classes to help in the construction of | |
37 | Alien:: modules. Modules in the Alien namespace are used to locate and | |
38 | install (if necessary) external libraries needed by other Perl | |
39 | modules. | |
40 | ||
0c507ea0 JB |
41 | %description -l pl.UTF-8 |
42 | Alien::Base obejmuje klasy bazowe pomagające w konstrukcji modułów | |
43 | Alien::. Moduły w przestrzeni nazw Alien służą do lokalizacji i | |
44 | instalowania (w razie potrzeby) zewnętrznych bibliotek wymaganych | |
45 | przez inne moduły Perla. | |
46 | ||
6d44a155 AM |
47 | %prep |
48 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
49 | ||
50 | %build | |
51 | %{__perl} Build.PL \ | |
52 | destdir=$RPM_BUILD_ROOT \ | |
53 | installdirs=vendor | |
54 | ./Build | |
55 | ||
56 | %{?with_tests:./Build test} | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | ./Build install | |
62 | ||
0c507ea0 JB |
63 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Alien/Base/Authoring.pod |
64 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorlib}/Alien/Base/ModuleBuild/API.pod | |
65 | ||
6d44a155 AM |
66 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
67 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
68 | ||
69 | %clean | |
70 | rm -rf $RPM_BUILD_ROOT | |
71 | ||
72 | %files | |
73 | %defattr(644,root,root,755) | |
74 | %doc Changes README TODO | |
0c507ea0 JB |
75 | %{perl_vendorlib}/Alien/Base.pm |
76 | %dir %{perl_vendorlib}/Alien/Base | |
77 | %{perl_vendorlib}/Alien/Base/ConfigData.pm | |
78 | %{perl_vendorlib}/Alien/Base/ModuleBuild.pm | |
79 | %{perl_vendorlib}/Alien/Base/PkgConfig.pm | |
80 | %{perl_vendorlib}/Alien/Base/ModuleBuild | |
81 | %{_mandir}/man3/Alien::Base.3pm* | |
82 | %{_mandir}/man3/Alien::Base::Authoring.3pm* | |
83 | %{_mandir}/man3/Alien::Base::ConfigData.3pm* | |
84 | %{_mandir}/man3/Alien::Base::ModuleBuild.3pm* | |
85 | %{_mandir}/man3/Alien::Base::ModuleBuild::API.3pm* | |
6d44a155 | 86 | %{_examplesdir}/%{name}-%{version} |