2 # - prepare subpackage with virtual
3 # - configuration for apache
4 # - switch to vendordirs and apache 2.x or apache1 (depending on which mod_perl is supported)
6 %include /usr/lib/rpm/macros.perl
7 %define apxs /usr/sbin/apxs
8 Summary: An Apache module for creating an online gallery
9 Summary(pl): Modu³ Apache'a do tworzenia galerii online
14 Group: Applications/Graphics
15 Source0: http://apachegallery.dk/download/%{name}-%{version}.tar.gz
16 # Source0-md5: 882e650e6fc3f059e84eca1564b5f32f
17 #Source1: %{name}.conf
18 URL: http://apachegallery.dk/
19 BuildRequires: apache-mod_perl
20 BuildRequires: perl-Image-Imlib2 >= 1.00
21 BuildRequires: perl-Image-Info
22 BuildRequires: perl-Image-Size
23 BuildRequires: perl-Text-Template
24 BuildRequires: perl-devel
25 BuildRequires: perl-libapreq
26 BuildRequires: rpm-perlprov >= 3.0.3-16
27 Requires: apache-mod_perl
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define _noautoreq 'perl(APR::Table)' 'perl(Apache2)' 'perl(Apache::Const)' 'perl(Apache::RequestIO)' 'perl(Apache::RequestRec)' 'perl(Apache::SubRequest)'
31 %define _apacheicons /home/httpd/icons/gallery
34 Apache::Gallery is a mod_perl handler that sits on top of your
35 DocumentRoot and creates an image gallery of the files and directories
36 there. It creates an thumbnail index of each directory and allows
37 viewing of pictures in different resolutions. Pictures are resized on
41 Apache::Gallery to procedura obs³ugi dla modu³u mod_perl po³o¿ona w
42 DocumentRoot, tworz±ca galeriê obrazów z umieszczonych tam plików i
43 katalogów. Tworzy indeks z miniaturkami z ka¿dego katalogu i pozwala
44 na ogl±danie obrazków w ró¿nych rozdzielczo¶ciach. Obrazki s±
45 przeskalowywane w locie i buforowane.
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_datadir}/%{name}/templates/{new,default},%{_apacheicons}}
60 DESTDIR=$RPM_BUILD_ROOT
62 install templates/new/*.{css,tpl} $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/new/
63 install templates/default/*.{css,tpl} $RPM_BUILD_ROOT%{_datadir}/%{name}/templates/default/
64 install htdocs/*.png $RPM_BUILD_ROOT%{_apacheicons}
67 rm -rf $RPM_BUILD_ROOT
70 #if [ -f /var/lock/subsys/httpd ]; then
71 # /etc/rc.d/init.d/httpd restart 1>&2
73 # echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
77 #if [ "$1" = "0" ]; then
78 # if [ -f /var/lock/subsys/httpd ]; then
79 # /etc/rc.d/init.d/httpd restart 1>&2
84 %defattr(644,root,root,755)
85 %doc Changes INSTALL README TODO UPGRADE
86 %{perl_sitelib}/Apache/Gallery.pm
87 %dir %{_datadir}/%{name}
88 %dir %{_datadir}/%{name}/templates
89 %dir %{_datadir}/%{name}/templates/new
90 %{_datadir}/%{name}/templates/new/*.tpl
91 %{_datadir}/%{name}/templates/new/*.css
92 %dir %{_datadir}/%{name}/templates/default
93 %{_datadir}/%{name}/templates/default/*.tpl
94 %{_datadir}/%{name}/templates/default/*.css