]>
Commit | Line | Data |
---|---|---|
d0d1520b JB |
1 | # |
2 | # Conditional build: | |
c70cb50c | 3 | %bcond_with tests # do not perform "make test" |
4 | # hgw why it doesn't work on builders... temporary disables. | |
d0d1520b | 5 | # |
367f03f5 | 6 | %include /usr/lib/rpm/macros.perl |
49aae85f | 7 | %define pdir BSD |
8 | %define pnam Resource | |
1812cb70 | 9 | Summary: Perl module with BSD process resource limit and priority functions |
00e33737 ER |
10 | Summary(cs.UTF-8): Funkce pro BSD limity zdrojů a priority procesů |
11 | Summary(da.UTF-8): BSD-procesresursegrænse- og -prioritetsfunktioner | |
12 | Summary(de.UTF-8): Funktionen zum Einstellen von Einschränkungen und Prioritäten der Ressourcen des BSD-Prozesses | |
13 | Summary(es.UTF-8): Funciones de prioridad y limite de recusros del proceso BSD | |
14 | Summary(fr.UTF-8): Limite de ressource de processus BSD et fonctions prioritaires | |
15 | Summary(it.UTF-8): Impostazione dei limiti e delle priorità delle risorse del processo BSD | |
16 | Summary(ja.UTF-8): BSDのプロセスリソースの制限と優先度の機能 | |
17 | Summary(ko.UTF-8): BSD 프로세스 자원 한계와 우선 순위 함수 | |
18 | Summary(pl.UTF-8): Moduł Perla z funkcjami BSD obsługującymi limity zasobów dla procesów | |
19 | Summary(pt.UTF-8): Funções de limitação de recursos e prioridades dos processos do BSD | |
20 | Summary(pt_BR.UTF-8): Funções de limitação de recursos e prioridades dos processos do BSD | |
21 | Summary(sv.UTF-8): BSD-processresursgräns- och -prioritetsfunktioner | |
22 | Summary(tr.UTF-8): BSD süreç özkaynak sınırı ve önceliği işlevleri | |
23 | Summary(zh_CN.UTF-8): BSD 进程资源限制和优先级函数 | |
ef2b77e8 | 24 | Name: perl-BSD-Resource |
948634d4 MK |
25 | Version: 1.2911 |
26 | Release: 1 | |
43d52ae8 | 27 | # same as perl |
28 | License: GPL v1+ or Artistic | |
ef2b77e8 | 29 | Group: Development/Languages/Perl |
d0caa9f7 | 30 | Source0: http://www.cpan.org/modules/by-module/BSD/%{pdir}-%{pnam}-%{version}.tar.gz |
948634d4 | 31 | # Source0-md5: 3a67959a30fd6e537b9d8a64d60d8692 |
b80719ff | 32 | URL: http://search.cpan.org/dist/BSD-Resource/ |
56cf3115 | 33 | BuildRequires: perl-devel >= 1:5.8.0 |
20fab71b | 34 | BuildRequires: rpm-perlprov >= 4.1-13 |
40118f57 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ef2b77e8 | 36 | |
37 | %description | |
fa4e3091 | 38 | This Perl extension implements the BSD process resource limit |
39 | functions (getrusage(), getrlimit(), setrlimit()) and the BSD process | |
40 | priority functions. These are available also via core Perl but here we | |
41 | do more tricks so that the PRIO_* are available (getpriority(), | |
048832d6 | 42 | setpriority()). |
ef2b77e8 | 43 | |
81725f4e JR |
44 | %description -l cs.UTF-8 |
45 | Modul poskytující rozhraní pro testování a nastavování limitů zdrojů a | |
1812cb70 | 46 | priorit procesu. |
47 | ||
81725f4e JR |
48 | %description -l da.UTF-8 |
49 | Et modul som leverer en grænseflade til at teste og sætte | |
50 | procesbegrænsninger og prioriteter. | |
1812cb70 | 51 | |
81725f4e JR |
52 | %description -l de.UTF-8 |
53 | Ein Modul mit einem Interface für das Prüfen und Einstellen von | |
54 | Prozesseinschränkgungen und -prioritäten. | |
1812cb70 | 55 | |
81725f4e JR |
56 | %description -l es.UTF-8 |
57 | Módulo que proporciona una interfaz para chequear y configurar los | |
58 | límites del proceso y las prioridades. | |
1812cb70 | 59 | |
81725f4e JR |
60 | %description -l fr.UTF-8 |
61 | Module fournissant une interface pour tester et établir les limites de | |
62 | processus et les priorités. | |
1812cb70 | 63 | |
81725f4e | 64 | %description -l it.UTF-8 |
1812cb70 | 65 | Modulo che offre un'interfaccia per testare e impostare i limiti e le |
81725f4e | 66 | priorità dei processi. |
1812cb70 | 67 | |
81725f4e JR |
68 | %description -l ja.UTF-8 |
69 | プロセスの制限と優先度をテストし設定する為のインターフェイスを提供する | |
70 | モジュールです。 | |
1812cb70 | 71 | |
81725f4e JR |
72 | %description -l ko.UTF-8 |
73 | 프로세스 한계와 우선 순위를 설정하고 시험하는데 사용되는 인터페이스를 | |
74 | 제공하는 모듈. | |
1812cb70 | 75 | |
81725f4e | 76 | %description -l pl.UTF-8 |
bf1026f5 | 77 | To rozszerzenie Perla jest implementacją funkcji BSD dotyczących |
81725f4e JR |
78 | limitów zasobów dla procesów (getrusage(), getrlimit(), setrlimit()) |
79 | oraz funkcji BSD związanych z priorytetami procesów. Są one dostępne | |
80 | także z podstawowego Perla, ale ten moduł pozwala na więcej sztuczek, | |
81 | bo dostępne są PRIO_* (getpriority(), setpriority()). | |
ef2b77e8 | 82 | |
81725f4e JR |
83 | %description -l pt.UTF-8 |
84 | Um módulo que oferece uma interface para testar e definir os limites e | |
1812cb70 | 85 | prioridades dos processos. |
86 | ||
81725f4e JR |
87 | %description -l pt_BR.UTF-8 |
88 | Um módulo que oferece uma interface para testar e definir os limites e | |
1812cb70 | 89 | prioridades dos processos. |
90 | ||
81725f4e JR |
91 | %description -l sv.UTF-8 |
92 | En modul som tillhandahåller ett gränssnitt för att testa och sätta | |
93 | processbegränsningar och prioriteter. | |
1812cb70 | 94 | |
81725f4e JR |
95 | %description -l zh_CN.UTF-8 |
96 | 为测试和设置进程限度和优先级而提供的模块。 | |
1812cb70 | 97 | |
ef2b77e8 | 98 | %prep |
367f03f5 | 99 | %setup -q -n %{pdir}-%{pnam}-%{version} |
ef2b77e8 | 100 | |
101 | %build | |
20fab71b | 102 | %{__perl} Makefile.PL \ |
57dde42e | 103 | INSTALLDIRS=vendor |
d0d1520b | 104 | %{__make} \ |
e3549952 | 105 | CC="%{__cc}" \ |
d0d1520b JB |
106 | OPTIMIZE="%{rpmcflags}" |
107 | ||
108 | %{?with_tests:%{__make} test} | |
ef2b77e8 | 109 | |
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
ef2b77e8 | 112 | |
d0d1520b JB |
113 | %{__make} install \ |
114 | DESTDIR=$RPM_BUILD_ROOT | |
ef2b77e8 | 115 | |
ef2b77e8 | 116 | %clean |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %files | |
120 | %defattr(644,root,root,755) | |
40549b37 | 121 | %doc ChangeLog README |
20fab71b | 122 | %{perl_vendorarch}/BSD/Resource.pm |
123 | %dir %{perl_vendorarch}/auto/BSD/Resource | |
124 | %{perl_vendorarch}/auto/BSD/Resource/*.al | |
125 | %{perl_vendorarch}/auto/BSD/Resource/autosplit.ix | |
20fab71b | 126 | %attr(755,root,root) %{perl_vendorarch}/auto/BSD/Resource/Resource.so |
bf1026f5 | 127 | %{_mandir}/man3/BSD::Resource.3pm* |