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