3 %bcond_without tests # do not perform "make test"
6 %define pnam Tolkien-Shire
7 Summary: Date::Tolkien::Shire - convert dates into the Shire Calendar
8 Summary(pl.UTF-8): Date::Tolkien::Shire - konwersja dat do kalendarza Śródziemia
9 Name: perl-Date-Tolkien-Shire
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: ad5744d66f118305a0a09b52f3e24b27
16 URL: http://search.cpan.org/dist/Date-Tolkien-Shire/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This is an object-oriented module to convert dates into the Shire
24 Calender as presented in the Lord of the Rings by J. R. R. Tolkien. It
25 includes converting epoch time to the Shire Calendar (you can also get
26 epoch time back), comparison operators, and a method to print a
27 formatted string containing that does something to the effect of on
28 this date in history -- pulling events from the Lord of the Rings.
30 %description -l pl.UTF-8
31 To jest obiektowo zorientowany moduł do konwertowania dat na kalendarz
32 Śródziemia, jaki został przedstawiony we "Władcy pierścieni" J. R. R.
33 Tolkiena. Zawiera konwersję czasu w formacie epoch na kalendarz
34 Śródziemia (i z powrotem), operatory porównań oraz metodę do
35 wypisywania sformatowanego ciągu zawierającego to, co zdarzyło się w
36 tym czasie - zdarzenia z "Władcy pierścieni".
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %dir %{perl_vendorlib}/Date/Tolkien
61 %{perl_vendorlib}/Date/Tolkien/Shire.pm