3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 %define pnam Calendar-Simple
8 Summary: HTML::Calendar::Simple - a simple HTML calendar
9 Summary(pl.UTF-8): HTML::Calendar::Simple - prosty kalendarz w HTML
10 Name: perl-HTML-Calendar-Simple
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: 4524a1c386f63e7fe6e9815ef37a13c5
19 BuildRequires: perl-CGI >= 2.752
20 BuildRequires: perl-Date-Simple >= 1.03
21 BuildRequires: perl-Test-Simple >= 0.40
23 BuildRequires: perl-devel >= 1:5.8.0
24 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This is a simple module which will make an HTML representation of a
30 given month. You can add links to individual days, or in fact, any
31 sort of information you want.
33 Yes, the inspiration for this came out of me looking at
34 HTML::CalendarMonthSimple, and thinking 'Hmmm. A bit too complicated
35 for what I want. I know, I will write a simplified version.' So it was
38 %description -l pl.UTF-8
39 Ten prosty moduł tworzy reprezentację podanego miesiąca w HTML. Można
40 dodawać odnośniki do poszczególnych dni, lub, w praktyce, dowolny
43 Inspiracja wzięła się z patrzenia na HTML::CalendarMonthSimple i
44 myślenia "Hmmm. Trochę zbyt skomplikowane do tego, co chcę. Wiem,
45 napiszę uproszczoną wersję.". No i została napisana.
48 %setup -q -n %{pdir}-%{pnam}-%{version}
51 %{__perl} Makefile.PL \
56 %{?with_tests:%{__make} test}
59 rm -rf $RPM_BUILD_ROOT
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
70 %dir %{perl_vendorlib}/HTML/Calendar
71 %{perl_vendorlib}/HTML/Calendar/Simple.pm