diff --git a/.gitignore b/.gitignore
index 182d354..99a58b7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,22 +9,7 @@ bugzilla-3.6.1.tar.gz
/bugzilla-4.0.3.tar.gz
/bugzilla-4.0.4.tar.gz
/bugzilla-4.0.5.tar.gz
-/bugzilla-4.2.tar.gz
-/bugzilla-4.2.1.tar.gz
-/bugzilla-4.2.2.tar.gz
-/bugzilla-4.2.3.tar.gz
-/bugzilla-4.2.4.tar.gz
-/bugzilla-4.2.5.tar.gz
-/bugzilla-4.2.6.tar.gz
-/bugzilla-4.2.7.tar.gz
-/bugzilla-4.2.9.tar.gz
-/bugzilla-4.4.4.tar.gz
-/bugzilla-4.4.5.tar.gz
-/bugzilla-4.4.6.tar.gz
-/bugzilla-4.4.8.tar.gz
-/bugzilla-4.4.10.tar.gz
-/bugzilla-4.4.11.tar.gz
-/bugzilla-5.0.2.tar.gz
-/bugzilla-5.0.3.tar.gz
-/bugzilla-5.0.4.tar.gz
-/release-5.0.6.tar.gz
+/bugzilla-4.0.6.tar.gz
+/bugzilla-4.0.7.tar.gz
+/bugzilla-4.0.8.tar.gz
+/bugzilla-4.0.9.tar.gz
diff --git a/README.fedora.bugzilla b/README.fedora.bugzilla
index 20725f7..4663885 100644
--- a/README.fedora.bugzilla
+++ b/README.fedora.bugzilla
@@ -9,7 +9,7 @@ the values in this file are accurate for your environment.
Once this is done, you may need to modify default settings for your database
to ensure it accepts Bugzilla data properly. Please see
-https://bugzilla.readthedocs.org/en/5.0/ for specifics of
+http://www.bugzilla.org/docs/4.0/en/html/configuration.html for specifics of
database setting modifications.
Lastly, simply re-run checksetup.pl to populate the database tables, set up
diff --git a/bugzilla-1438957-concatenate-assets.patch b/bugzilla-1438957-concatenate-assets.patch
deleted file mode 100644
index a678976..0000000
--- a/bugzilla-1438957-concatenate-assets.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up ./Bugzilla/Constants.pm.orig ./Bugzilla/Constants.pm
---- ./Bugzilla/Constants.pm.orig 2018-02-18 12:22:45.541837039 +0100
-+++ ./Bugzilla/Constants.pm 2018-02-18 12:22:53.538784733 +0100
-@@ -213,7 +213,7 @@ use constant LOCAL_FILE => 'bugzilla-up
- # When true CSS and JavaScript assets will be concatanted and minified at
- # run-time, to reduce the number of requests required to render a page.
- # Setting this to a false value can help debugging.
--use constant CONCATENATE_ASSETS => 1;
-+use constant CONCATENATE_ASSETS => 0;
-
- # These are unique values that are unlikely to match a string or a number,
- # to be used in criteria for match() functions and other things. They start
diff --git a/bugzilla-1855962-non-html-mail.patch b/bugzilla-1855962-non-html-mail.patch
deleted file mode 100644
index 0fd0637..0000000
--- a/bugzilla-1855962-non-html-mail.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
-index 18795d735..2075a71e1 100644
---- a/Bugzilla/BugMail.pm
-+++ b/Bugzilla/BugMail.pm
-@@ -495,10 +495,10 @@ sub _generate_bugmail {
- }
-
- my $email = Bugzilla::MIME->new($msg_header);
-- if (scalar(@parts) == 1) {
-- $email->content_type_set($parts[0]->content_type);
-- }
-- else {
-+
-+ # If there's only one part, we don't need to set the overall content type
-+ # because Email::MIME will automatically take it from that part (bug 1657496)
-+ if (scalar(@parts) > 1) {
- $email->content_type_set('multipart/alternative');
-
- # Some mail clients need same encoding for each part, even empty ones.
diff --git a/bugzilla-2180465-sphinx-build.patch b/bugzilla-2180465-sphinx-build.patch
deleted file mode 100644
index f6bdebb..0000000
--- a/bugzilla-2180465-sphinx-build.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -up ./docs/en/rst/conf.py.orig ./docs/en/rst/conf.py
---- ./docs/en/rst/conf.py.orig 2023-04-17 12:51:46.689758866 +0200
-+++ ./docs/en/rst/conf.py 2023-04-17 22:43:10.003583492 +0200
-@@ -391,5 +391,5 @@ if on_rtd:
- else:
- base_api_url = '../integrating/api/'
-
--extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug '),
-- 'api': (base_api_url + '%s', '')}
-+extlinks = {'bug': ('https://bugzilla.mozilla.org/show_bug.cgi?id=%s', 'bug %s'),
-+ 'api': (base_api_url + '%s', '%s')}
diff --git a/bugzilla-dnf.patch b/bugzilla-dnf.patch
deleted file mode 100644
index f7e28e8..0000000
--- a/bugzilla-dnf.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-diff -up ./Bugzilla/Install/Requirements.pm.dnf ./Bugzilla/Install/Requirements.pm
---- ./Bugzilla/Install/Requirements.pm.dnf 2019-02-14 20:47:13.396609293 +0100
-+++ ./Bugzilla/Install/Requirements.pm 2019-02-14 20:49:04.733906799 +0100
-@@ -298,7 +298,7 @@ sub OPTIONAL_MODULES {
- },
- {
- package => 'JSON-RPC',
-- module => 'JSON::RPC',
-+ module => 'JSON::RPC::Legacy::Server::CGI',
- version => 0,
- feature => ['jsonrpc', 'rest'],
- },
-@@ -657,7 +657,7 @@ sub print_module_instructions {
- && !ON_ACTIVESTATE
- && !$check_results->{hide_all})
- {
-- print install_string('install_all', {perl => $^X});
-+ # print install_string('install_all', {perl => $^X});
- }
- if (!$check_results->{pass}) {
- print colored(install_string('installation_failed'), COLOR_ERROR), "\n\n";
-@@ -811,7 +811,7 @@ sub install_command {
- $package = $module->{package};
- }
- else {
-- $command = "$^X install-module.pl \%s";
-+ $command = "dnf install \"perl(\%s)\"";
-
- # Non-Windows installations need to use module names, because
- # CPAN doesn't understand package names.
diff --git a/bugzilla-httpd-conf b/bugzilla-httpd-conf
index bdf6d85..be0987f 100644
--- a/bugzilla-httpd-conf
+++ b/bugzilla-httpd-conf
@@ -2,22 +2,10 @@ Alias /var/lib/bugzilla/data/webdot /var/lib/bugzilla/data/webdot
Alias /bugzilla /usr/share/bugzilla
-
-
- # Bugzilla will be accessible to all machines in your network
- # Replace with "Require local" if you want access to be restricted
- # to this machine.
- Require all granted
-
-
AddHandler cgi-script .cgi
Options +Indexes +ExecCGI +FollowSymLinks
DirectoryIndex index.cgi index.html
- AllowOverride Limit Options FileInfo Indexes AuthConfig
+ AllowOverride Limit Options FileInfo
AddType application/vnd.mozilla.xul+xml .xul
AddType application/rdf+xml .rdf
-
-
- Require all granted
-
diff --git a/bugzilla-rw-paths.patch b/bugzilla-rw-paths.patch
index 98a5ec9..9c4e2f8 100644
--- a/bugzilla-rw-paths.patch
+++ b/bugzilla-rw-paths.patch
@@ -1,35 +1,26 @@
-diff -up ./Bugzilla/Constants.pm.rw-paths ./Bugzilla/Constants.pm
---- ./Bugzilla/Constants.pm.rw-paths 2019-02-14 20:42:11.280492600 +0100
-+++ ./Bugzilla/Constants.pm 2019-02-14 20:44:39.281581534 +0100
-@@ -700,7 +700,7 @@ sub _bz_locations {
- $datadir = "data";
- }
-
-- $datadir = "$libpath/$datadir";
-+ $datadir = "/var/lib/bugzilla/$datadir";
-
- # We have to return absolute paths for mod_perl.
- # That means that if you modify these paths, they must be absolute paths.
-@@ -714,11 +714,11 @@ sub _bz_locations {
- 'templatedir' => "$libpath/template",
- 'template_cache' => "$datadir/template",
- 'project' => $project,
-- 'localconfig' => "$libpath/$localconfig",
-+ 'localconfig' => "/etc/bugzilla/$localconfig",
- 'datadir' => $datadir,
- 'attachdir' => "$datadir/attachments",
- 'skinsdir' => "$libpath/skins",
-- 'graphsdir' => "$libpath/graphs",
-+ 'graphsdir' => "/var/lib/bugzilla/graphs",
-
- # $webdotdir must be in the web server's tree somewhere. Even if you use a
- # local dot, we output images to there. Also, if $webdotdir is
-@@ -728,7 +728,7 @@ sub _bz_locations {
- # The script should really generate these graphs directly...
- 'webdotdir' => "$datadir/webdot",
- 'extensionsdir' => "$libpath/extensions",
-- 'assetsdir' => "$datadir/assets",
-+ 'assetsdir' => "$libpath/assets",
- };
+--- bugzilla-4.0.1/Bugzilla/Constants.pm 2011-08-05 12:14:57.301671513 +0200
++++ bugzilla-4.0.1-rw/Bugzilla/Constants.pm 2011-08-05 12:16:51.798741609 +0200
+@@ -605,18 +605,18 @@ sub bz_locations {
+ 'cgi_path' => $libpath,
+ 'templatedir' => "$libpath/template",
+ 'project' => $project,
+- 'localconfig' => "$libpath/$localconfig",
+- 'datadir' => "$libpath/$datadir",
+- 'attachdir' => "$libpath/$datadir/attachments",
++ 'localconfig' => "/etc/bugzilla/localconfig",
++ 'datadir' => "/var/lib/bugzilla/$datadir",
++ 'attachdir' => "/var/lib/bugzilla/$datadir/attachments",
+ 'skinsdir' => "$libpath/skins",
+- 'graphsdir' => "$libpath/graphs",
++ 'graphsdir' => "/var/lib/bugzilla/graphs",
+ # $webdotdir must be in the web server's tree somewhere. Even if you use a
+ # local dot, we output images to there. Also, if $webdotdir is
+ # not relative to the bugzilla root directory, you'll need to
+ # change showdependencygraph.cgi to set image_url to the correct
+ # location.
+ # The script should really generate these graphs directly...
+- 'webdotdir' => "$libpath/$datadir/webdot",
++ 'webdotdir' => "/var/lib/bugzilla/$datadir/webdot",
+ 'extensionsdir' => "$libpath/extensions",
+ };
}
-
diff --git a/bugzilla-yum.patch b/bugzilla-yum.patch
new file mode 100644
index 0000000..9d53205
--- /dev/null
+++ b/bugzilla-yum.patch
@@ -0,0 +1,20 @@
+--- bugzilla-4.01/Bugzilla/Install/Requirements.pm 2011-05-01 17:09:35.000000000 +0200
++++ bugzilla-4.01-yum/Bugzilla/Install/Requirements.pm 2011-05-01 17:11:28.000000000 +0200
+@@ -587,7 +587,7 @@
+ if ($output && $check_results->{any_missing} && !ON_ACTIVESTATE
+ && !$check_results->{hide_all})
+ {
+- print install_string('install_all', { perl => $^X });
++ # print install_string('install_all', { perl => $^X });
+ }
+ if (!$check_results->{pass}) {
+ print colored(install_string('installation_failed'), COLOR_ERROR),
+@@ -732,7 +732,7 @@
+ $package = $module->{package};
+ }
+ else {
+- $command = "$^X install-module.pl \%s";
++ $command = "yum install \"perl(\%s)\"";
+ # Non-Windows installations need to use module names, because
+ # CPAN doesn't understand package names.
+ $package = $module->{module};
diff --git a/bugzilla.spec b/bugzilla.spec
index 41c4a86..f5de14f 100644
--- a/bugzilla.spec
+++ b/bugzilla.spec
@@ -1,158 +1,80 @@
%define bzinstallprefix %{_datadir}
-%define bzdatadir %{_sharedstatedir}/bugzilla
+%define bzdatadir %{_localstatedir}/lib/bugzilla
Summary: Bug tracking system
-URL: https://www.bugzilla.org/
+URL: http://www.bugzilla.org/
Name: bugzilla
-Version: 5.0.6
-Release: 25%{?dist}
-# Automatically converted from old format: MPLv1.1 - review is highly recommended.
-License: LicenseRef-Callaway-MPLv1.1
-Source0: https://github.com/bugzilla/bugzilla/archive/release-%{version}.tar.gz
+Version: 4.0.9
+Group: Applications/Publishing
+Release: 1%{?dist}
+License: MPLv1.1
+Source0: http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-%{version}.tar.gz
Source1: bugzilla-httpd-conf
Source2: README.fedora.bugzilla
Source3: bugzilla.cron-daily
Patch0: bugzilla-rw-paths.patch
-Patch1: bugzilla-dnf.patch
-Patch2: bugzilla-1438957-concatenate-assets.patch
-# https://bug1657496.bmoattachments.org/attachment.cgi?id=9169528
-Patch3: bugzilla-1855962-non-html-mail.patch
-Patch4: bugzilla-2180465-sphinx-build.patch
+Patch1: bugzilla-yum.patch
BuildArch: noarch
-Requires: patchutils
+Requires: webserver, patchutils, perl(SOAP::Lite), which
Requires: perl(CGI) >= 3.51
Requires: perl(Digest::SHA)
-Requires: perl(Date::Format) >= 2.23
-Requires: perl(DateTime) >= 0.75
-Requires: perl(DateTime::TimeZone) >= 1.64
-Requires: perl(DBI) >= 1.614
-Requires: perl(ExtUtils::MM)
-Requires: perl(Template) >= 2.24
-Requires: perl(Email::Sender) >= 1.300011
+Requires: perl(Date::Format) >= 2.21
+Requires: perl(DateTime) >= 0.28
+Requires: perl(DateTime::TimeZone) >= 0.71
+Requires: perl(DBI) >= 1.41
+Requires: perl(Template) >= 2.22
+Requires: perl(Email::Send) >= 2.00
Requires: perl(Email::MIME) >= 1.904
-Requires: perl(URI) >= 1.55
-Requires: perl(List::MoreUtils) >= 0.32
-Requires: perl(Math::Random::ISAAC) >= 1.0.1
-Requires: perl(File::Slurp) >= 9999.13
-Requires: perl(JSON::XS) >= 2.01
+Requires: perl(URI)
+Requires: perl(List::MoreUtils) >= 0.22
Requires: perl(Locale::Language)
-Requires: webserver
-Requires: which
-
-# for building docs
-BuildRequires: latexmk
-BuildRequires: make
-BuildRequires: perl-generators
-BuildRequires: perl(constant)
-BuildRequires: perl(Cwd)
-BuildRequires: perl(Exporter)
-BuildRequires: perl(File::Basename)
-BuildRequires: perl(File::Copy::Recursive)
-BuildRequires: perl(File::Find)
-BuildRequires: perl(File::Path)
-BuildRequires: perl(File::Which)
-BuildRequires: perl(lib)
-BuildRequires: perl(Memoize)
-BuildRequires: perl(parent)
-BuildRequires: perl(Pod::Simple)
-BuildRequires: perl(strict)
-BuildRequires: perl(warnings)
-BuildRequires: python3-sphinx
-BuildRequires: texlive-collection-latexrecommended
-BuildRequires: texlive-collection-basic
-BuildRequires: tex(fncychap.sty)
-BuildRequires: tex(framed.sty)
-BuildRequires: tex(multirow.sty)
-BuildRequires: tex(tgtermes.sty)
-BuildRequires: tex(threeparttable.sty)
-BuildRequires: tex(titlesec.sty)
-BuildRequires: tex(wrapfig.sty)
-BuildRequires: tex(capt-of.sty)
-BuildRequires: tex(eqparbox.sty)
-BuildRequires: tex(needspace.sty)
-BuildRequires: tex(tabulary.sty)
-BuildRequires: tex(upquote.sty)
%package doc
Summary: Bugzilla documentation
+Group: Documentation
%package doc-build
Summary: Tools to generate the Bugzilla documentation
+Group: Applications/Publishing
%package contrib
Summary: Bugzilla contributed scripts
-BuildRequires: python3-devel
+Group: Applications/Publishing
+BuildRequires: python
%{?perl_default_filter}
# Remove private modules from the requires stream
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(sanitycheck.cgi\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(sanitycheck.cgi\\)$
# Remove all optional modules from the requires stream
# mod_perl modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Apache2::
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(ModPerl::
-# installation of optional modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Config\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(CPAN\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(Apache2::
+%global __requires_exclude %__requires_exclude|^perl\\(ModPerl::
# authentification modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Authen::Radius\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Net::LDAP
+%global __requires_exclude %__requires_exclude|^perl\\(Authen::Radius\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(Net::LDAP\\)$
# database modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBD::Oracle\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBD::Pg\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBI::db\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBI::st\\)$
-# graphical reports and charts
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Chart::Lines\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(GD::Graph\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Template::Plugin::GD::Image\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(DBD::Oracle\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(DBD::Pg\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(DBI::db\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(DBI::st\\)$
# inbound email modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Email::MIME::Attachment::Stripper\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Email::Reply\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTML::FormatText::WithLinks\\)$
-# automatic charset detection for text attachments
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Encode
-# sniff MIME type of attachments
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(File::MimeInfo::Magic\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(IO::Scalar\\)$
-# mail queueing
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(TheSchwartz\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Daemon::Generic\\)$
-# smtp security
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Authen::SASL\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Net::SMTP::SSL\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(Email::MIME::Attachment::Stripper\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(Email::Reply\\)$
# bug moving modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(MIME::Parser\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(XML::Twig\\)$
-# update notifications
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(LWP::UserAgent\\)$
-# use html in product and group descriptions
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTML::Parser\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTML::Scrubber\\)$
-# memcached support
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Cache::Memcached\\)$
-# documentation
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(File::Copy::Recursive\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(File::Which\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(MIME::Parser\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(XML::Twig\\)$
# xml-rpc and json-rpc modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(XMLRPC::
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTTP::Message\\)$
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::Taint\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(XMLRPC::
+%global __requires_exclude %__requires_exclude|^perl\\(HTTP::Message\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(Test::Taint\\)$
# extension modules
-%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Image::Magick\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(Image::Magick\\)$
# and remove the extensions from the provides stream
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::BmpConvert\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::Auth::Login\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::Auth::Verify\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::Config\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::WebService\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::OldBugMove\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::OldBugMove::Params\\)$
-%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Voting\\)$
+%global __requires_exclude %__requires_exclude|^perl\\(Bugzilla::Extension::
%description
Bugzilla is a popular bug tracking system used by multiple open source projects
@@ -170,23 +92,23 @@ Tools to generate the documentation distributed with Bugzilla
Contributed scripts and functions for Bugzilla
%prep
-%setup -q -n %{name}-release-%{version}
-%patch -P 0 -p1
-%patch -P 1 -p1
-%patch -P 2 -p1
-%patch -P 3 -p1
-%patch -P 4 -p1
+%setup -q -n %{name}-%{version}
+%patch0 -p1
+%patch1 -p1
+rm -f Bugzilla/Constants.pm.orig
+rm -f Bugzilla/Install/Requirements.pm.orig
+# Remove bundled libs
+rm -rf lib/CGI*
# Deal with changing /usr/local paths here instead of via patches
-/usr/bin/perl -pi -e 's|/usr/local/bin/python\b|%{__python3}|' contrib/*.py
-/usr/bin/rm -rf contrib/bugzilla-submit
-
+%{__perl} -pi -e 's|/usr/local/bin/python\b|%{__python}|' contrib/*.py
+%{__perl} -pi -e 's|/usr/local/bin/ruby\b|%{_bindir}/ruby|' contrib/*.rb
grep -rl '/usr/lib/sendmail\b' contrib docs \
-| xargs /usr/bin/perl -pi -e 's|/usr/lib/sendmail\b|%{_sbindir}/sendmail|'
+| xargs %{__perl} -pi -e 's|/usr/lib/sendmail\b|%{_sbindir}/sendmail|'
%build
-# Build docs
-docs/makedocs.pl --with-pdf
+find . -depth -name CVS -type d -exec rm -rf {} \;
+find . -depth -name .cvsignore -type f -exec rm -rf {} \;
# Remove the execute bit from files that don't start with #!
for file in `find -type f -perm /111`; do
if head -1 $file | grep -E -v '^\#!' &>/dev/null; then
@@ -200,23 +122,21 @@ for file in `find -type f -perm /664`; do
fi
done
+
%install
-mkdir -p %{buildroot}%{bzinstallprefix}/bugzilla
-# these files are only used for testing Bugzilla code
-# see https://bugzilla.mozilla.org/show_bug.cgi?id=995209
-rm Build.PL MANIFEST.SKIP
-cp -pr * %{buildroot}%{bzinstallprefix}/bugzilla
-echo "0-59/15 * * * * apache cd %{bzinstallprefix}/bugzilla && env LANG=C %{bzinstallprefix}/bugzilla/whine.pl" > %{buildroot}%{bzinstallprefix}/bugzilla/cron.whine
-rm -f %{buildroot}%{bzinstallprefix}/bugzilla/README \
- %{buildroot}%{bzinstallprefix}/bugzilla/docs/TODO \
- %{buildroot}%{bzinstallprefix}/bugzilla/docs/en/Makefile \
- %{buildroot}%{bzinstallprefix}/bugzilla/docs/en/make.bat
+mkdir -p ${RPM_BUILD_ROOT}/%{bzinstallprefix}/bugzilla
+cp -pr * ${RPM_BUILD_ROOT}/%{bzinstallprefix}/bugzilla
+echo "0-59/15 * * * * apache cd %{bzinstallprefix}/bugzilla && env LANG=C %{bzinstallprefix}/bugzilla/whine.pl" > ${RPM_BUILD_ROOT}/%{bzinstallprefix}/bugzilla/cron.whine
+rm -f ${RPM_BUILD_ROOT}/%{bzinstallprefix}/bugzilla/{README,UPGRADING,UPGRADING-pre-2.8}
+mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/doc/%{name}-%{version}
cp %{SOURCE2} ./README.fedora
-mkdir -p %{buildroot}%{bzdatadir}/assets
-mkdir -p %{buildroot}%{_sysconfdir}/bugzilla
-install -m 0644 -D -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/bugzilla.conf
-install -m 0755 -D -p %{SOURCE3} %{buildroot}%{bzinstallprefix}/bugzilla/cron.daily
-ln -s ../../..%{bzdatadir}/assets %{buildroot}%{bzinstallprefix}/bugzilla/assets
+mkdir -p ${RPM_BUILD_ROOT}/%{bzdatadir}
+mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/bugzilla
+install -m 0644 -D -p %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d/bugzilla.conf
+install -m 0755 -D -p %{SOURCE3} ${RPM_BUILD_ROOT}%{bzinstallprefix}/bugzilla/cron.daily
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
%post
(pushd %{bzinstallprefix}/bugzilla > /dev/null
@@ -224,13 +144,12 @@ ln -s ../../..%{bzdatadir}/assets %{buildroot}%{bzinstallprefix}/bugzilla/assets
popd > /dev/null)
%files
-%defattr(-,root,apache,-)
+%defattr(-,root,root,-)
%dir %{bzinstallprefix}/bugzilla
-%{bzinstallprefix}/bugzilla/LICENSE
%{bzinstallprefix}/bugzilla/*.cgi
-%{bzinstallprefix}/bugzilla/*.json
%{bzinstallprefix}/bugzilla/*.pl
%{bzinstallprefix}/bugzilla/Bugzilla.pm
+%{bzinstallprefix}/bugzilla/bugzilla.dtd
%{bzinstallprefix}/bugzilla/robots.txt
%{bzinstallprefix}/bugzilla/Bugzilla
%{bzinstallprefix}/bugzilla/extensions
@@ -243,314 +162,75 @@ popd > /dev/null)
%{bzinstallprefix}/bugzilla/template
%{bzinstallprefix}/bugzilla/cron.daily
%{bzinstallprefix}/bugzilla/cron.whine
-%{bzinstallprefix}/bugzilla/contrib/README
-%{bzinstallprefix}/bugzilla/assets
+%{bzinstallprefix}/bugzilla/contrib/recode.pl
%config(noreplace) %{_sysconfdir}/httpd/conf.d/bugzilla.conf
-%attr(770,root,apache) %dir %{bzdatadir}
-%attr(770,root,apache) %dir %{bzdatadir}/assets
-%attr(750,root,apache) %dir %{_sysconfdir}/bugzilla
%defattr(-,root,root,-)
%doc README
%doc README.fedora
+%dir %{bzdatadir}
+%defattr(0750,root,apache,-)
+%dir %{_sysconfdir}/bugzilla
%files doc
-%defattr(-,root,apache,-)
-%{bzinstallprefix}/bugzilla/docs/en/html
-%{bzinstallprefix}/bugzilla/docs/en/images
-%{bzinstallprefix}/bugzilla/docs/en/pdf
-%{bzinstallprefix}/bugzilla/docs/en/txt
-%{bzinstallprefix}/bugzilla/docs/en/rst
+%defattr(-,root,root,-)
+%{bzinstallprefix}/bugzilla/docs/en
+%{bzinstallprefix}/bugzilla/docs/bugzilla.ent
%{bzinstallprefix}/bugzilla/docs/style.css
-
%files doc-build
-%defattr(-,root,apache,-)
+%defattr(-,root,root,-)
%{bzinstallprefix}/bugzilla/docs/makedocs.pl
%{bzinstallprefix}/bugzilla/docs/lib
%files contrib
-%defattr(-,root,apache,-)
+%defattr(-,root,root,-)
+%{bzinstallprefix}/bugzilla/contrib/bugzilla_ldapsync.rb
%{bzinstallprefix}/bugzilla/contrib/bugzilla-queue.rhel
%{bzinstallprefix}/bugzilla/contrib/bugzilla-queue.suse
+%{bzinstallprefix}/bugzilla/contrib/bugzilla-submit
%{bzinstallprefix}/bugzilla/contrib/bzdbcopy.pl
%{bzinstallprefix}/bugzilla/contrib/bz_webservice_demo.pl
%{bzinstallprefix}/bugzilla/contrib/cmdline
%{bzinstallprefix}/bugzilla/contrib/console.pl
%{bzinstallprefix}/bugzilla/contrib/convert-workflow.pl
+%{bzinstallprefix}/bugzilla/contrib/cvs-update.pl
%{bzinstallprefix}/bugzilla/contrib/extension-convert.pl
%{bzinstallprefix}/bugzilla/contrib/fixperms.pl
%{bzinstallprefix}/bugzilla/contrib/jb2bz.py*
%{bzinstallprefix}/bugzilla/contrib/merge-users.pl
%{bzinstallprefix}/bugzilla/contrib/mysqld-watcher.pl
%{bzinstallprefix}/bugzilla/contrib/new-yui.sh
-%{bzinstallprefix}/bugzilla/contrib/perl-fmt
-%{bzinstallprefix}/bugzilla/contrib/recode.pl
+%{bzinstallprefix}/bugzilla/contrib/README
%{bzinstallprefix}/bugzilla/contrib/sendbugmail.pl
%{bzinstallprefix}/bugzilla/contrib/sendunsentbugmail.pl
%{bzinstallprefix}/bugzilla/contrib/syncLDAP.pl
-%{bzinstallprefix}/bugzilla/contrib/Bugzilla.pm
+%{bzinstallprefix}/bugzilla/contrib/yp_nomail.sh
%changelog
-* Wed Jul 23 2025 Fedora Release Engineering - 5.0.6-25
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild
+* Wed Nov 14 2012 Emmanuel Seyman - 4.0.9-1
+- Update to 4.0.9
-* Thu Jan 16 2025 Fedora Release Engineering - 5.0.6-24
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
+* Sun Sep 02 2012 Emmanuel Seyman - 4.0.8-1
+- Update to 4.0.8 (CVE-2012-3981)
-* Wed Aug 28 2024 Miroslav Suchý - 5.0.6-23
-- convert license to SPDX
+* Mon Jul 30 2012 Emmanuel Seyman - 4.0.7-1
+- Update to 4.0.7 (CVE-2012-1969)
-* Wed Jul 17 2024 Fedora Release Engineering - 5.0.6-22
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
+* Fri Apr 20 2012 Emmanuel Seyman - 4.0.6-1
+- Update to 4.0.6
-* Tue Jan 23 2024 Fedora Release Engineering - 5.0.6-21
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
-
-* Fri Jan 19 2024 Fedora Release Engineering - 5.0.6-20
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
-
-* Wed Jul 19 2023 Fedora Release Engineering - 5.0.6-19
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
-
-* Sun May 07 2023 Emmanuel Seyman - 5.0.6-18
-- Patch to build against Sphinx 6.1.3 (#2180465)
-- Use new patch syntax
-
-* Sun Feb 12 2023 Emmanuel Seyman - 5.0.6-17
-- Add missing buildrequirement on tgtermes.sty (#2160038)
-
-* Wed Jan 18 2023 Fedora Release Engineering - 5.0.6-16
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
-
-* Wed Jul 20 2022 Fedora Release Engineering - 5.0.6-15
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
-
-* Wed Jan 19 2022 Fedora Release Engineering - 5.0.6-14
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
-
-* Wed Jul 21 2021 Fedora Release Engineering - 5.0.6-13
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
-
-* Sun Feb 14 2021 Emmanuel Seyman - 5.0.6-12
-- Add make to BuildRequires
-
-* Tue Jan 26 2021 Fedora Release Engineering - 5.0.6-11
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
-
-* Mon Oct 19 2020 Emmanuel Seyman - 5.0.6-10
-- Replace calls to %%{__perl} with /usr/bin/perl
-- Remove contrib/bugzilla-submit (no longers works) (#1835451)
-
-* Tue Sep 29 2020 Emmanuel Seyman - 5.0.6-9
-- Remove automagic Python bytecompilation macro
-- Include upstream patch for text mails (#1855962)
-
-* Sat Aug 01 2020 Fedora Release Engineering - 5.0.6-8
-- Second attempt - Rebuilt for
- https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
-
-* Mon Jul 27 2020 Fedora Release Engineering - 5.0.6-7
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
-* Tue Mar 24 2020 Jitka Plesnikova - 5.0.6-6
-- Add all perl dependencies needed for build
-
-* Tue Jan 28 2020 Fedora Release Engineering - 5.0.6-5
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
-
-* Wed Sep 04 2019 Miro Hrončok - 5.0.6-4
-- Drop unused build dependency on Python 2
-
-* Wed Jul 24 2019 Fedora Release Engineering - 5.0.6-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
-
-* Sun Mar 10 2019 Emmanuel Seyman - 5.0.6-2
-- Use %%{__python3} instead of %%{__python2}
-- Depend on python3-sphinx instead of python2-sphinx
-
-* Thu Feb 14 2019 Emmanuel Seyman - 5.0.6-1
-- Update to 5.0.6
-
-* Thu Jan 31 2019 Fedora Release Engineering - 5.0.4-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Thu Jul 12 2018 Fedora Release Engineering - 5.0.4-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Sun Feb 18 2018 Emmanuel Seyman - 5.0.4-1
-- Update to 5.0.4
-- Remove backported File::Slurp patch, no longer needed
-- use %%{__python2} instead of %%{__python}
-- Disable the concatenation of assets (#1438957)
-
-* Wed Feb 07 2018 Iryna Shcherbina - 5.0.3-10
-- Update Python 2 dependency declarations to new packaging standards
- (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
-
-* Wed Feb 07 2018 Fedora Release Engineering - 5.0.3-9
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Sun Aug 20 2017 Emmanuel Seyman - 5.0.3-8
-- Tighten macro expansion (thanks to ppisar)
-- Drop Group tag
-- Use tex(..) BuildRequires where possible
-
-* Mon Aug 07 2017 Emmanuel Seyman - 5.0.3-7
-- Add doc-building requirement to fix FTBS
-- Add perl(ExtUtils::MM) to the list of required modules
-
-* Wed Jul 26 2017 Fedora Release Engineering - 5.0.3-6
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Tue Apr 04 2017 Emmanuel Seyman - 5.0.3-5
-- Include more dependencies to fix FTBFS (#1423283)
-- Allow AuthConfig directives in Bugzilla's directory (#1403588)
-- Backport patch to use internal functions rather than File::Slurp (#1425077)
-
-* Fri Feb 10 2017 Fedora Release Engineering - 5.0.3-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Sun Nov 27 2016 Emmanuel Seyman - 5.0.3-3
-- Check for perl(JSON::RPC::Legacy::Server::CGI) instead of perl(JSON::RPC)
-
-* Sun Jul 17 2016 Emmanuel Seyman - 5.0.3-2
-- Add build requirements for texlive sub-packages
-- Filter out more optional dependencies
-
-* Mon May 16 2016 Emmanuel Seyman - 5.0.3-1
-- Update to 5.0.3, dropping backported patch
-
-* Sun May 01 2016 Emmanuel Seyman - 5.0.2-3
-- backport patch to prevent email address encoding
-
-* Wed Feb 03 2016 Fedora Release Engineering - 5.0.2-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Sat Jan 16 2016 Emmanuel Seyman - 5.0.2-1
-- Update to 5.0.2, with thanks to Tuomo Soini (#1275609)
-- Use dnf instead of yum when advising to install perl modules
-- Change documentation URL to bugzilla.readthedocs.org
-
-* Mon Sep 28 2015 Tuomo Soini - 5.0.1-3
-- fix data directory permissions and config dir permissions
-
-* Mon Sep 28 2015 Tuomo Soini - 5.0.1-2
-- Fix file owners to be mostly correct
-- rewrite patching of paths in Constants.pm
-
-* Fri Sep 11 2015 Tuomo Soini - 5.0.1-1
-- Update to 5.0.1 new stable series
-- update dependencies for 5.0.1
-- build documentation
-- add documentation build dependencies
-
-* Thu Sep 10 2015 Tuomo Soini - 4.4.10-1
-- Update to 4.4.10 to fix CVE-2015-4499
-
-* Wed Jun 17 2015 Tuomo Soini - 4.4.9-1
-- Update to 4.4.9 for several important bug fixes
-
-* Tue Jun 16 2015 Tuomo Soini - 4.4.8-1
-- Import from rawhide (F23)
-
-* Sat Jan 31 2015 Emmanuel Seyman - 4.4.8-1
-- Update to 4.4.8 (fixes regressions in 4.4.7 which itself
- fixed security flaws) (CVE-2014-1571, CVE-2014-8630)
-
-* Sun Jan 04 2015 Emmanuel Seyman - 4.4.6-2
-- Remove bundled binary files (#1000245)
-- Add webdot directory perms to apache configuration
-
-* Wed Oct 08 2014 Emmanuel Seyman - 4.4.6-1
-- Update to 4.4.6
-
-* Fri Jul 25 2014 Emmanuel Seyman - 4.4.5-1
-- Update to 4.4.5
-
-* Mon Jul 07 2014 Emmanuel Seyman - 4.4.4-1
-- Update to 4.4.4
-
-* Sat Jun 07 2014 Fedora Release Engineering - 4.2.9-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-
-* Sat Apr 19 2014 Emmanuel Seyman - 4.2.9-1
-- Update to 4.2.9 (regression fix for 4.2.8 which was a security update)
-- Drop backported patches
-
-* Tue Jan 14 2014 Emmanuel Seyman - 4.2.7-3
-- Fix the comparison of module versions (#1044854)
-- Really honor the PROJECT environment variable (#911943)
-
-* Thu Nov 14 2013 Emmanuel Seyman - 4.2.7-2
-- Add patch to cache bz_locations() (bmo #843457)
-- Fix constants patch to honor the PROJECT environment variable (#911943)
-
-* Thu Oct 17 2013 Emmanuel Seyman - 4.2.7-1
-- Update to 4.2.7 (security updates)
-- Patch bugzilla to write compiled templates under /var (#949130)
-
-* Thu Aug 15 2013 Emmanuel Seyman - 4.2.6-5
-- Stop creating /usr/share/doc/bugzilla- (#993688)
-- Fix incorrect date in changelog
-
-* Sun Aug 04 2013 Emmanuel Seyman - 4.2.6-4
-- Change apache conf to enable access to all machines
-
-* Sat Aug 03 2013 Fedora Release Engineering - 4.2.6-3
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
-
-* Thu Jul 18 2013 Petr Pisar - 4.2.6-2
-- Perl 5.18 rebuild
-
-* Sun May 26 2013 Emmanuel Seyman - 4.2.6-1
-- Update to 4.2.6
-
-* Wed Feb 20 2013 Emmanuel Seyman - 4.2.5-1
-- Update to 4.2.5 (fixes CVE-2013-0785)
-
-* Tue Feb 05 2013 Emmanuel Seyman - 4.2.4-2
-- Update httpd configuration file for Apache 2.4
-- Update httpd configuration file for the upcoming bugzilla 4.4
-
-* Wed Nov 14 2012 Emmanuel Seyman - 4.2.4-1
-- Update to 4.2.4
-- Remove the defattr and clean macros (no longer used)
-
-* Sun Sep 02 2012 Emmanuel Seyman - 4.2.3-1
-- Update to 4.2.3
-
-* Mon Jul 30 2012 Emmanuel Seyman - 4.2.2-1
-- Update to 4.2.2
-
-* Wed Jul 18 2012 Fedora Release Engineering - 4.2.1-2
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
-
-* Fri Apr 20 2012 Emmanuel Seyman - 4.2.1-1
-- Update to 4.2.1 (CVE-2012-0465, CVE-2012-0466)
-
-* Sun Feb 26 2012 Emmanuel Seyman - 4.2-1
-- Update to 4.2 (#797225)
-- Include contrib/README instead of contrib/recode.pl in the main package
-
-* Sun Feb 26 2012 Emmanuel Seyman - 4.0.5-2
-- Leave perl(Bugzilla::Extension::Example::Util) in the provides stream
-
-* Thu Feb 23 2012 Emmanuel Seyman - 4.0.5-1
-- Update to 4.0.5 to fix security issues
+* Fri Feb 24 2012 Emmanuel Seyman - 4.0.5-1
+- Update to 4.0.5 to fix security issues (CVE-2012-0453)
- Block all ModPerl::* and Apache2::* from requires
- Remove rpm4.8 filters
* Wed Feb 1 2012 Emmanuel Seyman - 4.0.4-1
- Update to 4.0.4 to fix security flaws (#786550)
-- Remove JSON:RPC patch, upstreamed (bmo #706753)
- Correct upstream URL in README.fedora.bugzilla, thanks to Ken Dreyer (#783014)
-* Tue Jan 10 2012 Tom Callaway - 4.0.3-2
-- patch bz to use JSON::RPC::Legacy::Server::CGI
-
-* Fri Dec 30 2011 Emmanuel Seyman - 4.0.3-1
+* Sun Jan 08 2012 Emmanuel Seyman - 4.0.3-1
- Update to 4.0.3
- Add perl(Locale::Language) to the Requires
-- Put the xml docs source in the doc-build subpackage
- Add index.html to the DirectoryIndex
- Fix typo in README.fedora.bugzilla
@@ -742,7 +422,7 @@ popd > /dev/null)
* Wed Nov 8 2006 John Berninger - 2.22-7
- Fixes for bz # 212355
-* Tue Jun 27 2006 John Berninger - 2.22-6
+* Tue Jun 26 2006 John Berninger - 2.22-6
- Clean up BugzillaEmail requires (filter it out)
* Mon Jun 26 2006 John Berninger - 2.22-5
diff --git a/sources b/sources
index df32c14..bb09a56 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (release-5.0.6.tar.gz) = 941087510e2c742ffd4f9c82f6d93253e04c4bde0b3a992d7bbec7672e02604d5cc8b63a12c86b0af8f7a5f7dd8e2ee4e0fa136b4b343fe4d03fd884796a4d2c
+629bde008a0f82ecfa875a44f238397c bugzilla-4.0.9.tar.gz