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 http://bugs.opensuse.org
#

# 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

%description
SUSE::BugzillaClient is a Client Library for accessing bugzilla.novell.com 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.



Authors:
--------
    Thomas Schmidt <tschmidt@suse.de>

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

%build
perl Makefile.PL
make

%install
%perl_make_install
%perl_process_packlist

# 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/BugzillaClientTest.pl ${RPM_BUILD_ROOT}/usr/share/doc/packages/perl-SUSE-BugzillaClient/examples

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%dir %{perl_vendorlib}/SUSE
%{perl_vendorlib}/SUSE/*.pm
%{_mandir}/man*/*pm.gz
%if %suse_version < 1200
/var/adm/perl-modules/%{name}
%endif
#%dir %{perl_vendorarch}/auto/SUSE
#%dir %{perl_vendorarch}/auto/SUSE/BugzillaClient
#%{perl_vendorarch}/auto/SUSE/BugzillaClient/.packlist

%dir /usr/share/doc/packages/perl-SUSE-BugzillaClient
%defattr(0755,root,root) 
/usr/share/doc/packages/perl-SUSE-BugzillaClient/*