2008-08-11 19:24:48 +00:00
|
|
|
#
|
|
|
|
# spec file for package perl-Data-ICal
|
|
|
|
#
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: perl-Data-ICal
|
|
|
|
%define real_name Data-ICal
|
|
|
|
Summary: Generates iCalendar (RFC 2445) calendar files
|
|
|
|
Url: http://search.cpan.org/perldoc?Data::ICal
|
|
|
|
Group: Development/Libraries/Perl
|
|
|
|
License: Artistic License
|
2009-03-19 14:03:50 +00:00
|
|
|
Version: 0.15
|
2008-08-11 19:24:48 +00:00
|
|
|
Release: 0
|
|
|
|
Source: %{real_name}-%{version}.tar.bz2
|
2009-03-19 14:03:50 +00:00
|
|
|
BuildRequires: perl-Array-Compare
|
2008-08-11 19:24:48 +00:00
|
|
|
BuildRequires: perl-Test-Pod-Coverage
|
|
|
|
BuildRequires: perl-Class-Accessor
|
|
|
|
BuildRequires: perl-Class-ReturnValue
|
|
|
|
BuildRequires: perl-Test-Simple
|
|
|
|
BuildRequires: perl-Test-Warn
|
|
|
|
BuildRequires: perl-Test-LongString
|
|
|
|
BuildRequires: perl-Test-NoWarnings
|
|
|
|
BuildRequires: perl-Text-vFile-asData
|
|
|
|
Requires: perl = %{perl_version}
|
2009-03-19 14:03:50 +00:00
|
|
|
Requires: perl-Array-Compare
|
2008-08-11 19:24:48 +00:00
|
|
|
Requires: perl-Class-Accessor
|
|
|
|
Requires: perl-Text-vFile-asData
|
|
|
|
Requires: perl-Class-ReturnValue
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
A Data::ICal object represents a VCALENDAR object as defined in the iCalendar
|
|
|
|
protocol (RFC 2445, MIME type "text/calendar"), as implemented in many popular
|
|
|
|
calendaring programs such as Apple's iCal.
|
|
|
|
|
|
|
|
Each Data::ICal object is a collection of "entries", which are objects of a
|
|
|
|
subclass of Data::ICal::Entry. The types of entries defined by iCalendar (which
|
|
|
|
refers to them as "components") include events, to-do items, journal entries,
|
|
|
|
free/busy time indicators, and time zone descriptors; in addition, events and
|
|
|
|
to-do items can contain alarm entries. (Currently, Data::ICal only implements
|
|
|
|
to-do items and events.)
|
|
|
|
|
|
|
|
Data::ICal is a subclass of Data::ICal::Entry; see its manpage for more methods
|
|
|
|
applicable to Data::ICal.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
-------
|
|
|
|
Jesse Vincent
|
|
|
|
David Glasser
|
|
|
|
Simon Wistow
|
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation and examples for the main package
|
|
|
|
Requires: %name = %version
|
|
|
|
Group: Documentation
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains additional documentation (rfc2445) and an example script
|
|
|
|
for the main package.
|
|
|
|
|
|
|
|
Author:
|
|
|
|
-------
|
|
|
|
Jesse Vincent
|
|
|
|
David Glasser
|
|
|
|
Simon Wistow
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -n %{real_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL
|
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
%perl_make_install
|
|
|
|
%perl_process_packlist
|
|
|
|
mkdir -p %{buildroot}/%{_defaultdocdir}/%{name}
|
|
|
|
cp -r README Changes MANIFEST doc examples %{buildroot}/%{_defaultdocdir}/%{name}/
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_defaultdocdir}/%{name}
|
|
|
|
%exclude %{_defaultdocdir}/%{name}/examples
|
|
|
|
%exclude %{_defaultdocdir}/%{name}/doc
|
|
|
|
%doc %{_mandir}/man?/*
|
|
|
|
%dir %{perl_vendorlib}/Data
|
|
|
|
%dir %{perl_vendorlib}/Data/ICal
|
|
|
|
%dir %{perl_vendorlib}/Data/ICal/Entry
|
|
|
|
%dir %{perl_vendorlib}/Data/ICal/Entry/Alarm
|
|
|
|
%dir %{perl_vendorlib}/Data/ICal/Entry/TimeZone
|
|
|
|
%dir %{perl_vendorarch}/auto/Data
|
|
|
|
%dir %{perl_vendorarch}/auto/Data/ICal
|
|
|
|
%{perl_vendorlib}/Data/*.pm
|
|
|
|
%{perl_vendorlib}/Data/ICal/*.pm
|
|
|
|
%{perl_vendorlib}/Data/ICal/Entry/*.pm
|
|
|
|
%{perl_vendorlib}/Data/ICal/Entry/Alarm/*.pm
|
|
|
|
%{perl_vendorlib}/Data/ICal/Entry/TimeZone/*.pm
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_defaultdocdir}/%{name}/examples
|
|
|
|
%doc %{_defaultdocdir}/%{name}/doc
|
|
|
|
|
|
|
|
%changelog
|