]> git.pld-linux.org Git - packages/perl-HTML-Calendar-Simple.git/blob - perl-HTML-Calendar-Simple.spec
a76194c91ba6e8af1aae4eb48084c0f12bf368cf
[packages/perl-HTML-Calendar-Simple.git] / perl-HTML-Calendar-Simple.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define         pdir    HTML
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
11 Version:        0.04
12 Release:        2
13 # same as perl
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
18 %if %{with tests}
19 BuildRequires:  perl-CGI >= 2.752
20 BuildRequires:  perl-Date-Simple >= 1.03
21 BuildRequires:  perl-Test-Simple >= 0.40
22 %endif
23 BuildRequires:  perl-devel >= 1:5.8.0
24 BuildRequires:  rpm-perlprov >= 4.1-13
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
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.
32
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
36 done.
37
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
41 rodzaj informacji.
42
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.
46
47 %prep
48 %setup -q -n %{pdir}-%{pnam}-%{version}
49
50 %build
51 %{__perl} Makefile.PL \
52         INSTALLDIRS=vendor
53
54 %{__make}
55
56 %{?with_tests:%{__make} test}
57
58 %install
59 rm -rf $RPM_BUILD_ROOT
60
61 %{__make} install \
62         DESTDIR=$RPM_BUILD_ROOT
63
64 %clean
65 rm -rf $RPM_BUILD_ROOT
66
67 %files
68 %defattr(644,root,root,755)
69 %doc Changes README
70 %dir %{perl_vendorlib}/HTML/Calendar
71 %{perl_vendorlib}/HTML/Calendar/Simple.pm
72 %{_mandir}/man3/*
This page took 0.08909 seconds and 2 git commands to generate.