]>
Commit | Line | Data |
---|---|---|
9b82a0b9 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | %define pdir Module | |
7 | %define pnam Install | |
8 | Summary: Module::Install - Standalone, extensible Perl module installer | |
6a4e84c6 | 9 | Summary(pl.UTF-8): Module::Install - samodzielny, rozszerzalny instalator modułów Perla |
9b82a0b9 | 10 | Name: perl-Module-Install |
11 | Version: 0.63 | |
12 | Release: 0.1 | |
13 | # same as perl | |
14 | License: GPL v1+ or Artistic | |
15 | Group: Development/Languages/Perl | |
8876c945 | 16 | Source0: http://www.cpan.org/modules/by-authors/id/A/AD/ADAMK/%{pdir}-%{pnam}-%{version}.tar.gz |
9b82a0b9 | 17 | # Source0-md5: d2404a019eaf149eaa34db65ab8fb72d |
8876c945 | 18 | URL: http://search.cpan.org/dist/Module-Install/ |
9b82a0b9 | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | %if %{with tests} | |
22 | BuildRequires: perl-YAML >= 0.35 | |
23 | %endif | |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
9b82a0b9 | 27 | %description |
28 | Module::Install is a package for writing installers for CPAN (or | |
29 | CPAN-like) distributions that are clean, simple, minimalist, act in a | |
30 | strictly correct manner with both the ExtUtils::MakeMaker and | |
31 | Module::Build build systems, and will run on any Perl installation | |
32 | version 5.004 or newer. | |
33 | ||
34 | The intent is to make it as easy as possible for CPAN authors (and | |
35 | especially for first-time CPAN authors) to have installers that follow | |
36 | all the best practices for distribution installation, but involve as | |
37 | much DWIM (Do What I Mean) as possible when writing them. | |
38 | ||
7f3505fe | 39 | %description -l pl.UTF-8 |
8876c945 | 40 | Module::Install to pakiet do pisania dla dystrybucji CPAN (lub |
7f3505fe JR |
41 | podobnych) instalatorów, które będą przejrzyste, minimalistyczne i |
42 | działały całkowicie poprawnie z systemami budowania | |
43 | ExtUtils::MakeMaker i Module::Build, a także będą działać na każdej | |
8876c945 JB |
44 | instalacji Perla od wersji 5.004. |
45 | ||
7f3505fe JR |
46 | Celem jest jak największe ułatwienie autorom CPAN (a szczególnie |
47 | początkującym autorom CPAN) posiadania instalatorów zachowujących się | |
8876c945 | 48 | jak najlepiej. |
9b82a0b9 | 49 | |
50 | %prep | |
51 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
52 | ||
53 | %build | |
54 | %{__perl} Makefile.PL \ | |
55 | --skipdeps \ | |
56 | INSTALLDIRS=vendor | |
57 | %{__make} | |
58 | ||
59 | %{?with_tests:%{__make} test} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc Changes README | |
73 | %{perl_vendorlib}/Module/*.pm | |
74 | %{perl_vendorlib}/Module/Install | |
75 | %{perl_vendorlib}/inc | |
76 | %{_mandir}/man3/* |