%if %{_use_internal_dependency_generator} %define __noautoprov 'perl(.*)' %define __noautoreq 'perl\\(XML::Twig\\)|perl\\(MIME::Parser\\)|perl\\(Bugzilla.*\\)|perl\\(DBD::.*\\)|perl\\(DBI::st\\)|perl\\(DBI::db\\)|perl\\(TheSchwartz\\)' %else %define _provides_exceptions perl(.*) %define _requires_exceptions perl(\\(XML::Twig\\|MIME::Parser\\|Bugzilla.*\\|DBD::.*\\|DBI::st\\)) %endif Name: bugzilla Version: 4.0.1 Release: 10 Summary: A bug tracking system developed by mozilla.org License: MPL Group: Networking/WWW Url: http://www.bugzilla.org Source0: ftp://ftp.mozilla.org/pub/mozilla.org/webtools/%{name}-%{version}.tar.gz Patch0: %{name}-3.6.3-fhs.patch Patch1: %{name}-4.0.1-dont-mess-file-perms.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=392482 Patch2: %{name}-3.6-extern-id.patch Requires: apache Requires: perl(CGI) >= 1:3.500.0 Requires: perl(Date::Format) >= 2.21 Requires: perl(DateTime) >= 0.280.0 Requires: perl(Digest::SHA) Requires: perl(File::Spec) >= 0.840.0 Requires: perl(DBI) >= 1.410.0 Requires: perl(Template) >= 2.120.0 Requires: perl(Email::Send) >= 2.0.0 Requires: perl(Email::MIME::Modifier) Requires: sendmail-command Suggests: diffutils Suggests: graphviz Suggests: patchutils Suggests: perl(DBD::mysql) >= 4.0.0 Suggests: perl(DBD::Pg) >= 1.45.0 Suggests: perl(GD) Suggests: perl(GD::Graph) Suggests: perl(GD::TextUtil) Suggests: perl(Chart::Base) Suggests: perl(Net::LDAP) Suggests: perl(PatchReader) Suggests: perl(XML::Parser) BuildArch: noarch %description Bugzilla is one example of a class of programs called "Defect Tracking Systems", or, more commonly, "Bug-Tracking Systems". Defect Tracking Systems allow individual or groups of developers to keep track of outstanding bugs in their product effectively. %package contrib Summary: Additional tools for %{name} Group: Networking/WWW %description contrib This package contains additional tools for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 find . -name CVS -o -name .cvsignore | xargs rm -rf # fix perms chmod -R go=u-w . chmod 644 Bugzilla/Bug.pm chmod 644 template/en/default/admin/keywords/* chmod 755 docs/makedocs.pl # fix paths find . -type f | xargs perl -pi -e "s|/usr/local/bin|%{_bindir}|g" # fix contrib documentation files names (cd contrib/bugzilla-submit && mv README README.bugzilla-submit) %build %install install -d -m 755 %{buildroot}%{_datadir}/%{name} install -d -m 755 %{buildroot}%{_datadir}/%{name}/www install -m 755 *.cgi %{buildroot}%{_datadir}/%{name}/www cp -pr js skins images robots.txt %{buildroot}%{_datadir}/%{name}/www install -d -m 755 %{buildroot}%{_datadir}/%{name}/extensions install -d -m 755 %{buildroot}%{_datadir}/%{name}/www/skins/custom install -d -m 755 %{buildroot}%{_datadir}/%{name}/www/skins/contrib install -d -m 755 %{buildroot}%{_datadir}/%{name}/lib install -d -m 755 %{buildroot}%{_datadir}/%{name}/bin # only install english templates (bug #61555) install -d -m 755 %{buildroot}%{_datadir}/%{name}/template cp -pr template/en %{buildroot}%{_datadir}/%{name}/template cp -pr Bugzilla %{buildroot}%{_datadir}/%{name}/lib install -m 644 Bugzilla.pm \ %{buildroot}%{_datadir}/%{name}/lib install -m 755 collectstats.pl \ testserver.pl \ checksetup.pl \ importxml.pl \ whineatnews.pl \ whine.pl \ contrib/bugzilla_ldapsync.rb \ contrib/bzdbcopy.pl \ contrib/cvs-update.pl \ contrib/jb2bz.py \ contrib/merge-users.pl \ contrib/mysqld-watcher.pl \ contrib/sendbugmail.pl \ contrib/sendunsentbugmail.pl \ contrib/syncLDAP.pl \ contrib/yp_nomail.sh \ contrib/bugzilla-submit/bugzilla-submit \ contrib/cmdline/buglist \ contrib/cmdline/bugs \ %{buildroot}%{_datadir}/%{name}/bin cp -p bugzilla.dtd %{buildroot}%{_datadir}/%{name} install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name} install -d -m 755 %{buildroot}%{_sysconfdir}/%{name} install -m 644 contrib/cmdline/query.conf %{buildroot}%{_sysconfdir}/%{name} install -d -m 755 %{buildroot}%{_sysconfdir}/%{name} # apache configuration install -d -m 755 %{buildroot}%{_webappconfdir} cat > %{buildroot}%{_webappconfdir}/%{name}.conf < Require all granted Options ExecCGI DirectoryIndex index.cgi # The duplicates.rdf must be accessible, as it is used by # duplicates.xul Require all granted # The dot files must be accessible to the public webdot server # The png files locally created locally must be accessible Require host research.att.com Require all granted EOF # cron task install -d -m 755 %{buildroot}%{_sysconfdir}/cron.d cat > %{buildroot}%{_sysconfdir}/cron.d/%{name} < /dev/null 2>&1 0 0 * * * apache %{_datadir}/%{name}/bin/whineatnews.pl > /dev/null 2>&1 */15 * * * * apache %{_datadir}/%{name}/bin/whine.pl > /dev/null 2>&1 EOF cat > README.mdv <