2 # - prepare subpackage with virtual
3 # - configuration for apache
5 %include /usr/lib/rpm/macros.perl
6 %define apxs /usr/sbin/apxs
7 Summary: An Apache module for creating an online gallery
12 Group: Applications/Graphics
13 Source0: http://apachegallery.dk/download/%{name}-%{version}.tar.gz
14 # Source0-md5: 21ec1b8b11240dc6e3dbba19c6330120
15 #Source1: %{name}.conf
16 URL: http://apachegallery.dk/
17 BuildRequires: perl-Image-Imlib2 >= 1.00
18 BuildRequires: perl-Image-Info
19 BuildRequires: perl-Image-Size
20 BuildRequires: perl-Text-Template
21 BuildRequires: perl-devel
22 BuildRequires: rpm-perlprov >= 3.0.3-16
23 Requires: apache-mod_perl
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Apache::Gallery is a mod_perl handler that sits on top of your
28 DocumentRoot and creates an image gallery of the files and directories
29 there. It creates an thumbnail index of each directory and allows
30 viewing of pictures in different resolutions. Pictures are resized on
42 rm -rf $RPM_BUILD_ROOT
45 DESTDIR=$RPM_BUILD_ROOT
48 rm -rf $RPM_BUILD_ROOT
51 #if [ -f /var/lock/subsys/httpd ]; then
52 # /etc/rc.d/init.d/httpd restart 1>&2
54 # echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
58 #if [ "$1" = "0" ]; then
59 # if [ -f /var/lock/subsys/httpd ]; then
60 # /etc/rc.d/init.d/httpd restart 1>&2
65 %defattr(644,root,root,755)
66 %doc Changes INSTALL README TODO UPGRADE
67 %{perl_sitelib}/Apache/Gallery.pm