]>
Commit | Line | Data |
---|---|---|
40ef1614 | 1 | # |
2 | # TODO: Tests should be enabled. | |
58bf9b18 | 3 | # FIXME: Removing of Carp::Clan shoud happen in %%prep. |
40ef1614 | 4 | # But tests will fail then. |
5 | # TODO: Inform author about the namespace conflict with perl-Bit-Vector. | |
6 | # | |
a0a99c37 | 7 | # Conditional build: |
8 | %bcond_without tests # do not perform "make test" | |
9 | # | |
9df4e182 | 10 | %include /usr/lib/rpm/macros.perl |
6c31dccf | 11 | %define pdir Date |
12 | %define pnam Calc | |
1be890b3 | 13 | Summary: Date::Calc - Gregorian calendar date calculations |
c06e1442 ER |
14 | Summary(cs.UTF-8): Date::Calc - modul pro rozšířené a efektivní počítání s datem v Perlu |
15 | Summary(da.UTF-8): Date::Calc - et modul for udvidet og effektiv datoberegning i Perl | |
16 | Summary(de.UTF-8): Date::Calc - ein Modul für erweiterte und leistungsstarke Datenberechnungen in Perl | |
17 | Summary(es.UTF-8): Date::Calc - módulo para los cálculos de datos extendidos y eficientes en Perl | |
18 | Summary(fr.UTF-8): Date::Calc - module de calcul de date étendu et efficace dans Perl | |
19 | Summary(it.UTF-8): Date::Calc - modulo per gestire in modo completo ed efficiente i calcoli delle date in Perl | |
20 | Summary(ja.UTF-8): Date::Calc - Perl内の拡張型で効率的な日付算出の為のモジュール。 | |
21 | Summary(ko.UTF-8): Date::Calc - Perl을 사용하여 확장되고 효율적으로 날짜를 계산하는데 사용되는 모듈 | |
22 | Summary(pl.UTF-8): Date::Calc - obliczanie daty na podstawie kalendarza gregoriańskiego | |
23 | Summary(pt.UTF-8): Date::Calc - um módulo para o cálculo eficiente e extendido de datas em Perl | |
24 | Summary(pt_BR.UTF-8): Date::Calc - um módulo para o cálculo eficiente e extendido de datas em Perl | |
25 | Summary(sv.UTF-8): Date::Calc - en modul för utökade och effektiva datumberäkningar i Perl | |
26 | Summary(tr.UTF-8): Date::Calc - Perl'de genişletilmiş ve etkili tarih hesaplamaları için bir modül | |
27 | Summary(zh_CN.UTF-8): Date::Calc - 用于 Perl 中扩展的和有效的日期计算的模块。 | |
28 | Summary(zh_TW.UTF-8): Date::Calc - 用於 Perl 中延伸與有效率之資料計算的一個模組。 | |
d43175bf | 29 | Name: perl-Date-Calc |
3fe81d03 AM |
30 | Version: 6.4 |
31 | Release: 1 | |
76625fc8 | 32 | # same as perl (C library also LGPL) |
33 | License: GPL v1+ or Artistic (C library also LGPL) | |
d43175bf | 34 | Group: Development/Languages/Perl |
0d9167b7 | 35 | Source0: http://www.cpan.org/modules/by-module/Date/%{pdir}-%{pnam}-%{version}.tar.gz |
3fe81d03 | 36 | # Source0-md5: 69c635070d38c884682bfd4657031a8d |
0d9167b7 | 37 | URL: http://search.cpan.org/dist/Date-Calc/ |
56d456d4 | 38 | BuildRequires: perl-devel >= 1:5.8.0 |
7f52048a | 39 | BuildRequires: rpm-perlprov >= 4.1-13 |
af11de45 | 40 | %if %{with tests} |
41 | BuildRequires: perl-Bit-Vector >= 7.1 | |
42 | BuildRequires: perl-Carp-Clan >= 5.3 | |
43 | %endif | |
44 | BuildArch: noarch | |
5f6f600f | 45 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
d43175bf | 46 | |
47 | %description | |
40ef1614 | 48 | This package consists of a C library and a Perl module (which uses the |
49 | C library, internally) for all kinds of date calculations based on the | |
1be890b3 | 50 | Gregorian calendar (the one used in all western countries today), |
d4d34bf8 | 51 | thereby complying with all relevant norms and standards: ISO/R |
52 | 2015-1971, DIN 1355 and, to some extent, ISO 8601 (where applicable). | |
53 | ||
37f2f492 JR |
54 | %description -l cs.UTF-8 |
55 | Tato knihovna poskytuje různé typy počítání s datem založené na | |
56 | gregoriánském kalendáři (používaném nyní ve všech západních zemích), | |
57 | čímž vyhovuje všem relevantním normám a standardům: ISO/R 2015-1971, | |
58 | DIN 1355 a do určité míry ISO 8601 (kde to dává smysl). | |
d4d34bf8 | 59 | |
37f2f492 JR |
60 | %description -l da.UTF-8 |
61 | Biblioteket laver alle slags datoberegninger baseret på den | |
d4d34bf8 | 62 | gregorianske kalender (den som bruges i alle vestlige lande i dag), og |
37f2f492 JR |
63 | følger derved alle relevante normer og standarder: ISO/R 2015-1971, |
64 | DIN 1355 og, i nogen udstrækning, ISO 8601 (hvis relevant). | |
d4d34bf8 | 65 | |
37f2f492 | 66 | %description -l de.UTF-8 |
d4d34bf8 | 67 | Die Bibliothek liefert jede Art der Datenberechnung auf der Grundlage |
37f2f492 | 68 | des gregorianischen Kalenders (der heute in allen westlichen Ländern |
d4d34bf8 | 69 | verwendet wird) und entspricht damit allen relevanten Richtlinien und |
37f2f492 JR |
70 | Standards: ISO/R 2015-1971, DIN 1355 und, in gewissem Maße, ISO 8601 |
71 | (wo gültig). | |
d4d34bf8 | 72 | |
37f2f492 JR |
73 | %description -l es.UTF-8 |
74 | La librería proporciona todos los tipos de cálculos de datos basados | |
75 | en el calendario gregoriano (usado en todos los países del oeste hoy | |
76 | en día), que cumple todas las normas y estándare relevantes: ISO/R | |
d4d34bf8 | 77 | 2015-1971, DIN 1355 and, to some extent, ISO 8601 (en los casos en los |
78 | que se pueda aplicar). | |
79 | ||
37f2f492 JR |
80 | %description -l fr.UTF-8 |
81 | La bibliothèque fournit toutes sortes de calculs de dates basés sur le | |
82 | calendrier grégorien (celui qu'utilisent aujourd'hui tous les pays | |
83 | européens). Il est donc adapté à toutes les normes et tous les | |
d4d34bf8 | 84 | standards: ISO/R 2015-1971, DIN 1355 et dans une certaine mesure ISO |
85 | 8601 (lorsqu'elle est applicable). | |
86 | ||
37f2f492 | 87 | %description -l it.UTF-8 |
d4d34bf8 | 88 | La libreria fornisce ogni sorta di calcolo delle date basandosi sul |
89 | calendario Gregoriano (utilizzato in tutti i paesi occidentali), in | |
37f2f492 | 90 | conformità con le norme e gli standard più appropriati: ISO/R |
d4d34bf8 | 91 | 2015-1971, DIN 1355 e, anche ISO 8601 (se applicabile). |
92 | ||
37f2f492 JR |
93 | %description -l ko.UTF-8 |
94 | 이 라이브러리는 (현재 서양에서 사용되는) 그레고리오력에 기반한 모든 | |
95 | 종류의 날짜 계산법을 제공합니다. 따라서 다음과 같은 모든 형식과 표준을 | |
96 | 준수합니다: ISO/R, 2015-1971, DIN 1355, 그리고 ISO 8601 (적용 가능한 | |
97 | 경우). | |
98 | ||
99 | %description -l pl.UTF-8 | |
100 | Ten pakiet zawiera bibliotekę C i moduł Perla (używający wewnętrznie | |
101 | tej biblioteki) do wszystkich rodzajów obliczeń na datach bazujących | |
102 | na kalendarzu gregoriańskim (używanym we wszystkich zachodnich | |
103 | państwach), zgodnie z normami i standardami: ISO/R 2015-1971, DIN 1355 | |
1be890b3 | 104 | i, do pewnego stopnia, ISO 8601. |
d43175bf | 105 | |
37f2f492 JR |
106 | %description -l pt.UTF-8 |
107 | A biblioteca oferece todo o tipo de cálculos de data com base no | |
108 | calendário Gregoriano (o que é usado em todos os países ocidentais nos | |
d4d34bf8 | 109 | dias de hoje), estando desta forma em conformidade com todas as |
37f2f492 JR |
110 | normas: a ISO/R 2015-1971, a DIN 1355 e, a certo nível, a ISO 8601 |
111 | (onde for aplicável). | |
d4d34bf8 | 112 | |
37f2f492 JR |
113 | %description -l pt_BR.UTF-8 |
114 | A biblioteca oferece todo o tipo de cálculos de data com base no | |
115 | calendário Gregoriano (o que é usado em todos os países ocidentais nos | |
d4d34bf8 | 116 | dias de hoje), estando desta forma em conformidade com todas as |
37f2f492 JR |
117 | normas: a ISO/R 2015-1971, a DIN 1355 e, a certo nível, a ISO 8601 |
118 | (onde for aplicável). | |
119 | ||
120 | %description -l sv.UTF-8 | |
121 | Biblioteket klarar alla sorters datumberäkningar baserade på den | |
122 | gregorianska kalendern (den som används i alla västländer idag), och | |
123 | följer därvid alla relavanta normer och standarder: ISO/R 2015-1971, | |
124 | DIN 1355 och, i viss mån, ISO 8601 (där den är tillämplig). | |
125 | ||
126 | %description -l zh_CN.UTF-8 | |
127 | 该库提供了各类建立在格列高里日历(公历)上的 | |
128 | 日期计算。它符合所有相关的标准:ISO/R | |
129 | 2015-1971、DIN 1355 和某种程度上的 ISO 8601 | |
130 | (若适用)。 | |
d4d34bf8 | 131 | |
d43175bf | 132 | %prep |
9df4e182 | 133 | %setup -q -n %{pdir}-%{pnam}-%{version} |
d43175bf | 134 | |
135 | %build | |
7f52048a | 136 | %{__perl} Makefile.PL \ |
8483ed60 | 137 | INSTALLDIRS=vendor |
af11de45 | 138 | %{__make} |
d43175bf | 139 | |
a0a99c37 | 140 | %{?with_tests:%{__make} test} |
a3275736 | 141 | |
d43175bf | 142 | %install |
143 | rm -rf $RPM_BUILD_ROOT | |
d43175bf | 144 | |
142f3128 | 145 | %{__make} install \ |
146 | DESTDIR=$RPM_BUILD_ROOT | |
d43175bf | 147 | |
d43175bf | 148 | %clean |
149 | rm -rf $RPM_BUILD_ROOT | |
150 | ||
151 | %files | |
152 | %defattr(644,root,root,755) | |
45d95e40 | 153 | %doc *.txt |
af11de45 | 154 | %dir %{perl_vendorlib}/Date |
155 | %{perl_vendorlib}/Date/*.pm | |
156 | %dir %{perl_vendorlib}/Date/Calc | |
157 | %{perl_vendorlib}/Date/Calc/*.pm | |
158 | %dir %{perl_vendorlib}/Date/Calendar | |
159 | %{perl_vendorlib}/Date/Calendar/*.pm | |
160 | %{_mandir}/man3/* |