File perl-Apache-DBI.spec of Package perl-Apache-DBI

#
# spec file for package perl-Apache-DBI
#
# Copyright (c) 2011 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/
#

# norootforbuild


Name:           perl-Apache-DBI
BuildRequires:  apache2-devel apache2-mod_perl libapr-util1-devel pcre-devel perl-DBI
BuildRequires:  perl-macros
Version:        1.10
Release:        1
Provides:       ApacheDBI perl-ApacheDBI
Obsoletes:      perl-ApacheDBI
Requires:       apache2
Requires:       apache2-mod_perl
Conflicts:      perlmod
AutoReqProv:    on
Group:          Development/Libraries/Perl
License:        Artistic
Url:            http://cpan.org/modules/by-module/Apache/
Summary:        Apache authentication via perl DBI
Source:         Apache-DBI-%{version}.tar.bz2
Patch:          Apache-DBI-%{version}-path.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%{perl_requires}

%description
These modules are supposed to be used with the Apache server together
with an embedded perl interpreter like mod_perl. They provide support
for basic authentication and authorization as well as support for
persistent database connections via Perl's Database Independent
Interface (DBI).



Authors:
--------
    Tim Bunce       <dbi-users@isc.org>

%prep 
%setup -q -n Apache-DBI-%{version}
%patch

%build
export APACHE=`which httpd`
perl Makefile.PL
make %{?_smp_mflags} all

%check
make test

%install
export APACHE=`which httpd`
%perl_make_install
%perl_process_packlist

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc Changes README traces.txt eg
%doc %{_mandir}/man?/*
%{perl_vendorlib}/Apache
%dir %{perl_vendorarch}/auto/Apache
%{perl_vendorarch}/auto/Apache/DBI

%changelog
openSUSE Build Service is sponsored by