2015-03-25 09:40:45 +00:00
|
|
|
#
|
|
|
|
# spec file for package bugzilla
|
|
|
|
#
|
2020-02-03 13:11:39 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-03-25 09:40:45 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-07-18 06:25:10 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-03-25 09:40:45 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: bugzilla
|
2019-07-18 06:25:10 +00:00
|
|
|
Version: 5.0.6
|
2015-03-25 09:40:45 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Bug tracker for software development
|
|
|
|
License: MPL-2.0
|
|
|
|
Group: Development/Tools/Other
|
2019-07-18 06:25:10 +00:00
|
|
|
URL: http://bugzilla.org/
|
2015-03-25 11:46:22 +00:00
|
|
|
Source: http://ftp.mozilla.org/pub/mozilla.org/webtools/%{name}-%{version}.tar.gz
|
2019-07-18 06:25:10 +00:00
|
|
|
Source2: http://downloads.sourceforge.net/project/bugzilla-de/5.0/5.0.4/%{name}-de-5.0.4-2.utf-8.tar.gz
|
2015-03-25 09:40:45 +00:00
|
|
|
Source3: MPL-2.0.html
|
|
|
|
Source4: %{name}.conf
|
2017-10-05 07:09:53 +00:00
|
|
|
Source5: %{name}-rpmlintrc
|
2018-03-05 14:50:54 +00:00
|
|
|
Patch1: fix_whine_error.patch
|
2015-03-25 09:40:45 +00:00
|
|
|
BuildRequires: apache
|
|
|
|
BuildRequires: fdupes
|
2020-02-03 13:11:39 +00:00
|
|
|
BuildRequires: pkgconfig(systemd)
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: apache
|
|
|
|
Requires: apache2-mod_perl >= 1.999022
|
2015-03-25 11:46:22 +00:00
|
|
|
#Recommonds: Apache-SizeLimit
|
|
|
|
Requires: patchutils
|
|
|
|
Requires: perl-Authen-SASL
|
2019-07-18 06:25:10 +00:00
|
|
|
#Recommends: RadiusPerl
|
|
|
|
Requires: perl-Cache-Memcached
|
2015-07-14 17:50:04 +00:00
|
|
|
Requires: perl-Chart >= 2.4.1
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-DBD-Pg >= 2.7.0
|
|
|
|
Requires: perl-DBD-SQLite >= 1.29
|
|
|
|
Requires: perl-DBD-mysql >= 4.001
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-DBI >= 1.614
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-Daemon-Generic
|
2015-07-14 17:50:04 +00:00
|
|
|
Requires: perl-DateTime >= 0.75
|
|
|
|
Requires: perl-DateTime-TimeZone >= 1.64
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-Digest-SHA1
|
|
|
|
Requires: perl-Email-MIME >= 1.904
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-Email-Reply
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-Email-Send >= 2.02
|
2015-07-14 17:50:04 +00:00
|
|
|
Requires: perl-Email-Sender >= v1.300011
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-Encode >= 2.21
|
|
|
|
Requires: perl-Encode-Detect
|
2018-03-05 14:50:54 +00:00
|
|
|
Requires: perl-File-Copy-Recursive
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-File-MimeInfo
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-File-Slurp >= 9999.13
|
2018-03-05 14:50:54 +00:00
|
|
|
Requires: perl-File-Which
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-GD >= 1.20
|
|
|
|
Requires: perl-GDGraph
|
|
|
|
Requires: perl-GDTextUtil
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-HTML-FormatText-WithLinks >= 0.13
|
|
|
|
Requires: perl-HTML-Parser >= 3.67
|
|
|
|
Requires: perl-HTML-Scrubber
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-IO-stringy
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-JSON-RPC
|
2015-07-14 17:50:04 +00:00
|
|
|
Requires: perl-JSON-XS >= 2.01
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-List-MoreUtils >= 0.32
|
|
|
|
Requires: perl-MIME-tools >= 5.406
|
|
|
|
Requires: perl-Math-Random-ISAAC >= 1.0.1
|
2018-03-05 14:50:54 +00:00
|
|
|
Requires: perl-Module-Pluggable
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-Net-SMTP-SSL >= 1.01
|
2018-03-05 14:50:54 +00:00
|
|
|
Requires: perl-Object-Pluggable
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-PatchReader >= 0.9.6
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-SOAP-Lite >= 0.712
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-Template-GD
|
2015-07-14 17:50:04 +00:00
|
|
|
Requires: perl-Template-Toolkit >= 2.24
|
|
|
|
Requires: perl-Test-Taint >= 1.0.6
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-TheSchwartz >= 1.07
|
2015-07-14 17:50:04 +00:00
|
|
|
Requires: perl-TimeDate >= 2.23
|
|
|
|
Requires: perl-URI >= 1.55
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-XML-Twig
|
2015-03-25 09:40:45 +00:00
|
|
|
Requires: perl-XMLRPC-Lite >= 0.712
|
2015-03-25 11:46:22 +00:00
|
|
|
Requires: perl-base >= 5.8.1
|
|
|
|
Requires: perl-ldap
|
|
|
|
Requires: perl-libwww-perl
|
2019-07-18 06:25:10 +00:00
|
|
|
Requires: perl(CGI) >= 5.8.1
|
2015-03-25 11:46:22 +00:00
|
|
|
Recommends: perl-DBD-Oracle >= 1.19
|
|
|
|
BuildArch: noarch
|
|
|
|
%{?systemd_requires}
|
2015-03-25 09:40:45 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Bugzilla is server software designed to help you manage software
|
|
|
|
development.
|
|
|
|
|
|
|
|
* Optimized database structure for increased performance and
|
|
|
|
scalability
|
|
|
|
* Excellent security to protect confidentiality
|
|
|
|
* Advanced query tool that can remember your searches
|
|
|
|
* Integrated email capabilities
|
|
|
|
* Editable user profiles and comprehensive email preferences
|
|
|
|
* Comprehensive permissions system
|
|
|
|
* Proven under fire as Mozilla's bug tracking system
|
|
|
|
|
|
|
|
%package lang-de
|
|
|
|
Summary: German language files for bugzilla
|
|
|
|
Group: Development/Tools/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description lang-de
|
|
|
|
This package includes german language files for bugzilla
|
|
|
|
|
|
|
|
%prep
|
2019-07-18 06:25:10 +00:00
|
|
|
%setup -q
|
2016-01-19 15:52:43 +00:00
|
|
|
%patch1 -p1
|
2018-03-23 00:17:27 +00:00
|
|
|
tar -xzf %{SOURCE2} --directory "template"
|
|
|
|
cd template/de
|
|
|
|
cd ../..
|
2015-03-25 09:40:45 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
# Ensure shebang shell scripts have executable bit set
|
|
|
|
for file in `find -type f -perm /664`; do
|
|
|
|
if head -1 $file | grep -E '^\#!' &>/dev/null; then
|
|
|
|
chmod a+x $file
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# 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
|
|
|
|
chmod a-x $file
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
# Hello bugzilla devs...
|
2015-03-25 11:46:22 +00:00
|
|
|
find . -type d "(" -name .bzr -o -name .git ")" \
|
2015-03-25 09:40:45 +00:00
|
|
|
-exec rm -Rf "{}" "+"
|
2018-03-05 14:50:54 +00:00
|
|
|
find . -type f "(" -name ".git*" -o -name ".bzr*" -o -name ".travis*" -o -name ".buildinfo*" ")" \
|
2015-03-25 09:40:45 +00:00
|
|
|
-exec rm -Rf "{}" "+"
|
|
|
|
find . -type f -print0 | xargs -0r grep -l '^#!' | xargs -r chmod a+x
|
|
|
|
find . -type f -print0 | xargs -0r grep -l '^#!' | \
|
2015-03-25 11:46:22 +00:00
|
|
|
xargs -r perl -i -pe 's{^#!%{_prefix}/local/}{#!%{_prefix}/}' "{}" "+"
|
|
|
|
mkdir -p "%{buildroot}/srv/www"
|
|
|
|
cp -a . "%{buildroot}/srv/www/%{name}"
|
|
|
|
|
|
|
|
%fdupes %{buildroot}/srv
|
|
|
|
|
2015-03-25 09:40:45 +00:00
|
|
|
cp "%{SOURCE3}" .
|
|
|
|
#install bugzilla.conf to apache conf.d
|
2015-03-25 11:46:22 +00:00
|
|
|
install -D -m0640 %{SOURCE4} %{buildroot}%{_sysconfdir}/apache2/conf.d/bugzilla.conf
|
|
|
|
# remove included .htaccess which has been moved to bugzilla.conf
|
|
|
|
rm %{buildroot}/srv/www/bugzilla/.htaccess
|
2015-03-25 09:40:45 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%service_add_post apache2.service
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%service_del_postun apache2.service
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc MPL-2.0.html
|
|
|
|
%defattr(-,wwwrun,root)
|
|
|
|
# exclude language de_DE
|
2015-03-25 11:46:22 +00:00
|
|
|
%exclude /srv/www/bugzilla/template/de
|
2015-03-25 09:40:45 +00:00
|
|
|
%config(noreplace) %{_sysconfdir}/apache2/conf.d/bugzilla.conf
|
|
|
|
/srv/www/bugzilla
|
|
|
|
|
|
|
|
%files lang-de
|
2015-03-25 11:46:22 +00:00
|
|
|
%defattr(0644,wwwrun,root,755)
|
2015-03-25 09:40:45 +00:00
|
|
|
/srv/www/bugzilla/template/de
|
|
|
|
|
|
|
|
%changelog
|