1 |
%define upstream_name App-Magpie |
2 |
%define upstream_version 1.110390 |
3 |
|
4 |
Name: magpie |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 1 |
7 |
|
8 |
Summary: Pause according to build-system recommendations |
9 |
License: GPL+ or Artistic |
10 |
Group: Development/Perl |
11 |
Url: http://search.cpan.org/dist/%{upstream_name} |
12 |
Source0: http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(App::Cmd::Setup) |
15 |
BuildRequires: perl(File::Find) |
16 |
BuildRequires: perl(File::Temp) |
17 |
BuildRequires: perl(FindBin) |
18 |
BuildRequires: perl(LWP::UserAgent) |
19 |
BuildRequires: perl(Log::Dispatchouli) |
20 |
BuildRequires: perl(Module::Build) >= 0.360.100 |
21 |
BuildRequires: perl(Moose) |
22 |
BuildRequires: perl(MooseX::Has::Sugar) |
23 |
BuildRequires: perl(Parse::CPAN::Meta) >= 1.440.100 |
24 |
BuildRequires: perl(Path::Class) >= 0.220.0 |
25 |
BuildRequires: perl(Test::More) >= 0.880.0 |
26 |
BuildRequires: perl(Text::Padding) |
27 |
|
28 |
BuildArch: noarch |
29 |
|
30 |
%description |
31 |
CPAN holds a lot of great modules - but it can be difficult for the user to |
32 |
install if she's not familiar with the process. Therefore, Linux |
33 |
distribution usually package quite a lot of them, for them to be easily |
34 |
installable. |
35 |
|
36 |
Mageia Linux is no exception, and ships more than 2500 packages holding |
37 |
Perl distributions (at the time of writing). Maintaining those packages is |
38 |
a daunting task - and cannot be done only by hand. |
39 |
|
40 |
This distribution is therefore a set of scripts helping maintaining Perl |
41 |
packages within Mageia. They can be somehow coupled or used independently. |
42 |
|
43 |
%prep |
44 |
%setup -q -n %{upstream_name}-%{upstream_version} |
45 |
|
46 |
%build |
47 |
%{__perl} Build.PL installdirs=vendor |
48 |
./Build |
49 |
|
50 |
%check |
51 |
./Build test |
52 |
|
53 |
%install |
54 |
rm -rf %buildroot |
55 |
./Build install destdir=%{buildroot} |
56 |
|
57 |
%clean |
58 |
rm -rf %buildroot |
59 |
|
60 |
%files |
61 |
%defattr(-,root,root) |
62 |
%doc META.json META.yml README Changes LICENSE |
63 |
%{_bindir}/magpie |
64 |
%{_mandir}/man1/* |
65 |
%{_mandir}/man3/* |
66 |
%perl_vendorlib/* |