8
0
forked from pool/perl-HTTP-DAV

Accepting request 177649 from home:coolo:update-perl

update

OBS-URL: https://build.opensuse.org/request/show/177649
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-HTTP-DAV?expand=0&rev=28
This commit is contained in:
Stephan Kulow
2013-06-05 08:23:37 +00:00
committed by Git OBS Bridge
parent 21032c64eb
commit d502d643be
4 changed files with 39 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package perl-HTTP-DAV
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 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
@@ -17,25 +17,38 @@
Name: perl-HTTP-DAV
Version: 0.46
Version: 0.47
Release: 0
%define cpan_name HTTP-DAV
Summary: WebDAV client library for Perl5
License: GPL-1.0+ or Artistic-1.0
Summary: A WebDAV client library for Perl5
License: Artistic-1.0 or GPL-1.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/dist/HTTP-DAV/
#Source: http://www.cpan.org/modules/by-module/HTTP/HTTP-DAV-%{version}.tar.gz
Source: %{cpan_name}-%{version}.tar.gz
Source: http://www.cpan.org/authors/id/C/CO/COSIMO/%{cpan_name}-%{version}.tar.gz
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(LWP) >= 5.48
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(URI)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(XML::DOM)
#BuildRequires: perl(HTTP::Date)
#BuildRequires: perl(HTTP::DAV)
#BuildRequires: perl(HTTP::DAV::Comms)
#BuildRequires: perl(HTTP::DAV::Lock)
#BuildRequires: perl(HTTP::DAV::Resource)
#BuildRequires: perl(HTTP::DAV::ResourceList)
#BuildRequires: perl(HTTP::DAV::Response)
#BuildRequires: perl(HTTP::DAV::Utils)
#BuildRequires: perl(HTTP::Headers)
#BuildRequires: perl(HTTP::Response)
#BuildRequires: perl(TestDetails)
#BuildRequires: perl(URI::file)
Requires: perl(LWP) >= 5.48
Requires: perl(Scalar::Util)
Requires: perl(URI)
Requires: perl(URI::Escape)
Requires: perl(XML::DOM)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%{perl_requires}
%description
@@ -45,32 +58,21 @@ files and much more on a DAV-enabled webserver.
%prep
%setup -q -n %{cpan_name}-%{version}
perl -p -i -e "s|\r\n|\n|" TODO
# to decrease rpmlint badness
chmod -x Changes README TODO
%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make} %{?_smp_mflags}
%check
make test
%{__make} test
%install
%perl_make_install
# do not perl_process_packlist (noarch)
# remove .packlist file
rm -rf %{buildroot}%perl_vendorarch
# remove perllocal.pod file
rm -rf %{buildroot}%perl_archlib
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-,root,root,-)
%doc Changes README TODO
%defattr(-,root,root,755)
%doc Changes doc README TODO
%changelog