]>
Commit | Line | Data |
---|---|---|
180aca64 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
a7328a61 | 4 | |
9cbb9acf | 5 | %define pdir Proc |
6 | %define pnam Forkfunc | |
a7328a61 | 7 | %include /usr/lib/rpm/macros.perl |
67f40b7a | 8 | Summary: Proc::Forkfunk Perl module - fork off a function |
a1c79f47 | 9 | Summary(pl.UTF-8): Moduł Perla Proc::Forkfunk - uruchamianie funkcji w procesie potomnym |
812031b0 | 10 | Name: perl-Proc-Forkfunc |
11 | Version: 96.042201 | |
6e061d64 | 12 | Release: 13 |
180aca64 | 13 | License: unknown |
812031b0 | 14 | Group: Development/Languages/Perl |
11decfbf | 15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz |
625213e2 | 16 | # Source0-md5: 0b34666fa7fd32602f75d22a4da9adf6 |
a7328a61 | 17 | URL: http://search.cpan.org/dist/Proc-Forkfunc/ |
07287287 | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
94f83833 | 19 | BuildRequires: rpm-perlprov >= 4.1-13 |
764eeecb | 20 | BuildArch: noarch |
a3e3ea73 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
812031b0 | 22 | |
23 | %description | |
a7328a61 ER |
24 | Fork off a process. Call a function on the child process the function |
25 | should be passed in as a reference. The child function should not | |
358d11ba JB |
26 | return. |
27 | ||
9bc6e2d0 JR |
28 | %description -l pl.UTF-8 |
29 | Ten moduł tworzy proces potomny i wywołuje w tym procesie funkcję | |
30 | przekazaną przez referencję. Funkcja potomna nie powinna wracać. | |
812031b0 | 31 | |
32 | %prep | |
a75fb3b9 | 33 | %setup -q -n %{pdir}-%{pnam}-%{version} |
812031b0 | 34 | |
35 | %build | |
94f83833 | 36 | %{__perl} Makefile.PL \ |
cfc74410 | 37 | INSTALLDIRS=vendor |
40c4653e | 38 | %{__make} |
812031b0 | 39 | |
180aca64 | 40 | %{?with_tests:%{__make} test} |
41 | ||
812031b0 | 42 | %install |
43 | rm -rf $RPM_BUILD_ROOT | |
812031b0 | 44 | |
180aca64 | 45 | %{__make} install \ |
46 | DESTDIR=$RPM_BUILD_ROOT | |
812031b0 | 47 | |
812031b0 | 48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
358d11ba | 53 | %doc README |
94f83833 | 54 | %{perl_vendorlib}/Proc/Forkfunc.pm |
812031b0 | 55 | %{_mandir}/man3/* |