SPECS: coppermine-gallery.spec (NEW) - new

glen glen at pld-linux.org
Mon May 1 19:33:43 CEST 2006

Author: glen                         Date: Mon May  1 17:33:43 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
   coppermine-gallery.spec (NONE -> 1.1)  (NEW)

---- Diffs:

Index: SPECS/coppermine-gallery.spec
diff -u /dev/null SPECS/coppermine-gallery.spec:1.1
--- /dev/null	Mon May  1 19:33:43 2006
+++ SPECS/coppermine-gallery.spec	Mon May  1 19:33:38 2006
@@ -0,0 +1,156 @@
+# $Revision$, $Date$
+%define		_ver %(echo %{version} | tr -d .)
+Summary:	Multi-purpose fully-featured and integrated web picture gallery script
+Name:		coppermine-gallery
+Version:	1.4.5
+Release:	0.6
+License:	GPL v2+
+Group:		Applications/Publishing
+Source0:	http://dl.sourceforge.net/coppermine/cpg%{version}.zip
+# Source0-md5:	c90849b6a47964e0c55d45daa427ff3c
+Source1:	%{name}-apache.conf
+Patch0:		%{name}-typo.patch
+Patch1:		%{name}-pld.patch
+URL:		http://coppermine-gallery.net/
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	php >= 3:4.1.0
+Requires:	php-mysql
+Requires:	webapps
+#Suggests:	php-gd
+#Suggests:	Imagemagick
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir	%{_datadir}/%{_webapp}
+Coppermine Photo Gallery is an advanced, user-friendly, picture
+gallery script with built-in support for other multi-media/data files.
+The gallery can be private, accessible to registered users only,
+and/or open to all visitors to your site. Users, if permitted, can
+upload pictures with their web browser (thumbnail and intermediate
+sized images are created on the fly), rate pictures, add comments and
+even send e-cards.
+The site administrator determines which of the features listed above
+are accessible by registered and non-registered users. The site
+administrator can also manage galleries and batch process large
+numbers of pictures that have been uploaded onto the server by FTP.
+%package setup
+Summary:	Coppermine Gallery setup package
+Summary(pl):	Pakiet do wstępnej konfiguracji Coppermine Gallery
+Group:		Applications/WWW
+Requires:	%{name} = %{version}-%{release}
+%description setup
+Install this package to configure initial Coppermine Gallery installation. You
+should uninstall this package when you're done, as it considered
+insecure to keep the setup files in place.
+%description setup -l pl
+Ten pakiet należy zainstalować w celu wstępnej konfigurac Coppermine Gallery
+Eventum po pierwszej instalacji. Potem należy go odinstalować, jako że
+pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
+%setup -q -n cpg%{_ver}
+rm -f upgrade-1.0-to-1.2.php
+# undos the source
+find '(' -name '*.php' -o -name '*.css' -o -name '*.js' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+%patch0 -p1
+%patch1 -p1
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}} \
+	$RPM_BUILD_ROOT/var/lib/%{name}/albums/{edit,userpics}
+cp -a *.{php,js,css} $RPM_BUILD_ROOT%{_appdir}
+cp -a albums bridge images include lang logs plugins sql themes $RPM_BUILD_ROOT%{_appdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+touch $RPM_BUILD_ROOT%{_sysconfdir}/config.inc.php
+touch $RPM_BUILD_ROOT%{_sysconfdir}/install.lock
+%post setup
+chmod 770 %{_sysconfdir}
+chmod 660 %{_sysconfdir}/config.inc.php
+if [ "$1" = 1 ]; then
+%banner -e %{name}-setup <<EOF
+You will need to create MySQL database and grant access to it:
+$ mysqladmin create cpq
+You should install ImageMagic or php-gd for image conversions.
+%postun setup
+if [ "$1" = "0" ]; then
+	chmod 750 %{_sysconfdir}
+	chown root:http %{_sysconfdir}/config.inc.php
+	chmod 640 %{_sysconfdir}/config.inc.php
+%triggerin -- apache1
+%webapp_register apache %{_webapp}
+%triggerun -- apache1
+%webapp_unregister apache %{_webapp}
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.inc.php
+%ghost %{_sysconfdir}/install.lock
+%dir %{_appdir}
+%exclude %{_appdir}/install.php
+%dir /var/lib/%{name}
+%dir %attr(770,root,http) /var/lib/%{name}/albums
+%dir %attr(770,root,http) /var/lib/%{name}/albums/edit
+%dir %attr(770,root,http) /var/lib/%{name}/albums/userpics
+%files setup
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+Revision 1.1  2006/05/01 17:33:38  glen
+- new

More information about the pld-cvs-commit mailing list