summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaweł Gołaszewski2004-05-05 14:10:18 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit18d57ae0480e381c9b6777a952b4c34449d6a889 (patch)
treeeca6ed94b8c1820a9d3dcb66bcad8919e3144a8d
downloadApache-Gallery-18d57ae0480e381c9b6777a952b4c34449d6a889.zip
Apache-Gallery-18d57ae0480e381c9b6777a952b4c34449d6a889.tar.gz
- very initial...
Changed files: Apache-Gallery.spec -> 1.1
-rw-r--r--Apache-Gallery.spec68
1 files changed, 68 insertions, 0 deletions
diff --git a/Apache-Gallery.spec b/Apache-Gallery.spec
new file mode 100644
index 0000000..94a8d8c
--- /dev/null
+++ b/Apache-Gallery.spec
@@ -0,0 +1,68 @@
+# TODO:
+# - prepare subpackage with virtual
+# - configuration for apache
+#
+%include /usr/lib/rpm/macros.perl
+%define apxs /usr/sbin/apxs
+Summary: An Apache module for creating an online gallery
+Name: Apache-Gallery
+Version: 0.8
+Release: 0.1
+License: Artistic
+Group: Applications/Graphics
+Source0: http://apachegallery.dk/download/%{name}-%{version}.tar.gz
+# Source0-md5: 21ec1b8b11240dc6e3dbba19c6330120
+#Source1: %{name}.conf
+URL: http://apachegallery.dk/
+BuildRequires: perl-Image-Imlib2 >= 1.00
+BuildRequires: perl-Image-Info
+BuildRequires: perl-Image-Size
+BuildRequires: perl-Text-Template
+BuildRequires: perl-devel
+BuildRequires: rpm-perlprov >= 3.0.3-16
+Requires: apache-mod_perl
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Apache::Gallery is a mod_perl handler that sits on top of your
+DocumentRoot and creates an image gallery of the files and directories
+there. It creates an thumbnail index of each directory and allows
+viewing of pictures in different resolutions. Pictures are resized on
+the fly and cached.
+
+%prep
+%setup -q
+
+%build
+%{__perl} Makefile.PL
+%{__make}
+#%{__make} test
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+#%post
+#if [ -f /var/lock/subsys/httpd ]; then
+# /etc/rc.d/init.d/httpd restart 1>&2
+#else
+# echo "Run \"/etc/rc.d/init.d/httpd start\" to start apache http daemon."
+#fi
+
+#%preun
+#if [ "$1" = "0" ]; then
+# if [ -f /var/lock/subsys/httpd ]; then
+# /etc/rc.d/init.d/httpd restart 1>&2
+# fi
+#fi
+
+%files
+%defattr(644,root,root,755)
+%doc Changes INSTALL README TODO UPGRADE
+%{perl_sitelib}/Apache/Gallery.pm
+%{_mandir}/man3/*.3*