]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without tests # unit tests | |
4 | # | |
5 | %define pdir Proc | |
6 | %define pnam InvokeEditor | |
7 | Summary: Proc::InvokeEditor - Perl extension for starting a text editor | |
8 | Summary(pl.UTF-8): Proc::InvokeEditor - rozszerzenie Perla do uruchamiania edytora tekstu | |
9 | Name: perl-Proc-InvokeEditor | |
10 | Version: 1.13 | |
11 | Release: 1 | |
12 | # same as perl 5 | |
13 | License: GPL v1+ or Artistic | |
14 | Group: Development/Languages/Perl | |
15 | Source0: http://www.cpan.org/modules/by-module/Proc/%{pdir}-%{pnam}-%{version}.tar.gz | |
16 | # Source0-md5: 26595c1e1c80ed64f0fb97cceea7e167 | |
17 | URL: https://metacpan.org/dist/Proc-InvokeEditor | |
18 | BuildRequires: perl-ExtUtils-MakeMaker | |
19 | BuildRequires: perl-devel >= 1:5.8.0 | |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRequires: rpmbuild(macros) >= 1.745 | |
22 | %if %{with tests} | |
23 | BuildRequires: perl-Carp-Assert >= 0.11 | |
24 | BuildRequires: perl-Test-Simple >= 0.08 | |
25 | %endif | |
26 | BuildArch: noarch | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This module provides the ability to supply some text to an external | |
31 | text editor, have it edited by the user, and retrieve the results. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Ten moduł pozwala na przekazanie tekstu do zewnętrznego edytora w celu | |
35 | edycji przez użytkownika, a następnie odebrania wyniku. | |
36 | ||
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | %{__make} | |
44 | ||
45 | %{?with_tests:%{__make} test} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} pure_install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
54 | cp -a examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc Changes README | |
62 | %{perl_vendorlib}/Proc/InvokeEditor.pm | |
63 | %{_mandir}/man3/Proc::InvokeEditor.3pm* | |
64 | %{_examplesdir}/%{name}-%{version} |