]> git.pld-linux.org Git - SPECS.git/blob - perl-CGI-Application-PhotoGallery.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / perl-CGI-Application-PhotoGallery.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do perform "make test"
4 #
5 %define         pdir    CGI
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
10 Version:        0.05
11 Release:        2
12 # same as perl
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
22 %if %{with tests}
23 BuildRequires:  perl-Cache-Cache
24 BuildRequires:  perl-File-Find-Rule
25 BuildRequires:  perl-MIME-Types
26 %endif
27 BuildArch:      noarch
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
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).
35
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
40 lub Image::Magick).
41
42 %prep
43 %setup -q -n %{pdir}-%{pnam}-%{version}
44
45 %build
46 %{__perl} Makefile.PL \
47         INSTALLDIRS=vendor
48
49 %{__make}
50
51 %{?with_tests:%{__make} test}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc Changes README
65 %{perl_vendorlib}/CGI/Application/PhotoGallery.pm
66 %dir %{perl_vendorlib}/CGI/Application/PhotoGallery
67 %{perl_vendorlib}/CGI/Application/PhotoGallery/*.pm
68 %{_mandir}/man3/*
This page took 0.216032 seconds and 3 git commands to generate.