SHA256
1
0
forked from pool/bugzilla
bugzilla/bugzilla.spec
Factory Maintainer 7fe3ee0112 Accepting request 262001 from server:php:applications
This package has been placed in server:php:application but should better be placed in in devel:tools:scm .
Would be good, if you could take it over.

OBS-URL: https://build.opensuse.org/request/show/262001
OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/bugzilla?expand=0&rev=1
2015-03-25 09:40:45 +00:00

183 lines
5.5 KiB
RPMSpec

#
# spec file for package bugzilla
#
# Copyright (c) 2014 SUSE LINUX Products 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: 4.4.6
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/4.4/%{version}/germzilla-%{version}-1.utf-8.tar.gz
Source3: MPL-2.0.html
Source4: %{name}.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%if 0%{?has_systemd}
BuildRequires: systemd
%{?systemd_requires}
%else
PreReq: %insserv_prereq
%endif
BuildRequires: apache
BuildRequires: fdupes
Requires: apache
Requires: apache2-mod_perl >= 1.999022
Requires: perl-base >= 5.8.1
Requires: perl(CGI) >= 5.8.1
Requires: perl-DBI >= 1.614
Requires: perl-DateTime >= 0.28
Requires: perl-DateTime-TimeZone >= 0.71
Requires: perl-Digest-SHA1
Requires: perl-Email-MIME >= 1.904
Requires: perl-Email-Send >= 2.02
Requires: perl-List-MoreUtils >= 0.32
Requires: perl-Math-Random-ISAAC >= 1.0.1
Requires: perl-Template-Toolkit >= 2.22
Requires: perl-TimeDate
Requires: perl-URI >= 1.37
Requires: perl-DBD-Pg >= 2.7.0
Requires: perl-DBD-SQLite >= 1.29
Requires: perl-DBD-mysql >= 4.001
Recommends: perl-DBD-Oracle >= 1.19
Requires: perl-Authen-SASL
Requires: perl-Chart >= 2.1.0
Requires: perl-GD >= 1.20
Requires: perl-GDGraph
Requires: perl-GDTextUtil
Requires: perl-MIME-tools >= 5.406
Requires: perl-Net-SMTP-SSL >= 1.01
Requires: perl-PatchReader >= 0.9.6
Requires: perl-Template-GD
Requires: perl-XML-Twig
Requires: perl-ldap
Requires: perl-libwww-perl
#Recommends: RadiusPerl
Requires: perl-Daemon-Generic
Requires: perl-Email-Reply
Requires: perl-Encode >= 2.21
Requires: perl-Encode-Detect
Requires: perl-File-Slurp >= 9999.13
Requires: perl-HTML-FormatText-WithLinks >= 0.13
Requires: perl-HTML-Parser >= 3.67
Requires: perl-HTML-Scrubber
Requires: perl-JSON-RPC
Requires: perl-JSON-XS >= 2.0
Requires: perl-SOAP-Lite >= 0.712
Requires: perl-Test-Taint
Requires: perl-TheSchwartz >= 1.07
Requires: perl-XMLRPC-Lite >= 0.712
#Recommonds: Apache-SizeLimit
Requires: perl-File-MimeInfo
Requires: perl-IO-stringy
%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 -q
%build
%install
b="%buildroot"
# 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 CVS -o -name ".cvs*" ")" \
-exec rm -Rf "{}" "+"
find . -type f "(" -name ".git*" -o -name ".bzr*" -o -name ".travis*" ")" \
-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{^#!/usr/local/}{#!/usr/}' "{}" "+"
mkdir -p "$b/srv/www"
cp -a . "$b/srv/www/%name"
tar -xzf %{SOURCE2} --directory "$b/srv/www/%name/template"
%fdupes %buildroot/srv
cp "%{SOURCE3}" .
#install bugzilla.conf to apache conf.d
%{__install} -D -m0640 %{SOURCE4} $RPM_BUILD_ROOT/etc/apache2/conf.d/bugzilla.conf
%post
%if 0%{?has_systemd}
%service_add_post apache2.service
%else
%restart_on_update apache2
%endif
%postun
%if 0%{?has_systemd}
%service_del_postun apache2.service
%else
%restart_on_update apache2
%endif
%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(-,wwwrun,root)
/srv/www/bugzilla/template/de
%changelog