%define apache_serverroot %{_localstatedir}/www Name: ampache URL: http://www.ampache.org/ Version: 3.3.3.5 Release: 1%{?dist} Summary: PHP-Based MP3 Database Web Interface License: GPLv2 Group: Applications/Internet Source: http://ampache.org/downloads/ampache-%{version}.tar.gz Source1: httpd.conf.ampache Source5: ampache-README Patch: ampache-3.3.3.3-username_and_default_sessiontime.patch Patch1: ampache-3.3.3.3-confpath.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: httpd php-mysql php-gd Requires(hint): xmms lame libmad libvorbis BuildArchitectures: noarch %description Ampache is a PHP-based tool for managing, updating, and playing your MP3 files via a Web interface. It allows you to save play lists, create user accounts, and share your music catalogs with other Ampache servers. It uses a MySQL database. Read the README files about configuring ampache. %prep %setup -q %patch %patch1 %build %install %{__rm} -rf %{buildroot} a_root=%{buildroot}%{apache_serverroot}/ampache %{__mkdir_p} $a_root %{__mkdir_p} %{buildroot}%{_sysconfdir}/httpd/conf.d %{__mkdir_p} %{buildroot}%{_localstatedir}/log/ampache %{__install} -m 644 %SOURCE1 %{buildroot}%{_sysconfdir}/httpd/conf.d/ampache.conf %{__install} -m 644 %SOURCE5 README.FEDORA %{__cp} -a admin bin download images lib locale modules play templates themes $a_root/ %{__cp} -a favicon.ico *.php $a_root/ %{__cp} -p config/ampache.cfg.php.dist %{buildroot}%{_sysconfdir}/ampache.cfg pushd $a_root find . -type d -name CVS -print0 | xargs -0 --no-run-if-empty rm -rf find . -type f -print0 | xargs -0 chmod ugo-x chmod 700 bin/* popd # no need to check .htaccess each time, the apache config takes care the restriction %{__rm} %{buildroot}%{apache_serverroot}/ampache/bin/.htaccess %clean %{__rm} -rf %{buildroot} %files %defattr(0644,root,root,0755) %doc docs/* sql/ampache.sql README* config/* %defattr(-,root,root) %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/ampache.cfg %dir %{_sysconfdir}/httpd %dir %{_sysconfdir}/httpd/conf.d %dir %attr(-,apache,root) %{_localstatedir}/log/ampache %config(noreplace) %{_sysconfdir}/httpd/conf.d/ampache.conf %dir %{apache_serverroot}/ampache %{apache_serverroot}/ampache/*.php %{apache_serverroot}/ampache/favicon.ico %{apache_serverroot}/ampache/admin %dir %{apache_serverroot}/ampache/bin %config(noreplace) %{apache_serverroot}/ampache/bin/* %{apache_serverroot}/ampache/download %{apache_serverroot}/ampache/images %{apache_serverroot}/ampache/lib %{apache_serverroot}/ampache/locale %{apache_serverroot}/ampache/modules %{apache_serverroot}/ampache/play %dir %{apache_serverroot}/ampache/templates %config %{apache_serverroot}/ampache/templates/* %{apache_serverroot}/ampache/themes %changelog * Sat Oct 20 2007 Paulo Roma 3.3.3.5-1 - Updated to 3.3.3.5 * Thu Jul 12 2007 Paulo Roma 3.3.3.4-1 - Updated to 3.3.3.4 - Adapted spec for Fedora. - Adapted Requirements for Fedora. * Sat Jun 23 2007 judas_iscariote@shorewall.net 3.3.3.3-6.1 - fix build - use rpm macros * Tue Jun 12 2007 lrupp@suse.de - update to 3.3.3.3 + Fixed Create A Catalog link if no catalog found + Fixed a problem with the installer created with db changes + Fixed a problem with recently played calc thinking there are 60 hours in a day, and 60 days in a week :S + Fixed a bug in the duplicate display where the song_id's for the play link were always the same + Fixed bad sort link on show albums + Fixed missing Offset Limit + Altered session.id making it VARCHAR(64) to account for longer session id's generated by PHP + Added LastFM album art searching + Fixed Show All on Song Title and Genre Browse + Tweaked Preferred Album Art filename to allow %% in filename to indicate wildcards (a preg .*) + Fixed plugin preferences not being built correctly + Fixed the logic with MPD Global/Local with an ugly hack + Fixed the dump album art script for real this time + Added a missing icon for the add user + Fixed a potential infinite loop on the random album display + Fixed the /bin/ scripts so that you don't have to be in their dir to execute them - rename ampache-3.3.3.2.dif and ampache-3.3.3.2-confpath.dif to follow the openSUSE packaging guidelines * Tue May 22 2007 lrupp@suse.de - also package README.SUSE file - added /var/log/ampache as directory * Sun May 20 2007 lrupp@suse.de - update to 3.3.3.2 - cleanup buildroot * Wed Sep 13 2006 poeml@suse.de - fix path to config file in test.php (which is run when configuration errors are encountered) * Tue Jan 31 2006 poeml@suse.de - don't set register_globals, it is no longer needed * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Sat Jan 21 2006 cthiel@suse.de - update to 3.3.1.6 - dropped ampache-3.3.1.2-Snoopy-1.2.1.dif (included upstream) * Wed Jan 18 2006 poeml@suse.de - fix dependencies for php5 * Fri Dec 9 2005 poeml@suse.de - fixed security bug in snoopy php module (bundled HTTP client library), which allowed an authenticated user to remotely execute code on the server. [#136704], CVE-2005-3330 * Sat Jul 16 2005 poeml@suse.de - update to 3.3.1.2 * Wed Sep 15 2004 poeml@suse.de - now that php4-iconv exists on all architectures, we can require it. * Mon Sep 13 2004 poeml@suse.de - remove requirement on php4-iconv again, because it does not exist on certain architectures (see php4.spec). (Wrapping in %%ifnarch doesn't help because the package is noarch.) * Thu Sep 9 2004 poeml@suse.de - add php4-session php4-mysql to Requires * Mon Sep 6 2004 poeml@suse.de - update to 3.2.2 - the default name of the database for a new installation is now changed from "ampache3_1" to "ampache" - make the package require php4-iconv - in /etc/apache2/conf.d/ampache.conf, refer to the Timeout that is set globally from /etc/sysconfig/apache2 * Sun Aug 29 2004 ro@suse.de - remove apache1 traces * Sat May 1 2004 poeml@suse.de - update to 3.2-Alpha2.1 (fixing bug of 3.2-Alpha2 that reset user passwords) * Mon Apr 26 2004 poeml@suse.de - update to 3.2-Alpha2 - upstream config file moved to config/ - cleaning of buildroot is done by %%prep * Thu Mar 25 2004 poeml@suse.de - update to 3.2-Alpha1 - the patch to make $action global is included - wrap configuration into , so apache won't refuse to start if mod_php4 is not loaded - bzip2 sources - drop the requires on the perl modules that are needed only for migration from old database versions. Instead, put it in the documentation - update the README and put the instructions for new installations at the top, so it is less confusing * Mon Mar 22 2004 poeml@suse.de - fix wrong directory permissions of docdir [#36431] * Mon Mar 8 2004 poeml@suse.de - update to cvs version - reenable register_globals for now, since not all features work without it * Wed Feb 4 2004 hmacht@suse.de - added option # norootforbuild in specfile * Mon Jan 5 2004 poeml@suse.de - update to 3.1.02 - drop ampache-3.0-sorting.dif (included upstream) - drop ampache-3.0-session-expire.dif, obsolete - adjust to new file layout - add Requires: perl-DBI perl-Msql-Mysql-modules perl-Data-ShowTable for the migration scripts - rename README.SUSE file and add notes about migration * Thu Nov 20 2003 poeml@suse.de - add patch that prevents certain login failures due to cookies from the year 1935 - set a default character set - add a hint on configuration without a virtual host * Fri Sep 19 2003 poeml@suse.de - apache configuration: - fix trailing slash in Alias - add Directory configuration (needed for apache2, where not everything is allowed by default) [#29729] - install the configuration file also for apache2 - add Requires: http_daemon mod_php * Thu Aug 14 2003 poeml@suse.de - add activation metadata to sysconfig template [#28815] * Thu Jul 31 2003 poeml@suse.de - fix permissions of /etc/ampache.conf.inc to be readable by the webserver but not writable, [#21782] * Fri May 16 2003 poeml@suse.de - add patch to improve sorting - don't package CVS directories - remove executable flag from most files * Tue May 13 2003 poeml@suse.de - use %%defattr instead of chmod&chown - modules/config.php doesn't need to be protected * Thu Feb 27 2003 poeml@suse.de - add sysconfig metadata [#22591] - verify the instructions in README.SuSE and improve them - improve the apache configuration, and add explaining comments * Thu Aug 1 2002 poeml@suse.de - fix apache ServerRoot * Thu Aug 1 2002 poeml@suse.de - use PreReq * Wed Jul 3 2002 poeml@suse.de - new package (version v3.0)