From b3465d16b4ad4554b316c17860cba1d1ec5a11f6 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 20:00:06 +0100 Subject: [PATCH] automatic rebuild by autodist [release 0.95b-2mamba;Thu Sep 05 2013] --- README.md | 7 ++++++ yapig.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 77 insertions(+) create mode 100644 yapig.spec diff --git a/README.md b/README.md index 5201584..c47590e 100644 --- a/README.md +++ b/README.md @@ -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. + diff --git a/yapig.spec b/yapig.spec new file mode 100644 index 0000000..3844c82 --- /dev/null +++ b/yapig.spec @@ -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 +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 0.95b-2mamba +- automatic rebuild by autodist + +* Sat Aug 25 2007 Fabio Giani 0.95b-1mamba +- update to 0.95b + +* Wed Jul 28 2004 Silvan Calarco 0.92b-1qilnx +- first build