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