]>
Commit | Line | Data |
---|---|---|
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 | |
7 | Summary: An Apache module for creating an online gallery | |
8 | Name: Apache-Gallery | |
9 | Version: 0.8 | |
10 | Release: 0.1 | |
11 | License: Artistic | |
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) | |
25 | ||
26 | %description | |
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 | |
31 | the fly and cached. | |
32 | ||
33 | %prep | |
34 | %setup -q | |
35 | ||
36 | %build | |
37 | %{__perl} Makefile.PL | |
38 | %{__make} | |
39 | #%{__make} test | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | ||
44 | %{__make} install \ | |
45 | DESTDIR=$RPM_BUILD_ROOT | |
46 | ||
47 | %clean | |
48 | rm -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* |