import sources
This commit is contained in:
commit
b97fcecfea
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/Net-CalDAVTalk-0.12.tar.gz
|
||||
41
Net-CalDAVTalk-0.12-Load-Data-Dumper.patch
Normal file
41
Net-CalDAVTalk-0.12-Load-Data-Dumper.patch
Normal file
@ -0,0 +1,41 @@
|
||||
From 64be033d4ab3e2558bbb36dca582db5efa6bf203 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
||||
Date: Thu, 16 Nov 2017 15:38:18 +0100
|
||||
Subject: [PATCH] Load Data::Dumper
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||
---
|
||||
Makefile.PL | 1 +
|
||||
lib/Net/CalDAVTalk.pm | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/Makefile.PL b/Makefile.PL
|
||||
index 911e287..86d11e1 100644
|
||||
--- a/Makefile.PL
|
||||
+++ b/Makefile.PL
|
||||
@@ -19,6 +19,7 @@ WriteMakefile(
|
||||
},
|
||||
PREREQ_PM => {
|
||||
'Net::DAVTalk' => '0.02',
|
||||
+ 'Data::Dumper' => '0',
|
||||
'DateTime::TimeZone' => 0,
|
||||
'Data::ICal::TimeZone' => '1.23',
|
||||
'DateTime::Format::ISO8601' => '0.08',
|
||||
diff --git a/lib/Net/CalDAVTalk.pm b/lib/Net/CalDAVTalk.pm
|
||||
index 2b42202..05804b0 100644
|
||||
--- a/lib/Net/CalDAVTalk.pm
|
||||
+++ b/lib/Net/CalDAVTalk.pm
|
||||
@@ -1659,6 +1659,7 @@ sub _getDateObjMulti {
|
||||
sub _hexkey {
|
||||
my $VEvent = shift;
|
||||
my $updated = delete $VEvent->{properties}->{updated};
|
||||
+ require Data::Dumper;
|
||||
my $d = Data::Dumper->new([$VEvent]);
|
||||
$d->Indent(0);
|
||||
$d->Sortkeys(1);
|
||||
--
|
||||
2.13.6
|
||||
|
||||
112
perl-Net-CalDAVTalk.spec
Normal file
112
perl-Net-CalDAVTalk.spec
Normal file
@ -0,0 +1,112 @@
|
||||
# Run optional test
|
||||
%bcond_without perl_Net_CalDAVTalk_enables_optional_test
|
||||
|
||||
Name: perl-Net-CalDAVTalk
|
||||
Version: 0.12
|
||||
Release: 2%{?dist}
|
||||
Summary: CalDAV client with JSON data interface
|
||||
License: Artistic 2.0
|
||||
URL: http://search.cpan.org/dist/Net-CalDAVTalk/
|
||||
Source0: http://www.cpan.org/authors/id/B/BR/BRONG/Net-CalDAVTalk-%{version}.tar.gz
|
||||
# Fix using Data::Dumper, CPAN RT#123646
|
||||
Patch0: Net-CalDAVTalk-0.12-Load-Data-Dumper.patch
|
||||
BuildArch: noarch
|
||||
BuildRequires: make
|
||||
BuildRequires: perl-generators
|
||||
BuildRequires: perl-interpreter
|
||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||
BuildRequires: perl(strict)
|
||||
BuildRequires: perl(warnings)
|
||||
# Run-time:
|
||||
BuildRequires: perl(:VERSION) >= 5.6.0
|
||||
BuildRequires: perl(base)
|
||||
BuildRequires: perl(Carp)
|
||||
# Data::Dumper not used at tests
|
||||
BuildRequires: perl(Data::ICal)
|
||||
BuildRequires: perl(Data::ICal::Entry::Alarm::Display)
|
||||
BuildRequires: perl(Data::ICal::Entry::Alarm::Email)
|
||||
BuildRequires: perl(Data::ICal::Entry::Event)
|
||||
BuildRequires: perl(Data::ICal::Entry::TimeZone)
|
||||
BuildRequires: perl(Data::ICal::Entry::TimeZone::Daylight)
|
||||
BuildRequires: perl(Data::ICal::Entry::TimeZone::Standard)
|
||||
BuildRequires: perl(Data::ICal::TimeZone) >= 1.23
|
||||
BuildRequires: perl(DateTime::Format::ICal) >= 0.09
|
||||
BuildRequires: perl(DateTime::Format::ISO8601) >= 0.08
|
||||
BuildRequires: perl(DateTime::TimeZone)
|
||||
BuildRequires: perl(Digest::SHA)
|
||||
BuildRequires: perl(JSON::XS)
|
||||
BuildRequires: perl(MIME::Base64)
|
||||
BuildRequires: perl(MIME::Types)
|
||||
BuildRequires: perl(Net::DAVTalk) >= 0.02
|
||||
BuildRequires: perl(Text::LevenshteinXS) >= 0.03
|
||||
BuildRequires: perl(Text::VCardFast) >= 0.06
|
||||
BuildRequires: perl(URI::Escape)
|
||||
BuildRequires: perl(XML::Spice)
|
||||
# Tests:
|
||||
BuildRequires: perl(Test::More)
|
||||
%if %{with perl_Net_CalDAVTalk_enables_optional_test}
|
||||
# Optional tests:
|
||||
BuildRequires: perl(Pod::Coverage) >= 0.18
|
||||
# Test::CheckManifest 0.9 not used
|
||||
BuildRequires: perl(Test::Pod) >= 1.22
|
||||
BuildRequires: perl(Test::Pod::Coverage) >= 1.08
|
||||
%endif
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
||||
Requires: perl(Data::Dumper)
|
||||
Requires: perl(Data::ICal::TimeZone) >= 1.23
|
||||
Requires: perl(DateTime::Format::ICal) >= 0.09
|
||||
Requires: perl(DateTime::Format::ISO8601) >= 0.08
|
||||
Requires: perl(Net::DAVTalk) >= 0.02
|
||||
Requires: perl(Text::LevenshteinXS) >= 0.03
|
||||
Requires: perl(Text::VCardFast) >= 0.06
|
||||
|
||||
# Remove under-specified dependencies
|
||||
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Data::ICal::TimeZone|DateTime::Format::ICal|DateTime::Format::ISO8601|Net::DAVTalk|Text::LevenshteinXS|Text::VCardFast)\\)$
|
||||
|
||||
%description
|
||||
This a Perl library for accessing CalDAV servers providing JSON interface to
|
||||
the data.
|
||||
|
||||
%prep
|
||||
%setup -q -n Net-CalDAVTalk-%{version}
|
||||
|
||||
%build
|
||||
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%files
|
||||
%doc Changes README
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.12-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Thu Nov 16 2017 Petr Pisar <ppisar@redhat.com> - 0.12-1
|
||||
- 0.12 bump
|
||||
|
||||
* Mon Nov 13 2017 Petr Pisar <ppisar@redhat.com> - 0.11-1
|
||||
- 0.11 bump
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Tue Jun 06 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.10-2
|
||||
- Perl 5.26 rebuild
|
||||
|
||||
* Wed Feb 15 2017 Petr Pisar <ppisar@redhat.com> - 0.10-1
|
||||
- 0.10 bump
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.09-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Fri Nov 11 2016 Petr Pisar <ppisar@redhat.com> 0.09-1
|
||||
- Specfile autogenerated by cpanspec 1.78.
|
||||
Loading…
Reference in New Issue
Block a user