bugzilla/bugzilla.spec
Eric Schirra 67a18b50db Accepting request 590458 from home:ecsos:server
- update german language to 5.0.4
- Add patch bugzilla-de-tagfix.patch to fix "missing closing tag 
  in german language pack" (boo#1015765).
  Thanks voorburg@gmx.net.
- update to 5.0.4
  This release fixes one security issue.
  See the Security Advisory for details.
  - checksetup.pl would fail to update Chart storage during 
    pre-3.6 to 5.0 upgrade. (Bug 1273846)
  - editflagtypes.cgi would crash when classifications are enabled 
    and the user did not have global editcomponents privileges. 
    (Bug 1310728)
  - The File::Slurp would trigger warnings on perl 5.24. 
    (Bug 1301887)
  - All the time entries in the 'when' column had the correct date
    but the time was fixed to 00:00 when using Sqlite. 
    (Bug 1303702)
- rename bugzilla.rpmlintrc to bugzilla-rpmlintrc
  to follow guidelines 
- put bugzilla.rpmlintrc into Sources
- update german language to 5.0.3-1
- update to 5.0.3
  This release fixes one security issue and some bug fixes.
  https://www.bugzilla.org/releases/5.0.3/release-notes.html
  - A regression in Bugzilla 5.0.2 caused whine.pl to be unable 
    to send emails due to a missing subroutine. (Bug 1235395)
  - The Encode module changed the way it encodes strings, 
    causing email addresses in emails sent by Bugzilla to be encoded,
    preventing emails from being correctly delivered to recipients. 
    We now encode email headers correctly. (Bug 1246228)
  - Fix additional taint issues with Strawberry Perl. 
    (Bug 987742 and bug 1089448)
  - When exporting a buglist as a CSV file, fields starting with 
    either "=", "+", "-" or "@" are preceded by a space to not 
    trigger formula execution in Excel. (Bug 1259881)
  - An extension which allows user-controlled data to be used as 
    a link in tabs could trigger XSS if the data is not correctly 
    sanitized. Bugzilla no longer relies on the extension to do the 
    sanity check. A vanilla installation is not affected as no tab
    is user-controlled. (Bug 1250114)
  - Extensions can now easily override the favicon used for the 
    Bugzilla website. (Bug 1250264)
- Security fix:
  * (CVE-2016-2803)
    https://www.bugzilla.org/security/4.4.11/
- rework patch fix_whine_error.patch because most now in upstream
- update german language to 5.0.2-1
- fix error "Undefined subroutine..." in whine.pl
  https://bugzilla.mozilla.org/show_bug.cgi?id=1235395
- update to 5.0.2
  This release fixes two security issues and some bug fixes.
  https://www.bugzilla.org/releases/5.0.2/release-notes.html
  - mod_perl now works correctly with mod_access_compat turned off 
    on Apache 2.4. 
    To regenerate the .htaccess files, you must first delete all 
    existing ones in subdirectories:
    find . -mindepth 2 -name .htaccess -exec rm -f {} \;
    You must then run checksetup.pl again to recreate them with 
    the correct syntax. (Bug 1223790)
  - Emails sent by Bugzilla are now correctly encoded as UTF-8. 
    (Bug 714724)
  - Strawberry Perl is now fully supported on Windows. 
    (Bug 1089448 and bug 987742)
  - The XML-RPC API now works with IIS on Windows. (Bug 708252)
  - Some queries should now be faster on PostgreSQL. (Bug 1184431)
- Security fixes:
  * (CVE-2015-8508)
    https://www.bugzilla.org/security/4.2.15/
    https://bugzilla.mozilla.org/show_bug.cgi?id=1221518
  * (CVE-2015-8509)
    https://www.bugzilla.org/security/4.2.15/
    https://bugzilla.mozilla.org/show_bug.cgi?id=1232785
- update to 5.0.1
  This update fixes several vulnerabilities
  https://www.bugzilla.org/releases/5.0.1/release-notes.html
- Security fixes:
  * (CVE-2015-4499)
    https://www.bugzilla.org/security/4.2.14/
    https://bugzilla.mozilla.org/show_bug.cgi?id=1202447
- update to 5.0
  https://www.bugzilla.org/releases/5.0/release-notes.html
- update german language to 5.0
- fix no acccess under apache 2.4 in bugzilla.conf
  
- add perl-Module-Pluggable and perl-Object-Pluggable to Requires:
  because it will be removed in next perl major release.
- update to 4.4.9
  - Users who are not in the insidergroup were able to determine 
    if some specific user made a private comment in bugs. 
    (Bug 1151290)
  - Due to a regression caused by bug 1090275, the WebService 
    methods Bug.get_bugs and Bug.get_history were no longer 
    allowed. (Bug 1154099)
  - Bugzilla now supports the new .htaccess format from Apache 2.4. 
    (Bug 1121477)
  - A regression in Bugzilla 4.4.3 due to CVE-2014-1517 caused the 
    admin's password to be ignored when starting a sudo session. 
    (Bug 1132887)
- update bugzilla.conf with new from .htaccess
- update german language to 4.4.9
- Moved code from .htaccess file into bugzilla.conf
- Removed BOM from bugzilla.conf
- Explicitly set directory rights for gernam language pack
- Cleaned up spec file
- update to 4.4.8
  - Fixing a regression caused by bug 10902750, 
    JSON-RPC API calls could crash in certain cases instead of 
    displaying the proper error message. (Bug 1124716)
- changes from 4.4.7
  - The Bug.add_comment WebService method now returns the 
    correct ID for the newly created bug comment. (Bug 1111043)
    Fixing a regression caused by CVE-2014-1571 (bug 1064140), 
    comments made while setting a flag from the attachment 
    details page are again included in the flag notification email. 
    (Bug 1082887)
- update german language to 4.4.8
- remove cvs check and add git check for unneeded files
    
- insert BuildRequires: apache, so apache dirs not owned by
  this package
- insert bugzilla.conf for apache
- Update to 4.4.6
- Update to 4.4.5
- added german template
- correct and upgrade spec
- Update to upstream release 4.1.1
- Remove unwanted "CVS" directories from installation
- Remove unwanted ".cvsignore" files
- Change rpmgroup for rpmlint
- Mark shebang scripts as executable (chmod +x)
- Update to new upstream release 3.6.2
* four security fixes

OBS-URL: https://build.opensuse.org/request/show/590458
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/bugzilla?expand=0&rev=16
2018-03-23 00:26:17 +00:00

183 lines
5.9 KiB
RPMSpec

#
# spec file for package bugzilla
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%if 0%{?suse_version} >= 1210
%define has_systemd 1
%endif
Name: bugzilla
Version: 5.0.4
Release: 0
Summary: Bug tracker for software development
License: MPL-2.0
Group: Development/Tools/Other
Url: http://bugzilla.org/
Source: http://ftp.mozilla.org/pub/mozilla.org/webtools/%{name}-%{version}.tar.gz
Source2: http://downloads.sourceforge.net/project/bugzilla-de/5.0/5.0.4/%{name}-de-5.0.4-1.utf-8.tar.gz
Source3: MPL-2.0.html
Source4: %{name}.conf
Source5: %{name}-rpmlintrc
Patch1: fix_whine_error.patch
# PATCH-FIX-UPSTREAM bugzilla-de-tagfix.patch voorburg@gmx.net -- Fixed missing closing tag
Patch2: %{name}-de-tagfix.patch
BuildRequires: apache
BuildRequires: fdupes
Requires: apache
Requires: apache2-mod_perl >= 1.999022
#Recommonds: Apache-SizeLimit
Requires: patchutils
Requires: perl-Authen-SASL
Requires: perl-Chart >= 2.4.1
Requires: perl-DBD-Pg >= 2.7.0
Requires: perl-DBD-SQLite >= 1.29
Requires: perl-DBD-mysql >= 4.001
Requires: perl-DBI >= 1.614
Requires: perl(CGI) >= 5.8.1
#Recommends: RadiusPerl
Requires: perl-Cache-Memcached
Requires: perl-Daemon-Generic
Requires: perl-DateTime >= 0.75
Requires: perl-DateTime-TimeZone >= 1.64
Requires: perl-Digest-SHA1
Requires: perl-Email-MIME >= 1.904
Requires: perl-Email-Reply
Requires: perl-Email-Send >= 2.02
Requires: perl-Email-Sender >= v1.300011
Requires: perl-Encode >= 2.21
Requires: perl-Encode-Detect
Requires: perl-File-Copy-Recursive
Requires: perl-File-MimeInfo
Requires: perl-File-Slurp >= 9999.13
Requires: perl-File-Which
Requires: perl-GD >= 1.20
Requires: perl-GDGraph
Requires: perl-GDTextUtil
Requires: perl-HTML-FormatText-WithLinks >= 0.13
Requires: perl-HTML-Parser >= 3.67
Requires: perl-HTML-Scrubber
Requires: perl-IO-stringy
Requires: perl-JSON-RPC
Requires: perl-JSON-XS >= 2.01
Requires: perl-List-MoreUtils >= 0.32
Requires: perl-MIME-tools >= 5.406
Requires: perl-Math-Random-ISAAC >= 1.0.1
Requires: perl-Module-Pluggable
Requires: perl-Net-SMTP-SSL >= 1.01
Requires: perl-Object-Pluggable
Requires: perl-PatchReader >= 0.9.6
Requires: perl-SOAP-Lite >= 0.712
Requires: perl-Template-GD
Requires: perl-Template-Toolkit >= 2.24
Requires: perl-Test-Taint >= 1.0.6
Requires: perl-TheSchwartz >= 1.07
Requires: perl-TimeDate >= 2.23
Requires: perl-URI >= 1.55
Requires: perl-XML-Twig
Requires: perl-XMLRPC-Lite >= 0.712
Requires: perl-base >= 5.8.1
Requires: perl-ldap
Requires: perl-libwww-perl
Recommends: perl-DBD-Oracle >= 1.19
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: systemd
%{?systemd_requires}
%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
%setup
%patch1 -p1
tar -xzf %{SOURCE2} --directory "template"
cd template/de
%patch2 -p1
cd ../..
%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...
find . -type d "(" -name .bzr -o -name .git ")" \
-exec rm -Rf "{}" "+"
find . -type f "(" -name ".git*" -o -name ".bzr*" -o -name ".travis*" -o -name ".buildinfo*" ")" \
-exec rm -Rf "{}" "+"
find . -type f -print0 | xargs -0r grep -l '^#!' | xargs -r chmod a+x
find . -type f -print0 | xargs -0r grep -l '^#!' | \
xargs -r perl -i -pe 's{^#!%{_prefix}/local/}{#!%{_prefix}/}' "{}" "+"
mkdir -p "%{buildroot}/srv/www"
cp -a . "%{buildroot}/srv/www/%{name}"
%fdupes %{buildroot}/srv
cp "%{SOURCE3}" .
#install bugzilla.conf to apache conf.d
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
%post
%service_add_post apache2.service
%postun
%service_del_postun apache2.service
%files
%defattr(-,root,root)
%doc MPL-2.0.html
%defattr(-,wwwrun,root)
# exclude language de_DE
%exclude /srv/www/bugzilla/template/de
%config(noreplace) %{_sysconfdir}/apache2/conf.d/bugzilla.conf
/srv/www/bugzilla
%files lang-de
%defattr(0644,wwwrun,root,755)
/srv/www/bugzilla/template/de
%changelog