Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37517048
en ru br
ALT Linux repositórios
5.0: 3.2.1-alt1
4.1: 2.16.8-alt3
4.0: 2.16.8-alt3
3.0: 2.16.8-alt3

Group :: Rede/WWW
RPM: bugzilla

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define unpackaged_files_terminate_build 1

Name: bugzilla
Version: 3.2.1
Release: alt1
Summary: A bug tracking system developed by mozilla.org
License: %mpl
Group: Networking/WWW
Url: http://www.bugzilla.org/
Packager: Mikhail Gusarov <dottedmag at altlinux.org>

%define bugzilla_ru_version 1.0

%define bugzilla_ftp http://ftp.mozilla.org/pub/mozilla.org/webtools
%define bugzilla_ru_ftp http://ftp.mozilla-russia.org/bugzilla

%define bugzilla_scripts_dir %_datadir/bugzilla
%define bugzilla_web_dir %webserver_webappsdir/bugzilla
%define bugzilla_doc_dir %_defaultdocdir/%name-%version
%define bugzilla_doc_doc_dir %_defaultdocdir/%name-doc-%version

Source0: %bugzilla_ftp/%name-%version.tar.gz
Source1: %name-ru.tar.gz
Source2: apache2-vhost.sample
Source3: BugzillaInstance.pm

Conflicts: bugzilla-ru <= 2.16.1.1.0-alt2
Obsoletes: bugzilla-ru

%define _perl_lib_path %bugzilla_web_dir

BuildRequires(pre): rpm-build-licenses rpm-macros-webserver-common
BuildRequires: rpm-build-perl
# Automatically added by buildreq on Thu Jan 29 2009 (-bi)
BuildRequires: perl-Authen-Radius perl-CPAN perl-DBD-Pg perl-DBM perl-Email-MIME-Attachment-Stripper perl-Email-Reply perl-Email-Send perl-Storable perl-Template perl-XML-Twig perl-ldap

# WebPolicy

Requires: webserver-common

#

# Explicitly enabling patch-handling
#
Requires: perl-PatchReader
Requires: patchutils

#

# More HTML in Product/Group Descriptions
#
Requires: perl-HTML-Scrubber

#

# XML-RPC interface
#
Requires: perl-SOAP-Lite

#

# MySQL
#
Requires: perl-DBD-mysql

#

# Graphical reports and charts are disabled due to security holes in modules and
# high load imposed on server.
#
%def_without graphs

%if_with graphs
Requires: perl-GD, perl-Template-GD, perl-GD-Graph, perl-GD-Text, perl-Chart
%endif

#

# apache2-mod_perl is buggy (14.04.2008), so disabling mod_perl.pl
# integrity checking.
#
# Please check whether mod_perl works for you and enable back if needed.
#
%add_findreq_skiplist /usr/share/bugzilla/mod_perl.pl

# avoid unnecessary dependency on apache2-mod_perl

%add_findreq_skiplist /usr/lib/perl5/vendor_perl/Bugzilla.pm /usr/lib/perl5/vendor_perl/Bugzilla/Install/Util.pm /var/www/webapps/bugzilla/buglist.cgi

# manually add requires from previously skipped files

Requires: perl(File/Basename.pm) perl(File/Spec.pm) perl(File/Temp.pm) perl(Safe.pm) perl(File/Basename.pm) perl(Date/Parse.pm) perl(Locale/Language.pm)

# We do not have perl-DBD-oracle in ALT Linux

%add_findreq_skiplist /usr/lib/perl5/vendor_perl/Bugzilla/DB/Oracle.pm

%description
Bugzilla is the bug tracking system developed by mozilla.org.

%package -n perl-Bugzilla
Summary: Perl modules for Bugzilla bug tracking system
Group: Development/Perl
Conflicts: bugzilla-perl <= 2.16.8-alt3
Obsoletes: bugzilla-perl <= 2.16.8-alt3

%description -n perl-Bugzilla
Bugzilla is the bug tracking system developed by mozilla.org.

This package contains Perl modules for Bugzilla.

%package -n %name-doc
Summary: A docs for Bugzilla
Group: Books/Other

%description -n %name-doc
%name-doc - Documentation for Bugzilla.

%prep
%setup
%setup -T -D -a 1

%build
# fix INC path
sed -i -e "s, at bugzilla_web_dir at ,%bugzilla_web_dir,g" Bugzilla/Constants.pm

%install
#
# Tools
#
mkdir -p %buildroot%bugzilla_scripts_dir
cp *.pl %buildroot%bugzilla_scripts_dir

#

# Perl modules
#
mkdir -p %buildroot%perl_vendor_privlib
cp -a Bugzilla.pm Bugzilla %buildroot%perl_vendor_privlib

find %buildroot -type f -name .cvsignore -delete

#

# Web part
#
mkdir -p %buildroot%bugzilla_web_dir
install *.cgi *.xul bugzilla.dtd robots.txt %buildroot%bugzilla_web_dir
cp -a images js skins template %buildroot%bugzilla_web_dir
cp -a bugzilla-ru/help bugzilla-ru/template %buildroot%bugzilla_web_dir
cp -a %SOURCE3 %buildroot%bugzilla_web_dir

#

# Documentation
#
mkdir -p %buildroot%bugzilla_doc_dir
install QUICKSTART README* UPGRADING* %buildroot%bugzilla_doc_dir
install bugzilla-ru/README* %buildroot%bugzilla_doc_dir
cp -a %SOURCE2 %buildroot%bugzilla_doc_dir

mkdir -p %buildroot%bugzilla_doc_doc_dir
cp -a docs/* t %buildroot%bugzilla_doc_doc_dir

%files
%bugzilla_scripts_dir
%bugzilla_web_dir
%bugzilla_doc_dir

%files -n perl-Bugzilla
%perl_vendor_privlib/Bugzilla*

%files -n %name-doc
%bugzilla_doc_doc_dir

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009