]> git.pld-linux.org Git - packages/Apache-Gallery.git/blame - Apache-Gallery.spec
- very initial...
[packages/Apache-Gallery.git] / Apache-Gallery.spec
CommitLineData
18d57ae0
PG
1# TODO:
2# - prepare subpackage with virtual
3# - configuration for apache
4#
5%include /usr/lib/rpm/macros.perl
6%define apxs /usr/sbin/apxs
7Summary: An Apache module for creating an online gallery
8Name: Apache-Gallery
9Version: 0.8
10Release: 0.1
11License: Artistic
12Group: Applications/Graphics
13Source0: http://apachegallery.dk/download/%{name}-%{version}.tar.gz
14# Source0-md5: 21ec1b8b11240dc6e3dbba19c6330120
15#Source1: %{name}.conf
16URL: http://apachegallery.dk/
17BuildRequires: perl-Image-Imlib2 >= 1.00
18BuildRequires: perl-Image-Info
19BuildRequires: perl-Image-Size
20BuildRequires: perl-Text-Template
21BuildRequires: perl-devel
22BuildRequires: rpm-perlprov >= 3.0.3-16
23Requires: apache-mod_perl
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%description
27Apache::Gallery is a mod_perl handler that sits on top of your
28DocumentRoot and creates an image gallery of the files and directories
29there. It creates an thumbnail index of each directory and allows
30viewing of pictures in different resolutions. Pictures are resized on
31the fly and cached.
32
33%prep
34%setup -q
35
36%build
37%{__perl} Makefile.PL
38%{__make}
39#%{__make} test
40
41%install
42rm -rf $RPM_BUILD_ROOT
43
44%{__make} install \
45 DESTDIR=$RPM_BUILD_ROOT
46
47%clean
48rm -rf $RPM_BUILD_ROOT
49
50#%post
51#if [ -f /var/lock/subsys/httpd ]; then
52# /etc/rc.d/init.d/httpd restart 1>&2
53#else
54# echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
55#fi
56
57#%preun
58#if [ "$1" = "0" ]; then
59# if [ -f /var/lock/subsys/httpd ]; then
60# /etc/rc.d/init.d/httpd restart 1>&2
61# fi
62#fi
63
64%files
65%defattr(644,root,root,755)
66%doc Changes INSTALL README TODO UPGRADE
67%{perl_sitelib}/Apache/Gallery.pm
68%{_mandir}/man3/*.3*
This page took 0.034713 seconds and 4 git commands to generate.