automatic rebuild by autodist [release 0.95b-2mamba;Thu Sep 05 2013]

This commit is contained in:
Automatic Build System 2024-01-05 20:00:06 +01:00
parent 2205d993dc
commit b3465d16b4
2 changed files with 77 additions and 0 deletions

View File

@ -1,2 +1,9 @@
# yapig
YaPiG is a simple but powerful web album very useful for publishing your image
galleries.
It has a web-based admin tool, a very easy configuration, allows user to post
coments and it has visit stats.
It is written in PHP, uses the GD library for creating thumbnail images and it
does not require to have any SQL data base installed in the web server.

70
yapig.spec Normal file
View File

@ -0,0 +1,70 @@
Name: yapig
Version: 0.95b
Release: 2mamba
Summary: Yet Another PHP Image Gallery
Group: Applications/Web
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://yapig.sourceforge.net/
Source: http://downloads.sourceforge.net/sourceforge/yapig/yapig-%{version}.tar.gz
License: GPL
BuildRequires: apache >= 1:2.2.4
BuildRequires: apache-mod_php >= 5.1.5
Requires: php >= 5.1.5, apache >= 2.0.50
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
YaPiG is a simple but powerful web album very useful for publishing your image
galleries.
It has a web-based admin tool, a very easy configuration, allows user to post
coments and it has visit stats.
It is written in PHP, uses the GD library for creating thumbnail images and it
does not require to have any SQL data base installed in the web server.
%prep
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%setup -q
%build
%install
mkdir -p %{buildroot}/var/www/html/yapig
cp -R * %{buildroot}/var/www/html/yapig
rm %{buildroot}/var/www/html/yapig/{INSTALL,CHANGELOG,README}
sed -i "s|\$STOP=true;||" %{buildroot}/var/www/html/yapig/config.php
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -eq 1 ]; then
# new install
RANDOM_PASSWD=`/usr/bin/mkpasswd -l 8 -s 0`
sed -i "s|PASSWORD=.*|PASSWORD=\"$RANDOM_PASSWD\";|" /var/www/html/yapig/config.php
fi
%files
%defattr(-,root,root)
%dir %{_localstatedir}/www/html/yapig
%{_localstatedir}/www/html/yapig/*
%{_localstatedir}/www/html/yapig/locale/*
%{_localstatedir}/www/html/yapig/doc/*
%{_localstatedir}/www/html/yapig/doc/.*
%{_localstatedir}/www/html/yapig/template/*
%{_localstatedir}/www/html/yapig/makers/*.php
%dir %attr(0755,apache,apache) %{_localstatedir}/www/html/yapig/photos
%attr(0755,apache,apache) %{_localstatedir}/www/html/yapig/photos/*
%doc README INSTALL CHANGELOG
%changelog
* Thu Sep 05 2013 Automatic Build System <autodist@mambasoft.it> 0.95b-2mamba
- automatic rebuild by autodist
* Sat Aug 25 2007 Fabio Giani <fabio.giani@email.it> 0.95b-1mamba
- update to 0.95b
* Wed Jul 28 2004 Silvan Calarco <silvan.calarco@mambasoft.it> 0.92b-1qilnx
- first build