3 %bcond_without tests # do perform "make test"
6 %define pnam Application-PhotoGallery
7 Summary: CGI::Application::PhotoGallery - module to provide a simple photo gallery
8 Summary(pl.UTF-8): CGI::Application::PhotoGallery - moduł do tworzenia prostych galerii zdjęć
9 Name: perl-CGI-Application-PhotoGallery
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 034a51a2ad0f6dc5177376151841e8ad
17 URL: http://search.cpan.org/dist/CGI-Application-PhotoGallery/
18 BuildRequires: perl-CGI-Application
19 BuildRequires: perl-HTML-Template
20 BuildRequires: perl-devel >= 1:5.8.0
21 BuildRequires: rpm-perlprov >= 4.1-13
23 BuildRequires: perl-Cache-Cache
24 BuildRequires: perl-File-Find-Rule
25 BuildRequires: perl-MIME-Types
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 CGI::Application::PhotoGallery is a CGI::Application module allowing
32 people to create their own simple photo gallery. There is no need to
33 generate your own thumbnails since they are created on the fly (using
34 either the GD or Image::Magick modules).
36 %description -l pl.UTF-8
37 CGI::Application::PhotoGallery to moduł CGI::Application umożliwiający
38 tworzenie własnej prostej galerii zdjęć. Nie ma potrzeby generowania
39 miniaturek, ponieważ są one tworzone w locie (przy użyciu modułów GD
43 %setup -q -n %{pdir}-%{pnam}-%{version}
46 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorlib}/CGI/Application/PhotoGallery.pm
66 %dir %{perl_vendorlib}/CGI/Application/PhotoGallery
67 %{perl_vendorlib}/CGI/Application/PhotoGallery/*.pm