[gallery3] Initial import.

Jon Ciesla limb at fedoraproject.org
Tue Oct 4 19:37:12 UTC 2011


commit 1a42d6af325e5e77173a79c7b78af0ba08803d7b
Author: Jon Ciesla <limb at jcomserv.net>
Date:   Tue Oct 4 14:36:50 2011 -0500

    Initial import.

 .gitignore             |    1 +
 README.fedora.Gallery3 |   91 ++++++++++++++++++++++++++++++++++++++++++++++++
 gallery3-htaccess      |    1 +
 gallery3-httpd-conf    |    6 +++
 gallery3.spec          |   86 +++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 6 files changed, 186 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9498c16 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/gallery-3.0.2.zip
diff --git a/README.fedora.Gallery3 b/README.fedora.Gallery3
new file mode 100644
index 0000000..e2cb9b0
--- /dev/null
+++ b/README.fedora.Gallery3
@@ -0,0 +1,91 @@
+Gallery2 (G2) requires a database backend to function properly.  Currently, G2
+supports Oracle, MySQL, PostgreSQL, DB2, and MS SQL Server databases; the 
+choice of which to use is completely up to you.
+
+To run thorugh the setup, you must have an empty database available that you
+plan to use with G2.  The instructions below should help with getting the
+database established and available to the application.
+
+MySQL
+-----
+# mysql
+mysql> create database gallery2;
+Query OK, 1 row affected (0.00 sec)
+
+mysql>
+
+
+PostgreSQL
+----------
+# su - postgres
+-bash-3.1$ createdb gallery2
+CREATE DATABASE
+-bash-3.1$
+
+We don't include instructions for creating databases in other RDBMS's here.
+
+That's it.  You may wish to consult the upstream database documentation at
+http://dev.mysql.com/doc/ for MySQL or http://www.postgresql.org/docs/ for 
+PostgreSQL for specifics on setting up TCP/IP connections or more advanced
+database tasks.
+
+
+Installation/setup
+------------------
+There are a few differences, mostly cosmetic between this package and the
+upstream distribution.  First, upstream normally puts the login.txt auth
+token and config.php file in the install directory.  This package moves 
+those files to /etc/gallery2 and creates symlinks to them in 
+/usr/share/gallery2.  This is done to accomodate a read-only /usr environment.
+
+During the actual installation process, the following differences between the
+instructions displayed and the actual installation environment will have to be
+observed:
+
+Step 1 (Authentication):  You will be asked to place the login.txt file in
+the gallery2 directory on your web server.  This file should be placed in 
+the /etc/gallery2/ directory instead.
+
+Step 3 (Installation type):  The "Standard installation" option will initally
+refer to /usr/share/gallery2 as the destination for the new gallery.  Please
+disregard this notice and refer to the note on step 4 below.
+
+Step 4 (Storage setup): The default selection for the image storage directory
+in this package is /srv/gallery2.  You must chose a directory that the web
+server can write to - if you have a read-only /usr directory tree, the
+storage directory must be outside that tree.  If you use the default seletion, 
+you must create this directory yourself and ensure that it is writable by the
+user that your web server runs as (usually 'apache').
+
+Step 7 (Create config file): This step will tell you that the config file,
+config.php, has been written to the gallery2 directory.  It was actually
+written to /etc/gallery2.
+
+
+Update from older package
+-------------------------
+If you are updating Gallery2 from a 2.1 series Fedora package, you will have to
+do some manual jockeying of the config.php file before pointing a web browser
+at the upgrade page.  Your old config file will be in 
+/usr/share/gallery2/config.php, the new config file's location is
+/etc/gallery2/config.php with a symlink to it from 
+/usr/share/gallery2/config.php.  This symlink will initially be named 
+config.php.rpmnew; the old config file should be moved to /etc/gallery2,
+overwriting the newly created config.php, and the symlink renamed from
+config.php.rpmnew to config.php.
+
+
+KNOWN ISSUES
+------------
+Gallery2 has a feature available in it's admin console whereby a user can
+download and install new themes and modules from within the web interface.
+Because Fedora requires that web applications be in /usr/share/<pkgname> and
+that /usr be able to be read-only, this feature may not work in some
+environments.  If you have a read-only /usr, you will not be able to use this
+feature and you will have to install new themes and modules by remounting
+/usr rw and using the yum/rpm commands to install the sub-packages.  If this
+feature does work in your environment, please be advised that using it
+will result in the modules and themes you download not being present in the
+RPM database and not being managed by the system.  Because of this second
+caveat, there are no plans to request an exception to the packaging
+guidelines to explicitly enable this feature.
diff --git a/gallery3-htaccess b/gallery3-htaccess
new file mode 100644
index 0000000..32415d4
--- /dev/null
+++ b/gallery3-htaccess
@@ -0,0 +1 @@
+php_value memory_limit 24M
diff --git a/gallery3-httpd-conf b/gallery3-httpd-conf
new file mode 100644
index 0000000..d81d5a5
--- /dev/null
+++ b/gallery3-httpd-conf
@@ -0,0 +1,6 @@
+Alias /gallery3 /usr/share/gallery3
+
+<Directory /usr/share/gallery3>
+  AllowOverride Options FileInfo
+  php_value short_open_tag on
+</Directory>
diff --git a/gallery3.spec b/gallery3.spec
new file mode 100644
index 0000000..e4fd274
--- /dev/null
+++ b/gallery3.spec
@@ -0,0 +1,86 @@
+%define installprefix %{_datadir}
+%define g3confdir %{_sysconfdir}/gallery3
+
+Summary: Customizable photo gallery web site
+URL: http://gallery.menalto.com
+Name: gallery3
+Version: 3.0.2
+Group: Applications/Publishing
+Release: 2%{?dist}
+License: GPLv2+
+Source0: http://downloads.sourceforge.net/gallery/gallery-%{version}.zip
+Source1: gallery3-httpd-conf
+Source2: gallery3-htaccess
+Source3: README.fedora.Gallery3
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: php httpd php-Kohana 
+#jquery
+BuildArch: noarch
+
+
+%description
+Gallery is an open source project with the goal to develop and support 
+leading photo sharing web application solutions. 
+
+%prep
+%setup -q -n gallery3
+
+chmod -x installer/init_var.php
+
+%build
+
+
+%install
+rm -rf ${RPM_BUILD_ROOT}
+mkdir -p ${RPM_BUILD_ROOT}%{installprefix}/gallery3
+install -m 0644 -D -p %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d/gallery3.conf
+install -m 0644 -p %{SOURCE2} ${RPM_BUILD_ROOT}%{installprefix}/gallery3/.htaccess
+cp -pr * ${RPM_BUILD_ROOT}%{installprefix}/gallery3
+install -m 0644 -p %{SOURCE3} README.fedora
+mkdir -p ${RPM_BUILD_ROOT}%{g3confdir}
+
+#Remove bundled Kohana
+rm -rf ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/core/Kohana*
+rm -rf ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/libraries/Kohana*
+
+#Link to system Kohana
+ln -s %{_datadir}/php/Kohana/system/core/Kohana_Exception.php ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/core/Kohana_Exception.php
+ln -s %{_datadir}/php/Kohana/system/core/Kohana_Config.php ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/core/Kohana_Config.php
+ln -s %{_datadir}/php/Kohana/system/core/Kohana.php ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/core/Kohana.php
+ln -s %{_datadir}/php/Kohana/system/libraries/Kohana_User_Exception.php ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/libraries/Kohana_User_Exception.php
+ln -s %{_datadir}/php/Kohana/system/libraries/Kohana_404_Exception.php ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/libraries/Kohana_404_Exception.php
+ln -s %{_datadir}/php/Kohana/system/libraries/Kohana_PHP_Exception.php ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/libraries/Kohana_PHP_Exception.php
+ln -s %{_datadir}/php/Kohana/system/libraries/Kohana_Log.php ${RPM_BUILD_ROOT}%{installprefix}/gallery3/system/libraries/Kohana_Log.php
+
+#Convert to admin-configurable htaccess
+mv %{buildroot}%{installprefix}/gallery3/.htaccess %{buildroot}%{_sysconfdir}/httpd/conf.d/gallery3-site.htaccess
+ln -s ../../../%{_sysconfdir}/httpd/conf.d/gallery3-site.htaccess %{buildroot}%{installprefix}/gallery3/.htaccess
+
+
+#Remove bundled jquery
+#Link to system jquery
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE README README.fedora
+%{installprefix}/gallery3
+%{g3confdir}
+%config(noreplace) %{_sysconfdir}/httpd/conf.d/
+
+%changelog
+* Fri Sep 30 2011 Jon Ciesla <limb at jcomserv.net> - 3.0.2-2
+- Set php_value short_open_tag on.
+
+* Sun Sep 25 2011 Jon Ciesla <limb at jcomserv.net> - 3.0.2-1
+- New upstream.
+- Moved to admin-configurable htaccess.
+
+* Mon Jan 24 2011 Jon Ciesla <limb at jcomserv.net> - 3.0.1-1
+- New upstream.
+
+* Wed Oct 06 2010 Jon Ciesla <limb at jcomserv.net> - 3.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..703eae2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+958b9bf352acace3e4eadb4721e8bd35  gallery-3.0.2.zip


More information about the scm-commits mailing list