]> git.pld-linux.org Git - packages/perl-Date-Calc.git/blob - perl-Date-Calc.spec
c76983a9d9dd524d52e5e197cf1373956522acca
[packages/perl-Date-Calc.git] / perl-Date-Calc.spec
1 #
2 # TODO:  Tests should be enabled.
3 # FIXME: Removing of Carp::Clan shoud happen in %%prep.
4 #        But tests will fail then.
5 # TODO:  Inform author about the namespace conflict with perl-Bit-Vector.
6 #
7 # Conditional build:
8 %bcond_without  tests   # do not perform "make test"
9 #
10 %include        /usr/lib/rpm/macros.perl
11 %define         pdir    Date
12 %define         pnam    Calc
13 Summary:        Date::Calc - Gregorian calendar date calculations
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 中延伸與有效率之資料計算的一個模組。
29 Name:           perl-Date-Calc
30 Version:        6.3
31 Release:        2
32 # same as perl (C library also LGPL)
33 License:        GPL v1+ or Artistic (C library also LGPL)
34 Group:          Development/Languages/Perl
35 Source0:        http://www.cpan.org/modules/by-module/Date/%{pdir}-%{pnam}-%{version}.tar.gz
36 # Source0-md5:  9b64555b7051c1beb6b61daead2d01b3
37 URL:            http://search.cpan.org/dist/Date-Calc/
38 BuildRequires:  perl-devel >= 1:5.8.0
39 BuildRequires:  rpm-perlprov >= 4.1-13
40 %if %{with tests}
41 BuildRequires:  perl-Bit-Vector >= 7.1
42 BuildRequires:  perl-Carp-Clan >= 5.3
43 %endif
44 BuildArch:      noarch
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
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
50 Gregorian calendar (the one used in all western countries today),
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
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).
59
60 %description -l da.UTF-8
61 Biblioteket laver alle slags datoberegninger baseret på den
62 gregorianske kalender (den som bruges i alle vestlige lande i dag), og
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).
65
66 %description -l de.UTF-8
67 Die Bibliothek liefert jede Art der Datenberechnung auf der Grundlage
68 des gregorianischen Kalenders (der heute in allen westlichen Ländern
69 verwendet wird) und entspricht damit allen relevanten Richtlinien und
70 Standards: ISO/R 2015-1971, DIN 1355 und, in gewissem Maße, ISO 8601
71 (wo gültig).
72
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
77 2015-1971, DIN 1355 and, to some extent, ISO 8601 (en los casos en los
78 que se pueda aplicar).
79
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
84 standards: ISO/R 2015-1971, DIN 1355 et dans une certaine mesure ISO
85 8601 (lorsqu'elle est applicable).
86
87 %description -l it.UTF-8
88 La libreria fornisce ogni sorta di calcolo delle date basandosi sul
89 calendario Gregoriano (utilizzato in tutti i paesi occidentali), in
90 conformità con le norme e gli standard più appropriati: ISO/R
91 2015-1971, DIN 1355 e, anche ISO 8601 (se applicabile).
92
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
104 i, do pewnego stopnia, ISO 8601.
105
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
109 dias de hoje), estando desta forma em conformidade com todas as
110 normas: a ISO/R 2015-1971, a DIN 1355 e, a certo nível, a ISO 8601
111 (onde for aplicável).
112
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
116 dias de hoje), estando desta forma em conformidade com todas as
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 (若适用)。
131
132 %prep
133 %setup -q -n %{pdir}-%{pnam}-%{version}
134
135 %build
136 %{__perl} Makefile.PL \
137         INSTALLDIRS=vendor
138 %{__make}
139
140 %{?with_tests:%{__make} test}
141
142 %install
143 rm -rf $RPM_BUILD_ROOT
144
145 %{__make} install \
146         DESTDIR=$RPM_BUILD_ROOT
147
148 %clean
149 rm -rf $RPM_BUILD_ROOT
150
151 %files
152 %defattr(644,root,root,755)
153 %doc *.txt
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/*
This page took 0.35854 seconds and 2 git commands to generate.