File perl-SUSE-BugzillaClient.spec of Package perl-SUSE-BugzillaClient

# spec file for package perl-SUSE-BugzillaClient 
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via

# norootforbuild

Name:         perl-SUSE-BugzillaClient
Version:      0.4
Release:      1
Requires:     perl = %{perl_version} perl-TermReadKey perl-libwww-perl perl-XML-Parser perl-XML-SAX perl-Text-CSV_XS
Group:        Development/Libraries/Perl
License:      GPL
Summary:      Perl Library for accessing bugzilla systems
Source:       SUSE-BugzillaClient-%{version}.tar.gz
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
BuildArch:    noarch

SUSE::BugzillaClient is a Client Library for accessing and other bugzilla installations. 
It can query bugs by ID or the URL of a search. It returns a hash for each bug 
that contains the bugs properties.
An example script is included.

    Thomas Schmidt <>

%setup -n SUSE-BugzillaClient-%{version}

perl Makefile.PL


# remove filelist
rm -rf ${RPM_BUILD_ROOT}%{perl_vendorarch}/auto

mkdir -p ${RPM_BUILD_ROOT}/usr/share/doc/packages/perl-SUSE-BugzillaClient/examples
mv ${RPM_BUILD_ROOT}%{perl_vendorlib}/SUSE/ ${RPM_BUILD_ROOT}/usr/share/doc/packages/perl-SUSE-BugzillaClient/examples


%defattr(-, root, root)
%dir %{perl_vendorlib}/SUSE
%if %suse_version < 1200
#%dir %{perl_vendorarch}/auto/SUSE
#%dir %{perl_vendorarch}/auto/SUSE/BugzillaClient

%dir /usr/share/doc/packages/perl-SUSE-BugzillaClient