1 |
%define upstream_name Dist-Zilla-Plugin-CopyReadmeFromBuild |
2 |
%define upstream_version 0.0019 |
3 |
|
4 |
Name: perl-%{upstream_name} |
5 |
Version: %perl_convert_version %{upstream_version} |
6 |
Release: %mkrel 3 |
7 |
|
8 |
Summary: Copy README after building (for SCM inclusion, etc.) |
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/Dist/%{upstream_name}-%{upstream_version}.tar.gz |
13 |
|
14 |
BuildRequires: perl(Dist::Zilla) |
15 |
BuildRequires: perl(Test::Most) |
16 |
BuildArch: noarch |
17 |
|
18 |
%description |
19 |
CopyReadmeFromBuild will automatically copy the README from the build |
20 |
directory into the distribution directory. This is so you can commit the |
21 |
README to version control. GitHub, for example, likes to see a README |
22 |
|
23 |
Dist::Zilla::Plugin::Readme will not like it if you already have a README, |
24 |
so you'll have to disable that plugin, an example of which is: |
25 |
|
26 |
[@Filter] |
27 |
bundle = @Basic |
28 |
remove = Readme |
29 |
|
30 |
%prep |
31 |
%setup -q -n %{upstream_name}-%{upstream_version} |
32 |
|
33 |
%build |
34 |
%{__perl} Makefile.PL INSTALLDIRS=vendor |
35 |
|
36 |
%make |
37 |
|
38 |
%check |
39 |
%make test |
40 |
|
41 |
%install |
42 |
rm -rf %buildroot |
43 |
%makeinstall_std |
44 |
|
45 |
%files |
46 |
%doc README META.yml |
47 |
%{_mandir}/man3/* |
48 |
%perl_vendorlib/* |
49 |
|
50 |
|